OFFSET
0,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,-1,0,0,0,-1,2,-1).
FORMULA
O.g.f.: (9x^6-6x^5+4x^3+2x^2+1)/((x-1)^2*(x^2+1)*(x^4-x^2+1)). - R. J. Mathar, Jul 16 2008
a(n) = 2*a(n-1) - a(n-2) - a(n-6) + 2*a(n-7) - a(n-8) for n > 7. - Chai Wah Wu, Jan 09 2021
MATHEMATICA
Accumulate[PadRight[{}, 60, {1, 1, 3, 7, 7, 1, 9, 9, 7, 3, 3, 9}]] (* Harvey P. Dale, Jul 30 2025 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Sep 24 2007
EXTENSIONS
Edited by R. J. Mathar, Jul 16 2008
STATUS
approved
