OFFSET
0,2
COMMENTS
Old name was: "Number of stacks of n pikelets, distance 4 flips from a well-ordered stack".
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-5,1).
FORMULA
G.f.: (1 - 2*x + 43*x^2 - 21*x^3 + 3*x^4)/(1-x)^5. [From Maksym Voznyy (voznyy(AT)mail.ru), Aug 10 2009]
E.g.f.: (1/2)*(2 + 4*x + 43*x^2 + 21*x^3 + 2*x^4)*exp(x). - G. C. Greubel, Jan 03 2024
MATHEMATICA
Table[n^4+(9/2)(n^3-n)+n^2+1, {n, 0, 30}] (* Harvey P. Dale, Dec 01 2020 *)
PROG
(Magma) [(2*n^4+9*n^3+2*n^2-9*n+2)/2: n in [0..40]]; // G. C. Greubel, Jan 03 2024
(SageMath) [(2*n^4+9*n^3+2*n^2-9*n+2)/2 for n in range(41)] # G. C. Greubel, Jan 03 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Offset corrected by G. C. Greubel, Jan 03 2024
STATUS
approved