OFFSET
1,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-5,1).
FORMULA
a(n) = n^4 - 9 n^2 + 24 n - 16.
G.f.: 4*x^2*(4*x^3-8*x^2+x-3)/(x-1)^5. [Colin Barker, Jan 09 2013]
EXAMPLE
There are 56 ways of putting 2 distinct knights on 3 X 3 so that neither can capture the other
MATHEMATICA
CoefficientList[Series[4 x (4 x^3 - 8 x^2 + x - 3)/(x - 1)^5, {x, 0, 50}], x] (* Vincenzo Librandi, Oct 20 2013 *)
PROG
(Magma) [n^4 - 9*n^2 + 24*n - 16: n in [1..50]]; // Vincenzo Librandi, Oct 20 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved