The OEIS is supported by the many generous donors to the OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A216441 a(n) = n! mod !n. 1
 0, 0, 6, 32, 190, 1332, 10654, 95888, 958878, 10547660, 126571918, 1645434936, 23036089102, 345541336532, 5528661384510, 93987243536672, 1691770383660094, 32143637289541788, 642872745790835758, 13500327661607550920, 297007208555366120238, 6831165796773420765476 (list; graph; refs; listen; history; text; internal format)
 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 Cf. A000166, A000142, A055596. Sequence in context: A228959 A302734 A319228 * A108188 A020058 A146557 Adjacent sequences: A216438 A216439 A216440 * A216442 A216443 A216444 KEYWORD nonn AUTHOR Michel Lagneau, Sep 07 2012 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified March 1 08:46 EST 2024. Contains 370430 sequences. (Running on oeis4.)