OFFSET
1,1
LINKS
MATHEMATICA
t = Table[0, {10000}]; k = 1; lst = {}; While[k < 4100000000, a = PowerMod[7, k, k]; If[ a<10001 && t[[a]]==0, t[[a]]=k; Print[{a, k}]]; k++ ]; t (* changed (to reflect the new limits) by Robert G. Wilson v, Jul 17 2009 *)
lk[n_]:=Module[{k=1}, While[PowerMod[7, k, k]!=n, k++]; k]; Array[lk, 50] (* The program will take a long time to run. *) (* Harvey P. Dale, Jan 29 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Ryan Propper, Jun 12 2006
EXTENSIONS
a(36) = 10596486211 and later terms from Ryan Propper, Feb 02 2007
STATUS
approved