OFFSET
1,4
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (2, -1, 0, 0, 0, 0, 0, 1, -2, 1).
FORMULA
From Chai Wah Wu, Jun 10 2020: (Start)
a(n) = 2*a(n-1) - a(n-2) + a(n-8) - 2*a(n-9) + a(n-10) for n > 10.
G.f.: x^3*(1 + x^3 + x^4)/((1 - x)^3*(1 + x)*(1 + x^2)*(1 + x^4)). (End)
a(n) = 3/16*n^2 - n/8 + O(1). - Charles R Greathouse IV, May 28 2026
MAPLE
seq(coeff(series( x^3*(1+x^3+x^4)/((1-x)^2*(1-x^8)) , x, n+1), x, n), n = 1..60); # G. C. Greubel, Jun 10 2020
MATHEMATICA
PROG
(PARI) a(n)=(3*n^2-2*n+[0, -1, -8, -5, -8, -17, -16, -5][n%8+1])/16 \\ Charles R Greathouse IV, May 28 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Aug 19 2011
STATUS
approved
