A133456 Period 18: repeat 3, 3, -5, 0, 3, -1, -3, 0, 7 followed by their negatives.
3, 3, -5, 0, 3, -1, -3, 0, 7, -3, -3, 5, 0, -3, 1, 3, 0, -7, 3, 3, -5, 0, 3, -1, -3, 0, 7, -3, -3, 5, 0, -3, 1, 3, 0, -7, 3, 3, -5, 0, 3, -1, -3, 0, 7, -3, -3, 5, 0, -3, 1, 3, 0, -7
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,0,0,-1).
Programs
-
PARI
a(n)=[3, 3, -5, 0, 3, -1, -3, 0, 7][n%9+1]*(-1)^(n\9) \\ Charles R Greathouse IV, Jul 13 2016
Formula
First differences 1, 4, 7, 2, 2, 5, 4 = A133390.
a(n) = -a(n-9) for n > 8. G.f.: (7*x^8 - 3*x^6 - x^5 + 3*x^4 - 5*x^2 + 3*x + 3)/(x^9 + 1). - Chai Wah Wu, Jun 04 2016