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

A297421
Numbers k such that (10^(2k) + 2*(10^k) + 4)/4 is prime.
0
1, 2, 3, 15, 175, 449, 16563
OFFSET
1,2
COMMENTS
Numbers of this form divide 10^(3k)-8.
a(7) > 3000. - Jon E. Schoenfield, Jan 02 2018
a(8) > 50000. - Robert Price, Apr 11 2018
EXAMPLE
31, 2551, 250501, and 250000000000000500000000000001 are prime, while 25005001=7*79*103*439, 2500050001=19*2269*57991, etc.
MAPLE
select(k->isprime((10^(2*k)+2*(10^k)+4)/4), [$1..1000]); # Muniru A Asiru, Apr 11 2018
MATHEMATICA
Select[Range[10^3], PrimeQ[(10^(2 #) + 2 (10^#) + 4)/4] &] (* Michael De Vlieger, Dec 30 2017 *)
PROG
(PARI) isok(k) = isprime((10^(2*k)+2*(10^k)+4)/4); \\ Michel Marcus, Dec 30 2017
CROSSREFS
Sequence in context: A165657 A091835 A131612 * A180723 A162102 A087975
KEYWORD
nonn,more
AUTHOR
Patrick A. Thomas, Dec 30 2017
EXTENSIONS
a(5)-a(6) from Michel Marcus, Dec 30 2017
a(7) from Robert Price, Apr 11 2018
STATUS
approved