login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A008808 Expansion of (1+x^7)/((1-x^2)^2*(1-x^7)). 1

%I #21 Sep 08 2022 08:44:36

%S 1,0,2,0,3,0,4,2,5,4,6,6,7,8,10,10,13,12,16,14,19,18,22,22,25,26,28,

%T 30,33,34,38,38,43,42,48,48,53,54,58,60,63,66,70,72,77,78,84,84,91,92,

%U 98,100,105,108,112,116,121,124,130,132,139,140,148,150,157

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

%H G. C. Greubel, <a href="/A008808/b008808.txt">Table of n, a(n) for n = 0..1000</a>

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

%F G.f.: (1 -x +x^2 -x^3 -x^4 +x^5 -x^6)/( (1+x)*(1+x+x^2+x^3+x^4+x^5+x^6)*(1-x)^3 ). - _R. J. Mathar_, Feb 06 2015

%p seq(coeff(series((1+x^7)/((1-x^2)^2*(1-x^7)), x, n+1), x, n), n = 0..70); # _G. C. Greubel_, Sep 12 2019

%t LinearRecurrence[{1,1,-1,0,0,0,1,-1,-1,1}, {1,0,2,0,3,0,4,2,5,4}, 70] (* _G. C. Greubel_, Sep 12 2019 *)

%o (PARI) a(n)=(4*((-1)^(n%7)-1)*(n%7+1)+2*n^2+8*n+55+49*(-1)^n)\56 \\ _Tani Akinari_, Jul 24 2013

%o (PARI) Vec((1+x^7)/(1-x^2)^2/(1-x^7) + O(x^70)) \\ _Michel Marcus_, Feb 06 2015

%o (Magma) R<x>:=PowerSeriesRing(Integers(), 70); Coefficients(R!( (1+x^7)/((1-x^2)^2*(1-x^7)) )); // _G. C. Greubel_, Sep 12 2019

%o (Sage)

%o def A008808_list(prec):

%o P.<x> = PowerSeriesRing(ZZ, prec)

%o return P((1+x^7)/((1-x^2)^2*(1-x^7))).list()

%o A008808_list(70) # _G. C. Greubel_, Sep 12 2019

%o (GAP) a:=[1,0,2,0,3,0,4,2,5,4];; for n in [11..70] do a[n]:=a[n-1]+a[n-2] -a[n-3]+a[n-7]-a[n-8]-a[n-9]+a[n-10]; od; a; # _G. C. Greubel_, Sep 12 2019

%K nonn

%O 0,3

%A _N. J. A. Sloane_

%E More terms added by _G. C. Greubel_, Sep 12 2019

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 16 12:36 EDT 2024. Contains 371711 sequences. (Running on oeis4.)