OFFSET
4,1
LINKS
R. H. Hardin, Table of n, a(n) for n = 4..500
Index entries for linear recurrences with constant coefficients, signature (0,1,2,2,1).
FORMULA
G.f.: -x^4*(13+23*x+27*x^2+20*x^3+8*x^4) / ( -1+x^2+2*x^3+2*x^4+x^5 ). - R. J. Mathar, Nov 30 2011
PROG
(PARI) a(n)=([0, 1, 0, 0, 0; 0, 0, 1, 0, 0; 0, 0, 0, 1, 0; 0, 0, 0, 0, 1; 1, 2, 2, 1, 0]^(n-4)*[13; 23; 40; 69; 120])[1, 1] \\ Charles R Greathouse IV, Jun 05 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
R. H. Hardin, Aug 14 2009
STATUS
approved
