The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A052939 Expansion of (1-x)*(1+x)/(1-3*x-x^2+2*x^3). 3
 1, 3, 9, 28, 87, 271, 844, 2629, 8189, 25508, 79455, 247495, 770924, 2401357, 7480005, 23299524, 72575863, 226067103, 704178124, 2193449749, 6832393165, 21282272996, 66292312655, 206494424631, 643211040556, 2003542920989 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,2 LINKS Harvey P. Dale, Table of n, a(n) for n = 0..1000 INRIA Algorithms Project, Encyclopedia of Combinatorial Structures 930 Index entries for linear recurrences with constant coefficients, signature (3,1,-2). FORMULA G.f.: (1-x^2)/(1-3*x-x^2+2*x^3). a(n) = 3*a(n-1) + a(n-2) - 2*a(n-3). a(n) = Sum_{alpha=RootOf(1-3*z-z^2+2*z^3)} (1/229)*(66 +15*alpha -28*alpha^2)*alpha^(-1-n). MAPLE spec := [S, {S=Sequence(Union(Z, Z, Prod(Z, Sequence(Prod(Z, Z)))))}, unlabeled ]: seq(combstruct[count ](spec, size=n), n=0..20); seq(coeff(series((1-x^2)/(1-3*x-x^2+2*x^3), x, n+1), x, n), n = 0..30); # G. C. Greubel, Oct 18 2019 MATHEMATICA LinearRecurrence[{3, 1, -2}, {1, 3, 9}, 30] (* Harvey P. Dale, Aug 25 2019 *) PROG (PARI) my(x='x+O('x^30)); Vec((1-x^2)/(1-3*x-x^2+2*x^3)) \\ G. C. Greubel, Oct 18 2019 (MAGMA) R:=PowerSeriesRing(Integers(), 30); Coefficients(R!( (1-x^2)/(1-3*x-x^2+2*x^3) )); // G. C. Greubel, Oct 18 2019 (Sage) def A052939_list(prec):     P. = PowerSeriesRing(ZZ, prec)     return P((1-x^2)/(1-3*x-x^2+2*x^3)).list() A052939_list(30) # G. C. Greubel, Oct 18 2019 (GAP) a:=[1, 3, 9];; for n in [4..30] do a[n]:=3*a[n-1]+a[n-2]-2*a[n-3]; od; a; # G. C. Greubel, Oct 18 2019 CROSSREFS Sequence in context: A052541 A024738 A263841 * A225114 A085839 A115239 Adjacent sequences:  A052936 A052937 A052938 * A052940 A052941 A052942 KEYWORD easy,nonn AUTHOR encyclopedia(AT)pommard.inria.fr, Jan 25 2000 EXTENSIONS More terms from James A. Sellers, Jun 06 2000 STATUS approved

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

Last modified April 1 05:04 EDT 2020. Contains 333155 sequences. (Running on oeis4.)