The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A052936 Expansion of (1-x)*(1-2*x)/(1-5*x+5*x^2). 3

%I #30 Sep 08 2022 08:44:59

%S 1,2,7,25,90,325,1175,4250,15375,55625,201250,728125,2634375,9531250,

%T 34484375,124765625,451406250,1633203125,5908984375,21378906250,

%U 77349609375,279853515625,1012519531250,3663330078125,13254052734375

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

%C For n>=0, a(n) is the number of generalized compositions of n+1 when there are 2^(i-1)+2 different types of i, (i=1,2,...). - _Milan Janjic_, Sep 24 2010

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

%H INRIA Algorithms Project, <a href="http://ecs.inria.fr/services/structure?nbr=925">Encyclopedia of Combinatorial Structures 925</a>

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

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

%F a(0)=1, a(1)=2, a(2)=7, a(n) = 5*a(n-1) - 5*a(n-2). - _Harvey P. Dale_, Apr 20 2012

%F a(n) = Sum_{alpha=RootOf(1-5*z+5*z^2)} (1/5)*(1 - alpha)*alpha^(-1-n).

%F The sequence beginning 2, 7, 25 ... has g.f. (2-3*x)/(1-5*x+5*x^2), a(n) = (1-2/sqrt(5))*(5/2-sqrt(5)/2)^n + (5/2+sqrt(5)/2)^n*(1+2/sqrt(5)). It is the binomial transform of Fib(2*n+3) and the second binomial transform of Fib(n+3). Also, its n-th term is the n-th term of the 3rd binomial transform of Fib(3*n+3) divided by 2^n. - _Paul Barry_, Mar 23 2004

%F Binomial transform of convolution of Fib(2*n+1) and (-1)^n. Binomial transform of Fib(n+1)^2. - _Paul Barry_, Sep 27 2004

%F a(n) = Sum_{k=0..n} C(n-1, k)*Fib(2*n-2*k+1). - _Paul Barry_, Jun 07 2005

%F a(2*n) = 5^(n-1)*Lucas(2*n+2) for n>=1 with a(2*0)=1 and a(2*n+1) = 5^n * Fibonacci(2*n+3). - _G. C. Greubel_, Oct 18 2019

%p spec:= [S,{S=Sequence(Prod(Union(Sequence(Z),Sequence(Union(Z,Z))),Z))}, unlabeled ]: seq(combstruct[count ](spec,size=n), n=0..20);

%p seq(coeff(series((1-x)*(1-2*x)/(1-5*x+5*x^2), x, n+1), x, n), n = 0 .. 30); # _G. C. Greubel_, Oct 18 2019

%t Join[{1},LinearRecurrence[{5,-5},{2,7},30]] (* _Harvey P. Dale_, Apr 20 2012 *)

%t Join[{1}, Table[If[EvenQ[n], 5^(n/2 -1)*LucasL[n+2], 5^((n-1)/2)* Fibonacci[n + 2]], {n, 30}]] (* _G. C. Greubel_, Oct 18 2019 *)

%o (PARI) my(x='x+O('x^30)); Vec((1-x)*(1-2*x)/(1-5*x+5*x^2)) \\ _G. C. Greubel_, Oct 18 2019

%o (Magma) I:=[2,7]; [1] cat [n le 2 select I[n] else 5*(Self(n-1) - Self(n-2)): n in [1..30]]; // _G. C. Greubel_, Oct 18 2019

%o (Sage)

%o def A052936_list(prec):

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

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

%o A052936_list(30) # _G. C. Greubel_, Oct 18 2019

%o (GAP) a:=[2,7];; for n in [3..30] do a[n]:=5*(a[n-1]-a[n-2]); od; Concatenation([1], a); # _G. C. Greubel_, Oct 18 2019

%Y Cf. A000032, A000045.

%K easy,nonn

%O 0,2

%A encyclopedia(AT)pommard.inria.fr, Jan 25 2000

%E More terms from _James A. Sellers_, Jun 06 2000

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 June 7 12:16 EDT 2024. Contains 373173 sequences. (Running on oeis4.)