OFFSET
0,3
COMMENTS
REFERENCES
J. W. S. Cassels, Local Fields, Cambridge, 1986, see p. 67.
LINKS
F. Beukers, The multiplicity of binary recurrences, Compositio Mathematica, Tome 40 (1980) no. 2 , p. 251-267. See Theorem 2 p. 259.
M. Mignotte, Propriétés arithmétiques des suites récurrentes, Publications mathématiques de Besançon. Algèbre et théorie des nombres, no. 1 (1989), article no. 3, 29 p., see p. 14. In French.
Index entries for linear recurrences with constant coefficients, signature (-1,-2).
FORMULA
G.f.: (1 + 2*x) / (1 + x + 2*x^2). - R. J. Mathar, Jul 14 2011
a(n) = (i/sqrt(7))*(((-1 + i*sqrt(7))/2)^(n+2) - ((-1 -i*sqrt(7))/2)^(n+2)), where i=sqrt(-1). - Taras Goy, Jan 20 2026
E.g.f.: exp(-x/2)*(sqrt(7)*cos(sqrt(7)*x/2) + 3*sin(sqrt(7)*x/2))/sqrt(7). - Stefano Spezia, Jan 20 2026
MAPLE
f:=proc(n) option remember; if n <= 1 then 1 else -f(n-1)-2*f(n-2); fi; end;
MATHEMATICA
LinearRecurrence[{-1, -2}, {1, 1}, 46] (* Jean-François Alcover, Feb 23 2024 *)
PROG
(PARI) a(n)=([0, 1; -2, -1]^n*[1; 1])[1, 1] \\ Charles R Greathouse IV, Jun 11 2015
CROSSREFS
KEYWORD
sign,easy
AUTHOR
N. J. A. Sloane, Aug 29 2010
STATUS
approved
