OFFSET
2,1
LINKS
Index entries for linear recurrences with constant coefficients, signature (5,-9,7,-2).
FORMULA
G.f.: x^2(x^4-4x^3+6x^2-4x+2)/[(1-2x)(1-x)^3].
MATHEMATICA
Drop[CoefficientList[Series[x^2(x^4-4x^3+6x^2-4x+2)/((1-2x)(1-x)^3), {x, 0, 30}], x], 2] (* or *) LinearRecurrence[{5, -9, 7, -2}, {2, 6, 18, 46, 107}, 40] (* Harvey P. Dale, Mar 29 2024 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved