login
A119533
a(n+1) = prime(1+a(n)), starting with a(0) = 0.
1
0, 2, 5, 13, 43, 193, 1181, 9547, 99523, 1292831, 20374363, 380964631, 8300770763, 207647281343, 5890165284053, 187490458428149
OFFSET
0,2
FORMULA
a(0) = 0; a(n+1) = prime(1+a(n)) = A000040(1+a(n)).
EXAMPLE
a(1) = prime(1+a(0)) = prime(1+0) = prime(1) = 2.
a(2) = prime(1+a(1)) = prime(1+2) = prime(3) = 5.
a(3) = prime(1+a(2)) = prime(1+5) = prime(6) = 13.
a(4) = prime(1+a(3)) = prime(1+13) = prime(14) = 43.
a(5) = prime(1+a(4)) = prime(1+43) = prime(44) = 193.
MATHEMATICA
NestList[ Prime[ # + 1] &, 0, 15] (* Robert G. Wilson v, May 30 2006 *)
CROSSREFS
Sequence in context: A286949 A287023 A287008 * A375730 A066740 A212825
KEYWORD
easy,nonn
AUTHOR
Jonathan Vos Post, May 28 2006
EXTENSIONS
a(15) from Robert G. Wilson v, May 30 2006
STATUS
approved