OFFSET
0,2
LINKS
Clark Kimberling, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (5,-7,5).
FORMULA
G.f.: (1 - 2*x + 2*x^2)/(1 - 5*x + 7*x^2 - 5*x^3).
a(n) = 5*a(n-1) - 7*a(n-2) + 5*a(n-3) for n >= 4.
a(n) = (1/2)*A291005(n).
MATHEMATICA
PROG
(Magma) R<x>:=PowerSeriesRing(Integers(), 30); Coefficients(R!( (1-2*x+2*x^2)/(1-5*x+7*x^2-5*x^3) )); // G. C. Greubel, Jun 01 2023
(SageMath)
def A291337_list(prec):
P.<x> = PowerSeriesRing(ZZ, prec)
return P( (1-2*x+2*x^2)/(1-5*x+7*x^2-5*x^3) ).list()
A291337_list(30) # G. C. Greubel, Jun 01 2023
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Aug 23 2017
STATUS
approved