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!)
A220946 Expansion of (1+2*x+2*x^2-x^3)/((1-x)*(1+x)*(1-3x^2)). 0
1, 2, 6, 7, 21, 22, 66, 67, 201, 202, 606, 607, 1821, 1822, 5466, 5467, 16401, 16402, 49206, 49207, 147621, 147622, 442866, 442867, 1328601, 1328602, 3985806, 3985807, 11957421, 11957422, 35872266, 35872267, 107616801, 107616802, 322850406, 322850407 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
a(n) = a(n-1)+1 if n odd, a(n) = a(n-1)*3 if n even.
a(2n) = A134931(n), a(2n+1) = A060816(n+1).
a(n) = 4*a(n-2) - 3*a(n-4) with a(0)=1, a(1)=2, a(2)=6, a(3)=7.
MATHEMATICA
LinearRecurrence[{0, 4, 0, -3}, {1, 2, 6, 7}, 40] (* T. D. Noe, Apr 17 2013 *)
CROSSREFS
Sequence in context: A342534 A100901 A004791 * A243795 A060112 A057914
KEYWORD
nonn,easy
AUTHOR
Philippe Deléham, Apr 14 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 May 13 05:24 EDT 2024. Contains 372498 sequences. (Running on oeis4.)