OFFSET
2,3
COMMENTS
!n is a subfactorial number (A000166).
LINKS
Indranil Ghosh, Table of n, a(n) for n = 2..449
EXAMPLE
a(5) = 5! mod !5 = 120 mod 44 = 32. - Indranil Ghosh, Feb 15 2017
MAPLE
with(numtheory): f:=n->sum(n!*(((-1)^k)*1/k!), k=0..n):for n from 1 to 30 do: x:=irem(n!, f(n)): printf(`%d, `, x):od:
MATHEMATICA
Table[Mod[n !, Subfactorial[n]], {n, 100} ]
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, Sep 07 2012
STATUS
approved