OFFSET
0,1
COMMENTS
LINKS
Michael De Vlieger, Table of n, a(n) for n = 0..2095
Vladimir V. Kruchinin and Maria Y. Perminova, Identities and Hadamard Product of the Generalized Fibonacci, Lucas, Catalan, and Harmonic Numbers, Journal of Integer Sequences, Vol. 28 (2025), Article 25.8.8. See p. 5.
Weerayuth Nilsrakoo and Achariya Nilsrakoo, On One-Parameter Generalization of Jacobsthal Numbers, WSEAS Trans. Math. (2025) Vol. 24, 51-61. See p. 3.
Index entries for linear recurrences with constant coefficients, signature (2,3).
FORMULA
a(n) = 2*a(n-1) + 3*a(n-2).
From Elmo R. Oliveira, Dec 18 2023: (Start)
G.f.: 2*(1-x)/((1+x)*(1-3*x)).
E.g.f.: exp(-x) + exp(3*x).
a(n) = 2*A046717(n). (End)
MATHEMATICA
Table[3^n+(-1)^n, {n, 0, 30}] (* or *) LinearRecurrence[{2, 3}, {2, 2}, 30] (* Harvey P. Dale, Jun 19 2016 *)
PROG
(SageMath) [lucas_number2(n, 2, -3) for n in range(0, 26)] # Zerinvary Lajos, Apr 30 2009
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Graeme McRae, Feb 16 2005
STATUS
approved
