OFFSET
1,2
COMMENTS
Indices of Fermat factors in A057775.
LINKS
Arkadiusz Wesolowski, Table of n, a(n) for n = 1..57
Wilfrid Keller, Fermat factoring status
Eric Weisstein's World of Mathematics, Fermat Number
MATHEMATICA
lst = {}; Do[k = 1; While[! PrimeQ[p = (2*k - 1)*2^n + 1], k++]; If[IntegerQ[Log[2, MultiplicativeOrder[2, p]]], AppendTo[lst, n]], {n, 320}]; lst
PROG
(PARI) isok(n)=my(k=-1, p(k)=k*2^n+1, z(k)=znorder(Mod(2, p(k)))); until(isprime(p(k)), k=k+2); z(k)>>valuation(z(k), 2)==1; \\ Arkadiusz Wesolowski, May 26 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Arkadiusz Wesolowski, Nov 30 2011
EXTENSIONS
a(44)-a(50) from Arkadiusz Wesolowski, May 26 2023
STATUS
approved