login
A204935
The number j! such that n divides k!-j!>0, where k is the least positive integer for which such a j exists.
4
1, 2, 6, 2, 1, 6, 1, 24, 6, 120, 2, 24, 24, 6, 120, 24, 1, 6, 6, 120, 6, 2, 1, 24, 120, 24, 720, 5040, 24, 120, 2, 24, 24, 6, 5040, 720, 720, 6, 24, 120, 120, 6, 40320, 24, 720, 24, 24, 24, 5040, 120, 6, 24, 2, 720, 720, 5040, 6, 24, 2, 120, 40320, 2, 5040
OFFSET
1,2
COMMENTS
For a guide to related sequences, see A204892.
LINKS
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