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!)
A097122 Expansion of (1-x)^2/((1-x)^3 - 3*x^3). 3
1, 1, 1, 4, 13, 31, 70, 169, 421, 1036, 2521, 6139, 14998, 36661, 89545, 218644, 533941, 1304071, 3184966, 7778449, 18996733, 46394716, 113307745, 276726019, 675833686, 1650553981, 4031064961, 9844867684, 24043624093, 58720529071 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
LINKS
FORMULA
G.f.: (1-2*x+x^2)/(1-3*x+3*x^2-4*x^3).
a(n) = 3*a(n-1) - 3*a(n-2) + 4*a(n-3).
a(n) = Sum_{k=0..floor(n/3)} binomial(n, 3k) * 3^k.
MATHEMATICA
CoefficientList[Series[(1-x)^2/((1-x)^3-3x^3), {x, 0, 40}], x]
PROG
(PARI) a(n) = sum(k=0, n\3, binomial(n, 3*k) * 3^k); \\ Michel Marcus, Oct 11 2021
CROSSREFS
Sequence in context: A216563 A011937 A307304 * A116411 A333047 A106337
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Jul 25 2004
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 07:28 EDT 2024. Contains 371922 sequences. (Running on oeis4.)