OFFSET
0,4
LINKS
Indranil Ghosh, Table of n, a(n) for n = 0..800
Indranil Ghosh, Python Program to generate the b-file
EXAMPLE
a(6) = !6 mod 6!! = 265 mod 48 = 25. - Indranil Ghosh, Feb 15 2017
MAPLE
sf:= proc(n) option remember; n*procname(n-1)+(-1)^n end proc:
sf(0):= 1:
df:= proc(n) option remember; n*procname(n-2) end proc:
df(0):= 1: df(1):= 1:
map(t -> sf(t) mod df(t), [$0..50]); # Robert Israel, Nov 16 2017
MATHEMATICA
Table[Mod[Subfactorial[n], n!!], {n, 0, 30} ]
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, Sep 07 2012
STATUS
approved