OFFSET
0,1
COMMENTS
LINKS
Mario Catalani, Polymatrix and Generalized Polynacci Numbers, arXiv:math/0210201 [math.CO], 2002.
Index entries for linear recurrences with constant coefficients, signature (-1,-1,2).
FORMULA
G.f.: (3 + 2*x + x^2)/(1 + x + x^2 - 2*x^3).
MATHEMATICA
LinearRecurrence[{-1, -1, 2}, {3, -1, -1}, 38] (* Stefano Spezia, Jan 31 2020 *)
PROG
(Magma) a:=[3, -1, -1]; [n le 3 select a[n] else -Self(n-1)-Self(n-2)+2*Self(n-3):n in [1..30]]; // Marius A. Burtea, Feb 02 2020
CROSSREFS
KEYWORD
easy,sign
AUTHOR
Wojciech Florek, Jan 30 2020
EXTENSIONS
Definition clarified by N. J. A. Sloane, Apr 23 2020
STATUS
approved