OFFSET
1,1
COMMENTS
Is this sequence infinite? - Charles R Greathouse IV, Jan 24 2017
LINKS
Zak Seidov, Table of n, a(n) for n = 1..23
FORMULA
a(1) = 2, a(n+1) = a(n) + 2^k; a(n+1) prime, k minimal.
a(n) = a(n-1) + 2^A067760((a(n-1)-1)/2) for n >= 3. - Pontus von Brömssen, Jan 08 2023
EXAMPLE
2 + 2^0 = 3,
3 + 2^1 = 5,
a(22) = a(21) + 2^955,
a(23) = a(22) + 2^468.
MATHEMATICA
NestList[(k = 0; While[! PrimeQ[q = # + 2^k], k++]; q) &, 2, 20] (* Zak Seidov, Jan 24 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved