OFFSET
0,5
LINKS
Index entries for linear recurrences with constant coefficients, signature (-1,-2,-2).
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
KEYWORD
easy,sign
AUTHOR
Paul Barry, Mar 29 2006
STATUS
approved