OFFSET
0,1
COMMENTS
LINKS
Clark Kimberling, Table of n, a(n) for n = 0..2000
Index entries for linear recurrences with constant coefficients, signature (1,3,-2,-2)
FORMULA
G.f.: (-2 + 3 x + 5 x^2 - 6 x^3)/(1 - x - 3 x^2 + 2 x^3 + 2 x^4).
MAPLE
f:= n -> - 2^floor((n+1)/2) + 4*combinat:-fibonacci(n) - combinat:-fibonacci(n+1):
map(f, [$0..30]); # Robert Israel, Jan 12 2018
MATHEMATICA
LinearRecurrence[{1, 3, -2, -2}, {-2, 1, 0, 1}, 100]
CROSSREFS
KEYWORD
easy,sign
AUTHOR
Clark Kimberling, Jan 07 2018
STATUS
approved