OFFSET
0,2
MATHEMATICA
aa = {}; Do[k = 1; While[PowerMod[38, k, k] != n, k++ ]; Print[{n, k}]; AppendTo[aa, k], {n, 1, 50}]; aa
sk[n_]:=Module[{k=1}, While[PowerMod[38, k, k]!=n, k++]; k]; Array[sk, 50, 0] (* Harvey P. Dale, Mar 14 2015 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Artur Jasinski, May 23 2010
EXTENSIONS
Terms a(21) onward from Max Alekseyev, Apr 22 2012
STATUS
approved