OFFSET
0,1
COMMENTS
For n = 18, 24, 27, 28, 30, 38, ..., a(n) > 6 * 10^9 if it is not -1.
a(18) > 2*10^11 if it is not -1. - Michael S. Branicky, Nov 04 2024
FORMULA
a(n) = prime(i) where A179078(i) = n, if such i exists.
EXAMPLE
a(4) = 7 because (3^7 - 3)/7 = 312 == 4 (mod 7), and 7 is the first prime that works.
MAPLE
f:= p -> (3&^p-3 mod p^2)/p:
V:= Array(0..17): count:= 0:
p:= 1:
for i from 1 while count < 23 do
p:= nextprime(p);
v:= f(p);
if v <= 22 and V[v] = 0 then V[v]:= i; count:= count+1 fi;
od:
convert(V, list);
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Robert Israel, Nov 03 2024
STATUS
approved