login
Expansion of (1-x+x^2+x^3)/(1-x-x^5+x^6).
1

%I #9 Jun 13 2015 00:51:48

%S 1,0,1,2,2,3,2,3,4,4,5,4,5,6,6,7,6,7,8,8,9,8,9,10,10,11,10,11,12,12,

%T 13,12,13,14,14,15,14,15,16,16,17,16,17,18,18,19,18,19,20,20,21,20,21,

%U 22,22,23,22,23,24,24,25,24,25,26,26,27,26,27,28,28,29,28,29,30,30,31,30

%N Expansion of (1-x+x^2+x^3)/(1-x-x^5+x^6).

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

%F G.f.: (1-x+x^2+x^3)/(1-x-x^5+x^6)=(1+x^2+2x^3+2x^4+x^5+2x^6+x^7)/(1-x^5)^2; a(n)=sum{k=0..n, -mu(k mod 5)}.

%t CoefficientList[Series[(1-x+x^2+x^3)/(1-x-x^5+x^6),{x,0,120}],x] (* or *) LinearRecurrence[{1,0,0,0,1,-1},{1,0,1,2,2,3},121] (* _Harvey P. Dale_, Apr 26 2011 *)

%Y Cf. A008611.

%K easy,nonn

%O 0,4

%A _Paul Barry_, Apr 27 2005