login
Expansion of g.f. (2-x-2*x^2)/((1-x)*(1-x+x^2)).
1

%I #16 Dec 11 2023 12:23:19

%S 2,3,0,-4,-5,-2,2,3,0,-4,-5,-2,2,3,0,-4,-5,-2,2,3,0,-4,-5,-2,2,3,0,-4,

%T -5,-2,2,3,0,-4,-5,-2,2,3,0,-4,-5,-2,2,3,0,-4,-5,-2,2,3,0,-4,-5,-2,2,

%U 3,0,-4,-5,-2,2,3,0,-4,-5,-2,2,3,0,-4,-5,-2,2,3,0,-4,-5,-2,2,3

%N Expansion of g.f. (2-x-2*x^2)/((1-x)*(1-x+x^2)).

%C A period 6 sequence. - _Christian Krause_, Dec 07 2023

%H <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (2,-2,1).

%F G.f.: (2-x-2*x^2)/((1-x)*(1-x+x^2)).

%F a(n) = a(n-1) - a(n-2) - 1. - _Christian Krause_, Dec 07 2023

%F a(n) = 5*sin(n*Pi/3)/sqrt(3) + 3*cos(n*Pi/3) - 1. - _Wesley Ivan Hurt_, Dec 09 2023

%K sign,easy

%O 0,1

%A _N. J. A. Sloane_