OFFSET
2,3
COMMENTS
Rotations and reflections of placements are counted. If they are to be ignored, see A239573.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 2..1000
Index entries for linear recurrences with constant coefficients, signature (7,-21,35,-35,21,-7,1)
FORMULA
a(n) = (n-1)*(n-2)*(n^4+6*n^3-23*n^2-92*n+264)/48.
G.f.: -x^3*(11*x^4-36*x^3+25*x^2+14*x+1) / (x-1)^7. - Colin Barker, Mar 22 2014
MATHEMATICA
CoefficientList[Series[- x (11 x^4 - 36 x^3 + 25 x^2 + 14 x + 1)/(x - 1)^7, {x, 0, 40}], x] (* Vincenzo Librandi, Mar 23 2014 *)
LinearRecurrence[{7, -21, 35, -35, 21, -7, 1}, {0, 1, 21, 151, 615, 1845, 4571}, 50] (* Harvey P. Dale, Aug 08 2023 *)
PROG
(PARI) concat(0, Vec(-x^3*(11*x^4-36*x^3+25*x^2+14*x+1)/(x-1)^7 + O(x^100))) \\ Colin Barker, Mar 22 2014
(Magma) [(n^2-3*n+2)*(n^4+6*n^3-23*n^2-92*n+264)/48: n in [2..40]]; // Vincenzo Librandi, Mar 23 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Heinrich Ludwig, Mar 22 2014
STATUS
approved