A158678 Period 18: repeat 0,0,0,3,0,0,0,3,0,-3,0,3,0,-3,0,0,0,-3.
0, 0, 0, 3, 0, 0, 0, 3, 0, -3, 0, 3, 0, -3, 0, 0, 0, -3, 0, 0, 0, 3, 0, 0, 0, 3, 0, -3, 0, 3, 0, -3, 0, 0, 0, -3, 0, 0, 0, 3, 0, 0, 0, 3, 0, -3, 0, 3, 0, -3, 0, 0, 0, -3
Offset: 1
Links
- Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,-1,0,0,0,0,0,-1).
Formula
G.f.: 3*(1+x+x^2)*(x^2-x+1)*(x^4-x^2+1)*x^4/((x^6-x^3+1)*(x^6+x^3+1)). - R. J. Mathar, Apr 08 2009
a(n) = - a(n-6) - a(n-12) for n > 12. - Chai Wah Wu, Feb 18 2021
Extensions
Edited by R. J. Mathar, Apr 08 2009