OFFSET
1,4
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = A129981(n-1) mod n.
EXAMPLE
0!! mod 1 = 1 mod 1 = 0.
(0!!+1!!) mod 2 = (1 + 1) mod 2 = 0.
(0!!+1!!+2!!) mod 3 = (1 + 1 + 2) mod 3 = 1.
MAPLE
MATHEMATICA
Table[Mod[Total[Range[0, n-1]!!], n], {n, 80}] (* Harvey P. Dale, Nov 15 2021 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paolo P. Lava & Giorgio Balzarotti, Apr 26 2010
STATUS
approved