OFFSET
0,3
COMMENTS
Binomial transform of A084156.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (8,-16,0,12).
FORMULA
a(n) = 8*a(n-1) - 16*a(n-2) + 12*a(n-4).
a(n) = ((3+sqrt(3))^n + (3-sqrt(3))^n - (1+sqrt(3))^n - (1-sqrt(3))^n)/4.
G.f.: x*(1-4*x+6*x^2)/((1-2*x-2*x^2)*(1-6*x+6*x^2)).
E.g.f.: exp(2*x)*sinh(x)*cosh(sqrt(3)*x).
From G. C. Greubel, Oct 11 2022: (Start)
MATHEMATICA
LinearRecurrence[{8, -16, 0, 12}, {0, 1, 4, 22}, 30] (* Harvey P. Dale, Feb 19 2017 *)
PROG
(Magma) I:=[0, 1, 4, 22]; [n le 4 select I[n] else 8*Self(n-1) -16*Self(n-2) +12*Self(n-4): n in [1..41]]; // G. C. Greubel, Oct 11 2022
(SageMath)
A083881 = BinaryRecurrenceSequence(6, -6, 1, 3)
A026150 = BinaryRecurrenceSequence(2, 2, 1, 1)
[A084157(n) for n in range(41)] # G. C. Greubel, Oct 11 2022
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, May 16 2003
STATUS
approved