Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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!)
A112553 Expansion of 1/( (1+x^2)*(1-x+x^2) ). 5
1, 1, -1, -2, 0, 2, 1, -1, -1, 0, 0, 0, 1, 1, -1, -2, 0, 2, 1, -1, -1, 0, 0, 0, 1, 1, -1, -2, 0, 2, 1, -1, -1, 0, 0, 0, 1, 1, -1, -2, 0, 2, 1, -1, -1, 0, 0, 0, 1, 1, -1, -2, 0, 2, 1, -1, -1, 0, 0, 0, 1, 1, -1, -2, 0, 2, 1, -1, -1, 0, 0, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
COMMENTS
Row sums of A112552.
LINKS
FORMULA
a(n) = (1/4)*Sum_{k=0..n} (-1)^floor((n-k)/2)*Sum_{j=0..n} (1+(-1)^(n-j))*(1+(-1)^(j-k)) *binomial((j+k)/2, k).
From G. C. Greubel, Jan 13 2022: (Start)
a(n) = Sum_{k=0..n} (-1)^floor((n-k)/2)*((1 + (-1)^(n+k))/2)*binomial((n+k+2)/2, k+1).
a(n + 12) = a(n). (End)
a(n) = -a(-4-n) for all n in Z. - Michael Somos, Feb 15 2024
EXAMPLE
G.f. = 1 + x - x^2 - 2*x^3 + 2*x^5 + x^6 - x^7 - x^8 + x^12 + x^13 - x^14 - 2*x^15 + ... - Michael Somos, Feb 15 2024
MATHEMATICA
Join[{1}, PadRight[{}, 120, {1, -1, -2, 0, 2, 1, -1, -1, 0, 0, 0, 1}]] (* G. C. Greubel, Jan 13 2022 *)
a[ n_] := {1, 1, -1, -2, 0, 2, 1, -1, -1, 0, 0, 0}[[1 + Mod[n, 12]]]; (* Michael Somos, Feb 15 2024 *)
PROG
(PARI) {a(n) = [1, 1, -1, -2, 0, 2, 1, -1, -1, 0, 0, 0][1 + n%12]}; /* Michael Somos, Feb 15 2024 */
CROSSREFS
Sequence in context: A354578 A339893 A343606 * A026610 A094451 A056562
KEYWORD
easy,sign
AUTHOR
Paul Barry, Sep 13 2005
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 August 18 20:50 EDT 2024. Contains 375284 sequences. (Running on oeis4.)