OFFSET
1,1
COMMENTS
If p is a Wieferich prime (A001220), then a(n) = 1.
Is a(n) = 1 for any p that is not a Wieferich prime?
Smallest k > 0 such that A196202(i) < k*A000040(i), where i is the index of p in A000040. - Felix Fröhlich, May 14 2018
MATHEMATICA
Table[If[p == 2, p, Block[{k = 1}, While[PowerMod[2, (p - 1), p^2] >= Mod[k p, p^2], k++]; k]], {p, Prime@ Range@ 65}] (* Michael De Vlieger, May 14 2018 *)
PROG
(PARI) a(n) = my(p=prime(n), res=lift(Mod(2, p^2)^(p-1))); 1+res\p
CROSSREFS
KEYWORD
nonn
AUTHOR
Felix Fröhlich, May 08 2018
STATUS
approved