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

A138595
Numbers n such that 2^(2*n-21)-21 is prime.
0
11, 12, 13, 14, 15, 16, 17, 21, 22, 31, 55, 205, 217, 255
OFFSET
1,1
EXAMPLE
2^(2*13-21)-21=11, 2^(2*14-21)-21=107, 2^(2*15-21)-21=491, 2^(2*16-21)-21=2027, ...
MATHEMATICA
q=21; For[i=q, i<=q, a={}; Do[x=2^(2*n-i)-i; If[PrimeQ[x], AppendTo[a, n]], {n, 10^2}]; Print["2^(2*n-", i, ")-", i, " ", a]; i=i+2]
PROG
(PARI) is(n)=isprime(2^(2*n-21)-21) \\ Charles R Greathouse IV, Jun 13 2017
CROSSREFS
Sequence in context: A297269 A296710 A297143 * A192271 A214423 A185300
KEYWORD
nonn,easy
AUTHOR
STATUS
approved