OFFSET
0,2
COMMENTS
See A109437 for comments.
Floretion Algebra Multiplication Program, FAMP Code: (-1)^(n)jbasejfor[ + .5'ii' + .5'kk' + .5'ij' + .5'ji' + .5'jk' + .5'kj'] 1vesfor = (-1,-1,-1,-1,)
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (3,3,-1).
FORMULA
G.f.: (1+2*x) / ((x+1)*(x^2-4*x+1)).
a(n) = (-2*(-1)^n + (7-5*sqrt(3))*(2-sqrt(3))^n + (2+sqrt(3))^n*(7+5*sqrt(3))) / 12. - Colin Barker, May 12 2019
MATHEMATICA
LinearRecurrence[{3, 3, -1}, {1, 5, 18}, 30] (* Harvey P. Dale, Sep 07 2021 *)
PROG
(PARI) Vec((1 + 2*x) / ((1 + x)*(1 - 4*x + x^2)) + O(x^30)) \\ Colin Barker, May 12 2019
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Creighton Dement, Jun 28 2005
STATUS
approved