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
KEYWORD
easy,nonn
AUTHOR
Jonathan Vos Post, May 28 2006
EXTENSIONS
a(15) from Robert G. Wilson v, May 30 2006
STATUS
approved