cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A117576 Expansion of (1-x^3)/((1-x^2)(1+2x^2)).

Original entry on oeis.org

1, 0, -1, -1, 3, 1, -5, -3, 11, 5, -21, -11, 43, 21, -85, -43, 171, 85, -341, -171, 683, 341, -1365, -683, 2731, 1365, -5461, -2731, 10923, 5461, -21845, -10923, 43691, 21845, -87381, -43691, 174763, 87381, -349525, -174763, 699051
Offset: 0

Views

Author

Paul Barry, Mar 29 2006

Keywords

Comments

A signed pair-reversal of the Jacobsthal numbers A001045. Diagonal sums of A116949.

Crossrefs

Cf. A112447.

Formula

G.f.: (1+x+x^2)/(1+x+2x^2+2x^3); a(n)=-a(n-1)-2a(n-2)-2a(n-3); a(n)=2^(n/2)(2*cos(pi*n/2)/3+sqrt(2)*sin(pi*n/2)/6)+(-1)^n/3;
a(n) = floor(((-1)^(floor(n/2))*2^(2*floor(n/2)+1-floor((n+1)/2))+1)/3). - Tani Akinari, Nov 09 2012