|
|
|
|
2, 5, 7, 13, 19, 31, 43, 61, 79, 103, 131, 163, 199, 241, 283, 331, 383, 443, 503, 571, 641, 715, 793, 877, 965, 1063, 1163, 1267, 1373, 1483, 1595, 1723, 1853, 1991, 2129, 2279, 2429, 2587, 2749, 2917, 3089, 3269, 3449, 3641, 3833, 4031, 4229
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,1
|
|
COMMENTS
|
Sequence is interesting because of the fact that a(n) is a prime number for n = 0..20.
Main inspiration of sequence was indices of prime numbers in A036439 and A227547.
|
|
LINKS
|
|
|
FORMULA
|
a(n) = Sum_{k=1..n} prime(k) + n mod 2 + 2 for n>0, a(0)=2 (from Pari code).
|
|
EXAMPLE
|
|
|
MATHEMATICA
|
s = Accumulate@ Prime@ Range@ 1200; {2}~Join~Table[s[[n]] + If[OddQ@ n, 3, 2], {n, 46}] (* _Michael De Vlieger_, Sep 21 2015 *)
|
|
PROG
|
(PARI) a(n) = sum(k=1, n, prime(k)) + (n%2) + 2;
vector(50, n, a(n-1))
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
_Altug Alkan_, Sep 21 2015
|
|
STATUS
|
approved
|
|
|
|