OFFSET
0,2
COMMENTS
Binomial transform ofA005667.
LINKS
G. C. Greubel,Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients,signature (8,-6).
FORMULA
a(n) = (4+sqrt(10))^n/2 + (4-sqrt(10))^n/2.
G.f.: (1-4*x)/(1 - 8*x + 6*x^2).
E.g.f.: exp(4*x)*cosh(sqrt(10)*x).
MATHEMATICA
LinearRecurrence[{8, -6}, {1, 4}, 30] (*Harvey P. Dale,Nov 30 2011 *)
PROG
(Magma) [n le 2 select 4^(n-1) else 8*Self(n-1) -6*Self(n-2): n in [1..40]]; //G. C. Greubel,Oct 13 2022
(SageMath)
A084134=BinaryRecurrenceSequence(8, -6, 1, 4)
[A084134(n) for n in range(41)] #G. C. Greubel,Oct 13 2022
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry,May 16 2003
STATUS
approved