OFFSET
1,1
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (7,-21,35,-35,21,-7,1).
FORMULA
a(n) = (11*n^6 + 33*n^5 + 50*n^4 + 225*n^3 + 1379*n^2 - 1698*n + 720)/180 for n >= 3.
G.f.: x*(7 - 8*x + 50*x^2 - 36*x^3 + 60*x^4 - 36*x^5 + 4*x^6 + 4*x^7 - x^8)/(1 - x)^7.
PROG
(PARI) a(n) = if(n==1, 7, n==2, 41, (11*n^6 + 33*n^5 + 50*n^4 + 225*n^3 + 1379*n^2 - 1698*n + 720)/180)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Andrew Howroyd, Jan 13 2026
STATUS
approved
