OFFSET
1,1
COMMENTS
According to the Generalized Wilson-Lagrange Theorem, a prime p divides (p-k)!*(k-1)! - (-1)^k for all integers k > 0. p divides a(p) for prime p. Quotients a(p)/p are listed in A134296(n) = {1, 2, 13, 259, 750371, 81566917, 2642791002353, 716984262871579, 102688143363690674087, ...}. p^2 divides a(p) for prime p = {7, 71}.
FORMULA
a(n) = Sum_{k=1..n} ((n-k)!*(k-1)! - (-1)^k).
MATHEMATICA
Table[ Sum[ (n-k)!*(k-1)! - (-1)^k, {k, 1, n} ], {n, 1, 30} ]
CROSSREFS
KEYWORD
nonn
AUTHOR
Alexander Adamchuk, Oct 17 2007
STATUS
approved