OFFSET
1,3
LINKS
T. D. Noe, Table of n, a(n) for n = 1..10000
EXAMPLE
a(15)=9 since factorials are 1, 2, 6, 24, 120, 720, etc. which mod 15 are 1, 2, 6, 9, 0, 0, etc. and the greatest value is 9.
MATHEMATICA
With[{fctrls=Factorial[Range[100]]}, Table[Max[Mod[Take[fctrls, n], n]], {n, 100}]] (* Harvey P. Dale, Jan 03 2011 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Henry Bottomley, Jun 11 2001
STATUS
approved