OFFSET
1,2
MATHEMATICA
t = Select[Prime@ Range[3, 10^7], IntegerQ@ Log2@ MultiplicativeOrder[7, #] &]; Table[SelectFirst[Range@ 100, Divisible[7^(2^#) + 1, t[[n]]] &], {n, Length@ t}] (* Michael De Vlieger, Jun 29 2016, after Arkadiusz Wesolowski at A273948 *)
PROG
(PARI) forstep(p=3, 10^15, 2, if(!Mod(p, 7)==0, if(isprime(p), o=znorder(Mod(7, p)); x=ispower(2*o); if(2^(x-1)==o, print1(x-2, ", ")))));
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Arkadiusz Wesolowski, Jun 25 2016
STATUS
approved