|
|
A028815
|
|
a(n) = prime(n) + 1 (starting with 1).
|
|
14
|
|
|
2, 3, 4, 6, 8, 12, 14, 18, 20, 24, 30, 32, 38, 42, 44, 48, 54, 60, 62, 68, 72, 74, 80, 84, 90, 98, 102, 104, 108, 110, 114, 128, 132, 138, 140, 150, 152, 158, 164, 168, 174, 180, 182, 192, 194, 198, 200, 212, 224, 228, 230, 234, 240, 242, 252, 258, 264, 270, 272, 278, 282, 284
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,1
|
|
COMMENTS
|
n-th noncomposite (unit or prime) positive integer + 1.
The "0th prime" is defined to be 1 (a unit, formerly considered to be prime).
|
|
LINKS
|
|
|
FORMULA
|
|
|
MATHEMATICA
|
|
|
PROG
|
(PARI) a(n) = if(n==0, 2, prime(n) + 1); \\ Altug Alkan, Mar 14 2018
(Magma)
A028815:= func< n | n eq 0 select 2 else 1 + NthPrime(n) >;
(SageMath)
def A028815(n): return 2 if n==0 else 1+nth_prime(n)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy,changed
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|