OFFSET
0,2
LINKS
FORMULA
a(0)=1, a(1)=5, a(2)=24, a(n) = 3*a(n-1) + 5*a(n-2) for n>2.
MATHEMATICA
CoefficientList[ Series[(1 + 2x + 4x^2)/(1 - 3x - 5x^2), {x, 0, 25}], x]
a[0] = 1; a[1] = 5; a[2] = 24; a[n_] := 3 a[n - 1] + 5 a[n - 2]; Array[a, 26, 0]
Join[{1}, LinearRecurrence[{3, 5}, {5, 24}, 25]]
PROG
(PARI) Vec((1 + 2*x + 4*x^2)/(1 - 3*x - 5*x^2) + O(x^30)) \\ Michel Marcus, Oct 03 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Robert G. Wilson v, Sep 28 2016
STATUS
approved