OFFSET
1,2
COMMENTS
For a guide to related sequences, see A204892.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
f:= proc(n) local t, k, V;
t:= 1:
for k from 1 do
t:= t*k mod n;
if assigned(V[t]) then return V[t]! else V[t]:= k fi
od
end proc:
map(f, [$1..100]); # Robert Israel, Nov 10 2024
MATHEMATICA
(See the program at A204932.)
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Jan 21 2012
STATUS
approved