OFFSET
0,2
COMMENTS
Suggested by A262592.
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (8,-22,28,-17,4).
FORMULA
From Colin Barker, Oct 23 2015: (Start)
a(n) = 8*a(n-1)-22*a(n-2)+28*a(n-3)-17*a(n-4)+4*a(n-5) for n>4.
a(n) = (34+2^(7+2*n)+93*n+18*n^2-9*n^3)/162.
(End)
MATHEMATICA
CoefficientList[Series[(1-2x)^2/((1-x)^4(1-4x)), {x, 0, 40}], x] (* or *) LinearRecurrence[ {8, -22, 28, -17, 4}, {1, 4, 14, 52, 203}, 40] (* Harvey P. Dale, Jul 04 2022 *)
PROG
(PARI) a(n) = (34+2^(7+2*n)+93*n+18*n^2-9*n^3)/162 \\ Colin Barker, Oct 23 2015
(PARI) Vec((1-2*x)^2/((1-x)^4*(1-4*x)) + O(x^40)) \\ Colin Barker, Oct 23 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Oct 22 2015
STATUS
approved