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

A138602
Numbers n such that 2^(2*n-39)-39 is prime.
0
20, 21, 22, 23, 32, 33, 83, 140, 1122
OFFSET
1,1
EXAMPLE
2^(2*23-39)-39=89, 2^(2*32-39)-39=33554393, 2^(2*33-39)-39=134217689, 2^(2*83-39)-39=170141183460469231731687303715884105689,
MATHEMATICA
q=39; For[i=q, i<=q, a={}; Do[x=2^(2*n-i)-i; If[PrimeQ[x], AppendTo[a, n]], {n, 12^3}]; Print["2^(2*n-", i, ")-", i, " ", a]; i=i+2]
PROG
(PARI) is(n)=isprime(2^(2*n-39)-39) \\ Charles R Greathouse IV, Jun 13 2017
CROSSREFS
Sequence in context: A319678 A270045 A133895 * A346400 A347298 A326678
KEYWORD
nonn,easy
AUTHOR
STATUS
approved