OFFSET
1,2
COMMENTS
The exponent of 2 in the expression, 1279, is a Mersenne exponent.
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..1000
EXAMPLE
n = 1 is a term since 2^1279 - 1 is prime (the 15th Mersenne prime).
MATHEMATICA
Select[Range@ 11500, PrimeQ[# 2^1279 - 1] &] (* Michael De Vlieger, Dec 09 2015 *)
PROG
(MATLAB)
if isprime(n*2^1279-1)
disp(n)
end
(PARI) is(n)=ispseudoprime(n*2^1279 - 1) \\ Anders Hellström, Dec 09 2015
(Magma) [n: n in [1..10^4] |IsPrime(n*2^1279-1)]; // Vincenzo Librandi, Dec 10 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Vardan Semerjyan, Dec 09 2015
EXTENSIONS
Terms a(31) and beyond from Andrew Howroyd, Dec 23 2019
STATUS
approved