A131731 Period 4: repeat [2, -3, 4, -3].
2, -3, 4, -3, 2, -3, 4, -3, 2, -3, 4, -3, 2, -3, 4, -3, 2, -3, 4, -3, 2, -3, 4, -3, 2, -3, 4, -3, 2, -3, 4, -3, 2, -3, 4, -3, 2, -3, 4, -3, 2, -3, 4, -3, 2, -3, 4, -3, 2, -3, 4, -3, 2, -3, 4, -3, 2, -3, 4, -3, 2, -3, 4, -3, 2, -3, 4, -3, 2, -3, 4, -3, 2, -3, 4, -3, 2, -3, 4, -3, 2, -3, 4, -3, 2, -3, 4, -3, 2, -3, 4, -3
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (-1,-1,-1).
Formula
From Luce ETIENNE, Mar 25 2017: (Start)
a(n)= (6*(-1)^n-(-1)^((2*n+1-(-1)^n)/4)-(-1)^((2*n-1+(-1)^n)/4))/2.
a(n) = 3*cos(n*Pi)-cos(n*Pi/2). (End)
Extensions
Better name from Joerg Arndt, Apr 02 2017