[go: up one dir, main page]

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

A215799
Prime numbers p such that the Mersenne number 2^p - 1 can be written in the form a^2 + 3*b^2.
3
2, 3, 5, 7, 13, 17, 19, 31, 37, 61, 67, 89, 101, 103, 107, 127, 139, 257, 269, 271, 281, 293, 347, 349, 353, 373, 379, 401, 457, 461, 499, 521, 523, 569, 577, 607, 631, 647, 727, 751, 863, 881, 907, 983, 1039, 1061, 1063, 1193
OFFSET
1,1
COMMENTS
These numbers have no prime factors congruent to 2 (mod 3) raised to an odd power. Prime factors which are == 2 (mod 3) come in pairs.
Mersenne exponents, A000043, are a proper subset.
There are no other terms <= 1116. - Robert G. Wilson v, Aug 26 2012
EXAMPLE
2^67 - 1 = 10106743618^2 + 3*3891344499^2 = 9845359982^2 + 3*4108642899^2.
MATHEMATICA
fQ[n_] := Union[ Mod[ Transpose[ FactorInteger[2^n - 1]][[1]], 3]] == {1}; p = 2; lst = {}; While[p < 300, If[ fQ@ p, AppendTo[lst, p]; Print@ p]; p = NextPrime@ p] (* Or *)
p=2; (* open the first or second link and copy the listed factors for the prime exponent and paste into the parentheses that follow and change any periods to commas *) p = NextPrime@ p; pf = {}; Mod[Flatten[{pf, (2^p - 1)/Times @@ pf}], 3] (* Robert G. Wilson v, Aug 26 2012 *)
PROG
(PARI) forprime(i=2, 100, a=factorint(2^i-1)~; has=0; for(j=1, #a, if(a[1, j]%3==2&&a[2, j]%2==1, has=1; break)); if(has==0, print(i" -\t"a[1, ])))
CROSSREFS
KEYWORD
nonn,more
AUTHOR
V. Raman, Aug 23 2012
EXTENSIONS
a(23)-a(47) from Robert G. Wilson v, Aug 26 2012
a(48) from Amiram Eldar, Oct 18 2024
STATUS
approved