A300075 Period 6: repeat [0, 1, 1, 2, 2, 2].
0, 1, 1, 2, 2, 2, 0, 1, 1, 2, 2, 2, 0, 1, 1, 2, 2, 2, 0, 1, 1, 2, 2, 2, 0, 1, 1, 2, 2, 2, 0, 1, 1, 2, 2, 2, 0, 1, 1, 2, 2, 2, 0, 1, 1, 2, 2, 2, 0, 1, 1, 2, 2, 2, 0, 1, 1, 2, 2, 2, 0, 1, 1, 2, 2, 2, 0, 1, 1, 2, 2, 2, 0, 1, 1, 2, 2, 2
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,1).
Formula
a(n) = floor(((n+1) (mod 6))/2) + 2*floor((n (mod 6))/5), n >= 0.
G.f.: x*(1 + x + 2*x^2*(1 + x + x^2))/(1 - x^6).
a(n) = (4 - 2*cos(n*Pi/3) - cos(2*n*Pi/3) - cos(n*Pi) - sqrt(3)*sin(n*Pi/3))/3. - Wesley Ivan Hurt, Oct 04 2018
Comments