%I#16 2024年3月26日04:09:43
%S 0,1,-1,0,2,-2,0,3,-3,0,4,-4,0,5,-5,0,6,-6,0,7,-7,0,8,-8,0,9,-9,0,10,
%温度-10,0,11,-11,0,12,-12,0,13,-13,0,14,-14,0,15,-15,0,16,-16,0,17,-17,0,
%U 18、-18、0、19、-19
%N x/(1+x+x^2-x^3-x^4-x^5)的展开。
%C部分和为0,1,0,0,2,0,0,1,3,0,4,4,。。。
%H G.C.Greubel,n表,n=0..1000时的a(n)</a>
%H<a href=“/index/Rec#order_05”>具有常数的线性重复出现的索引条目,签名(-1,-1,1,1)。
%F G.F.:x/((1-x)*(1+x+x^2)^2)=x*(1-x)/(1-x^3)^2。
%F a(n)=(1/9)*(1-cos(2*Pi*n/3)+sqrt(3)*(2*n+3)*sin。
%F a(n)=地板((n+3)/3)*A049347(n+2)_G.C.Greubel,2024年3月26日
%t系数表[级数[x/(1+x+x^2-x^3-x^4-x^5),{x,0,60}],x](*或*)线性递归[{-1,-1,1,1},{0,1,-1,0,2},60](*or*)表[{0,n,-n},},20}]//扁平(*H arvey P.Dale_,2017年7月15日*)
%t桌子[地板[(n+3)/3]*(Mod[n+1,3]-1),{n,0,40}](*_G.C.Greubel_,2024年3月26日*)
%o(岩浆)[地层((n+3)/3)*((n+1)mod 3-1):n in[0..40]];//_G.C.Greubel,2024年3月26日
%o(SageMath)[((n+3)//3)*((n+1)%3-1)范围(41)内的n]#_G.C.Greubel_,2024年3月26日
%Y参见A049347、A087508。
%K放松,签名
%0、5
%A Paul Barry,2007年3月13日