OFFSET
0,2
MATHEMATICA
aa = {}; Do[k = 1; While[PowerMod[40, k, k] != n, k++ ]; Print[{n, k}]; AppendTo[aa, k], {n, 1, 50}]; aa
CROSSREFS
KEYWORD
nonn
AUTHOR
Artur Jasinski, May 23 2010
EXTENSIONS
Terms a(23) onward from Max Alekseyev, Mar 19 2012
STATUS
approved