OFFSET
1,1
COMMENTS
Computed terms are prime. Is it always the case? If not it would be interesting to compute the pseudoprimes.
1234125721 = 24841*49681, 4294901761 = 193*22253377, 6602556241 = 57457*114913 are composite counterexamples to the assumption that all terms are prime. - Hugo Pfoertner, Sep 26 2020
These are a(420), a(705) and a(830). Together with a(956) = 10025492401 = 101 * 701 * 141601 they are the first 4 composite terms. - Amiram Eldar, Jun 17 2022
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..1000
MATHEMATICA
Select[Range[5, 10^6, 2], PowerMod[2, (# - 1)/2, #*(# - 3)/2] == 1 &] (* Amiram Eldar, Sep 26 2020 *)
PROG
(PARI) is(n) = n%2 && n>=3 && Mod(2, n*(n-3)/2)^((n-1)/2) ==1
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Sep 26 2020
STATUS
approved