login
A207573
a(1)=1, a(n+1) = prime(a(n)+1) - a(n).
0
1, 2, 3, 4, 7, 12, 29, 84, 355, 2038, 15723, 156920, 1959177, 29788564, 539206155, 11406258536, 277708694711, 7683630307352, 239005572292955, 8281900782667178, 317172995786425445
OFFSET
1,2
EXAMPLE
a(2) = prime(a(1)+1)-a(1) = 3-1 = 2;
a(3) = prime(a(2)+1)-a(2) = 5-2 = 3;
a(4) = prime(a(3)+1)-a(3) = 7-3 = 4;
a(5) = prime(a(4)+1)-a(4) = 11-4 = 7.
CROSSREFS
Sequence in context: A124390 A215981 A107031 * A152605 A285222 A023162
KEYWORD
nonn
AUTHOR
Gerasimov Sergey, Feb 19 2012
EXTENSIONS
a(19)-a(21) from Charles R Greathouse IV, Feb 20 2012
STATUS
approved