login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A178198
Smallest k such that 37^k mod k = n
1
1, 2, 5, 17, 11, 22, 31, 25, 29, 10, 51, 13, 2585, 15, 23, 1354, 3157, 26, 19, 30, 14366417, 332, 85, 55, 510647, 44, 341, 122, 135, 52, 49, 33, 27905, 136, 141, 46, 55319, 41, 115, 190, 50613, 166, 205, 75, 252701, 284, 203, 1322, 395, 50, 1247
OFFSET
0,2
MATHEMATICA
aa = {}; Do[k = 1; While[PowerMod[37, k, k] != n, k++ ]; Print[k]; AppendTo[aa, k], {n, 0, 50}]; aa
KEYWORD
nonn
AUTHOR
Artur Jasinski, May 23 2010
STATUS
approved