%I #10 Oct 05 2018 07:59:49
%S 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,
%T 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,
%U 1,2,2,2,0,1,1,2,2,2
%N Period 6: repeat [0, 1, 1, 2, 2, 2].
%C Underlying A300076.
%H <a href="/index/Rec#order_06">Index entries for linear recurrences with constant coefficients</a>, signature (0,0,0,0,0,1).
%F a(n) = floor(((n+1) (mod 6))/2) + 2*floor((n (mod 6))/5), n >= 0.
%F G.f.: x*(1 + x + 2*x^2*(1 + x + x^2))/(1 - x^6).
%F 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
%Y Cf. A300067, A300069, A300076.
%K nonn,easy
%O 0,4
%A _Wolfdieter Lang_, Mar 03 2018