OFFSET
0,1
COMMENTS
Number of injections from {1,2,3,4} to {1,2,...,n} with no fixed points. - Fiona T. Brunk (fbrunk(AT)mcs.st-and.ac.uk), May 23 2006
In general (cf. A094792, A094794, A094795, etc.), the number of injections [k] -> [n] with no fixed points is given by Sum_{i=0..k} (-1)^i*binomial(k,i)*(n-i)!/(n-k)!, which is equal to (1/n!)*f_k(n) where f_k(n) gives the k-th differences of factorial numbers. - Fiona T. Brunk (fbrunk(AT)mcs.st-and.ac.uk), May 23 2006
LINKS
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-5,1).
FORMULA
a(n) = n^4 + 6*n^3 + 17*n^2 + 20*n + 9.
a(n) = Sum_{i=0..4} (-1)^i*binomial(4,i)*(n-i)!/(n-4)!. - Fiona T. Brunk (fbrunk(AT)mcs.st-and.ac.uk), May 23 2006
G.f.: -(x^4+6*x^2+8*x+9) / (x-1)^5. - Colin Barker, Jun 16 2013
a(n) = 5*a(n-1) - 10*a(n-2) + 10*a(n-3) - 5*a(n-4) + a(n-5). - Fung Lam, Apr 17 2014
P-recursive: n*a(n) = (n+5)*a(n-1) - a(n-2) with a(0) = 9 and a(1) = 53. Cf. A094791. - Peter Bala, Jul 25 2021
MATHEMATICA
LinearRecurrence[{5, -10, 10, -5, 1}, {9, 53, 181, 465, 1001}, 40] (* Harvey P. Dale, May 23 2016 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Benoit Cloitre, Jun 11 2004
STATUS
approved