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

A138577
Numbers n such that 2^(2*n-3)-3 is prime.
0
3, 4, 6, 16, 108, 112, 118, 274, 346, 1162, 1620
OFFSET
1,1
EXAMPLE
2^(2*3-3)-3=5, 2^(2*4-3)-3=29, 2^(2*6-3)-3=509,...
MATHEMATICA
q=3; 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]
Select[Range[400], PrimeQ[2^(2#-3)-3]&] (* Harvey P. Dale, Aug 10 2017 *)
PROG
(PARI) is(n)=isprime(2^(2*n-3)-3) \\ Charles R Greathouse IV, Jun 13 2017
CROSSREFS
Sequence in context: A092933 A122849 A068573 * A298149 A136242 A066732
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
More terms from Harvey P. Dale, Aug 10 2017
STATUS
approved