login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A095938
a(n+1) = (a(n)-1)-th prime + 1.
0
2, 3, 4, 6, 12, 32, 128, 710, 5382, 52712, 648392, 9737334, 174440042, 3657500102, 88362852308, 2428095424620, 75063692618250, 2586559730396078, 98552043847093520, 4123221751654370052, 188272405179937051082, 9332039515881088707362, 499720579610303128776792, 28785866289100396890228042
OFFSET
1,1
LINKS
N. Lygeros, G-test. [From Herman Jamke (hermanjamke(AT)fastmail.fm), Dec 06 2008]
MATHEMATICA
NestList[Prime[ # - 1] + 1 &, 2, 16] (* Robert G. Wilson v *)
PROG
(PARI) a(n)=if(n<2, 2, prime(a(n-1)-1)+1);
for(n=1, 10, print1(a(n), ", "));
CROSSREFS
Equals A007097 + 1.
Sequence in context: A018405 A018419 A220826 * A018460 A344661 A018484
KEYWORD
nonn
AUTHOR
Herman Jamke (hermanjamke(AT)fastmail.fm), Jul 13 2004
EXTENSIONS
a(19)-a(24) from Giovanni Resta, using terms of A007097, Apr 03 2019
STATUS
approved