OFFSET
0,3
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (1,1,-1,0,1).
FORMULA
G.f.: (1 + x^2 - x^3)/(1 - x - x^2 + x^3 - x^5). - Colin Barker, Nov 02 2012
MATHEMATICA
LinearRecurrence[{1, 1, -1, 0, 1}, {1, 1, 3, 2, 4}, 51] (* G. C. Greubel, Oct 25 2022 *)
PROG
(Magma) R<x>:=PowerSeriesRing(Integers(), 50); Coefficients(R!( (1+x^2-x^3)/(1-x-x^2+x^3-x^5) )); // G. C. Greubel, Oct 25 2022
(SageMath)
def A147604_list(prec):
P.<x> = PowerSeriesRing(ZZ, prec)
return P( (1+x^2-x^3)/(1-x-x^2+x^3-x^5) ).list()
A147604_list(50) # G. C. Greubel, Oct 25 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula, Nov 08 2008
EXTENSIONS
Edited by G. C. Greubel, Oct 25 2022
STATUS
approved