cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A117905 Expansion of (1+2*x+2*x^2)/((1+x)*(1-x^3)^2).

This page as a plain text file.
%I A117905 #12 Sep 08 2022 08:45:24
%S A117905 1,1,1,1,3,1,2,4,2,2,6,2,3,7,3,3,9,3,4,10,4,4,12,4,5,13,5,5,15,5,6,16,
%T A117905 6,6,18,6,7,19,7,7,21,7,8,22,8,8,24,8,9,25,9,9,27,9,10,28,10,10,30,10,
%U A117905 11,31,11,11,33,11,12,34,12,12,36
%N A117905 Expansion of (1+2*x+2*x^2)/((1+x)*(1-x^3)^2).
%C A117905 Diagonal sums of number triangle A117904.
%H A117905 G. C. Greubel, <a href="/A117905/b117905.txt">Table of n, a(n) for n = 0..1000</a>
%H A117905 <a href="/index/Rec#order_07">Index entries for linear recurrences with constant coefficients</a>, signature (-1,0,2,2,0,-1,-1).
%F A117905 a(n) = -a(n-1) + 2*a(n-3) + 2*a(n-4) - a(n-6) - a(n-7).
%F A117905 a(n) = Sum_{k=0..floor(n/2)} 0^abs(L(C(n-k,2)/3) - L(C(k,2)/3)), where L(j/p) is the Legendre symbol of j and p.
%F A117905 From _G. C. Greubel_, Oct 18 2021: (Start)
%F A117905 a(n) = (1/36)*(10*n + 23 + (-1)^n*(9 + 16*u(n, 1/2) - 4*u(n-1, 1/2) - 12*Sum_{j=0..n} u(n-j, 1/2)*u(j, 1/2))), where u(n, x) = ChebyshevU(n, x).
%F A117905 a(n) = (1/36)*(39 + 30*n + 9*(-1)^n - 48*floor((n+2)/3) - 12*floor((n+1)/3) - 12*b(n)), where b(n) = binomial(n+3, 3) - 6*A014125(n-1) + 9*A144677(n-2). (End)
%t A117905 LinearRecurrence[{-1,0,2,2,0,-1,-1}, {1,1,1,1,3,1,2}, 75] (* _G. C. Greubel_, Oct 10 2021 *)
%o A117905 (PARI) lista(n) = {my(x = 'x + 'x*O('x^n)); P = (1+2*x+2*x^2) / ((1-x^3)*(1+x-x^3-x^4)); Vec(P);}  \\ _Michel Marcus_, Mar 20 2013
%o A117905 (Magma) R<x>:=PowerSeriesRing(Integers(), 75); Coefficients(R!( (1+2*x+2*x^2)/((1+x)*(1-x^3)^2) )); // _G. C. Greubel_, Oct 18 2021
%o A117905 (Sage)
%o A117905 def A117905_list(prec):
%o A117905     P.<x> = PowerSeriesRing(ZZ, prec)
%o A117905     return P( (1+2*x+2*x^2)/((1+x)*(1-x^3)^2) ).list()
%o A117905 A117905_list(75) # _G. C. Greubel_, Oct 18 2021
%Y A117905 Cf. A014125, A117904, A144677.
%K A117905 easy,nonn
%O A117905 0,5
%A A117905 _Paul Barry_, Apr 01 2006