OFFSET
0,1
COMMENTS
Generalized Lucas-Jacobsthal numbers.
Pisano period lengths: 1, 1, 1, 2, 4, 1, 6, 2, 3, 4, 5, 2, 12, 6, 4, 4, 16, 3, 18, 4,... - R. J. Mathar, Aug 10 2012
LINKS
Bruce Nye, Table of n, a(n) for n = 0..1000
Drexel University, Generation X and Y
G. Everest, Y. Puri and T. Ward, Integer sequences counting periodic points, arXiv:math/0204173 [math.NT], 2002.
OEIS Wiki, Autosequence
Index entries for linear recurrences with constant coefficients, signature (1,6)
FORMULA
a(0) = 2, a(1) = 1, a(n) = a(n-1) + 6*a(n-2).
The sequence 1, 13, 19,... is a(n+1) = 3*3^n - 2*(-2)^n.
exp(Sum_{n >= 1} a(n)*x^n/n) = Sum_{n >= 0} A015441(n+1)*x^n. - Peter Bala, Mar 30 2015
a(n) = 2*A015441(n+1) - A015441(n), a formula given by Paul Curtz for autosequences of the 2nd kind. - Jean-François Alcover, Jun 02 2017
MAPLE
seq(3^n + (-2)^n, n=0..28);
MATHEMATICA
a[0] = 2; a[1] = 1; a[n_] := a[n] = a[n - 1] + 6a[n - 2]; a /@ Range[0, 28] (* Robert G. Wilson v, Feb 02 2006 *)
PROG
(SageMath) [lucas_number2(n, 1, -6) for n in range(0, 28)] # Zerinvary Lajos, Apr 30 2009
(PARI) Vec((2-x)/((1+2*x)*(1-3*x)) + O(x^29)) \\ Bruce Nye, Apr 29 2026
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Sep 06 2003
STATUS
approved
