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!)
A123007 Expansion of x*(1+x)/(1 -2*x -9*x^2). 1
1, 3, 15, 57, 249, 1011, 4263, 17625, 73617, 305859, 1274271, 5301273, 22070985, 91853427, 382345719, 1591372281, 6623856033, 27570062595, 114754829487, 477640222329, 1988073910041, 8274909821043, 34442484832455 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
From Philippe Deléham, Oct 18 2006: (Start)
a(n) = 2*a(n-1) + 9*a(n-2) for n > 2.
G.f.: x*(1+x)/(1 -2*x -9*x^2). (End)
a(n) = A002534(n) + A002534(n-1). - R. J. Mathar, Sep 17 2013
a(n) = (3*i)^(n-2)*(3*i*chebyshev_U(n-1, -i/3) + chebyshev_U(n-2, -i/3)). - G. C. Greubel, Jul 12 2021
MATHEMATICA
M:= {{0, 3}, {3, 2}}; v[1]= {1, 1}; v[n_]:= v[n]= M.v[n-1];
Table[v[n][[1]], {n, 30}]
Rest[CoefficientList[Series[(x(x+1))/(1-2x-9x^2), {x, 0, 30}], x]] (* or *) LinearRecurrence[{2, 9}, {1, 3}, 30] (* Harvey P. Dale, Aug 07 2015 *)
PROG
(Magma) [n le 2 select 3^(n-1) else 2*Self(n-1) +9*Self(n-2): n in [1..30]]; // G. C. Greubel, Jul 12 2021
(Sage) [(3*i)^(n-2)*(3*i*chebyshev_U(n-1, -i/3) + chebyshev_U(n-2, -i/3)) for n in [1..30]] # G. C. Greubel, Jul 12 2021
CROSSREFS
Cf. A002534.
Sequence in context: A218657 A218804 A125673 * A121695 A343994 A017949
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
Definition replaced with the Deléham formula by R. J. Mathar, Sep 17 2013
STATUS
approved

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 24 08:28 EDT 2024. Contains 371927 sequences. (Running on oeis4.)