%I #15 Dec 12 2023 08:53:18
%S 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,
%T -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
%N Period 18: repeat 3, 3, -5, 0, 3, -1, -3, 0, 7 followed by their negatives.
%H <a href="/index/Rec#order_09">Index entries for linear recurrences with constant coefficients</a>, signature (0,0,0,0,0,0,0,0,-1).
%F First differences 1, 4, 7, 2, 2, 5, 4 = A133390.
%F 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
%o (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
%K sign,easy
%O 0,1
%A _Paul Curtz_, Nov 27 2007
|