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

A173888
Exactly one of (2^n-1)^2-2 and (2^n+1)^2-2 is prime.
0
0, 1, 4, 5, 6, 7, 8, 9, 10, 17, 19, 23, 25, 32, 51, 55, 65, 87, 129, 132, 159, 171, 175, 180, 242, 315, 324, 358, 393, 435, 467, 491, 501, 507, 555, 591, 680, 786, 800, 1070, 1459, 1650, 1707, 2813, 2923, 3281, 4217, 5153, 6287, 6365, 6462, 10088, 10367, 14289
OFFSET
1,3
COMMENTS
The numbers which are in A091513 or A091515, but not in both sequences. [From R. J. Mathar, Mar 09 2010]
EXAMPLE
a(1)=1 because (2^1-1)^2-2=-1 is nonprime and (2^1+1)^2-2=7 is prime.
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Corrected (0 inserted, 12, 16, 18, 21 removed) and extended by R. J. Mathar, Mar 09 2010
STATUS
approved