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”).

A118257
Numbers k such that A118255(k) is prime.
5
2, 6, 8, 10, 18, 26, 30, 74, 142, 203, 398, 651, 792, 1314, 3487, 5978, 6240, 7814, 8054, 8673, 21436, 23947, 52985, 91784, 157537, 164901
OFFSET
1,1
COMMENTS
A118255(1314) is prime with 396 digits
A118255(23947) is a probable prime with 7209 digits. - Giovanni Resta, Apr 26 2006
EXAMPLE
A118255(2) = 2 prime, A118255(6) = 149 prime, A118255(8) = 599 prime.
MATHEMATICA
A118255[n_] := Module[{},
If[n == 1, A118255[1] = 1,
If[PrimeQ[n], A118255[n] = 2 A118255[n - 1],
A118255[n] = 2 A118255[n - 1] + 1]]];
Select[Range[5000], PrimeQ[A118255[#]] &] (* Robert Price, Apr 03 2019 *)
CROSSREFS
KEYWORD
nonn,more,changed
AUTHOR
Pierre CAMI, Apr 19 2006
EXTENSIONS
a(15)-a(22) from Giovanni Resta, Apr 26 2006
a(23)-a(26) from Michael S. Branicky, Dec 11 2024
STATUS
approved