OFFSET
0,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,2,-2).
FORMULA
MATHEMATICA
LinearRecurrence[{2, 2, -2}, {3, 2, 8}, 46]
PROG
(Magma) I:=[3, 2, 8]; [n le 3 select I[n] else 2*(Self(n-1) +Self(n-2) -Self(n-3)): n in [1..46]]; // G. C. Greubel, May 02 2022
(SageMath)
def A107300_list(prec):
P.<x> = PowerSeriesRing(ZZ, prec)
return P( (3-4*x-2*x^2)/(1-2*x-2*x^2+2*x^3) ).list()
A107300_list(45) # G. C. Greubel, May 02 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula, May 20 2005
EXTENSIONS
Definition replaced by recurrence by the Associate Editors of the OEIS, Sep 28 2009
STATUS
approved