login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A117576
Expansion of (1-x^3)/((1-x^2)(1+2x^2)).
1
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,5
COMMENTS
A signed pair-reversal of the Jacobsthal numbers A001045. Diagonal sums of A116949.
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
CROSSREFS
Cf. A112447.
Sequence in context: A077881 A129095 A105604 * A112447 A289360 A290212
KEYWORD
easy,sign
AUTHOR
Paul Barry, Mar 29 2006
STATUS
approved