OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
FORMULA
EXAMPLE
a(6) = (a(5) mod 9) * 9 = (24 mod 9) * 9 = 6*9 = 54.
MATHEMATICA
CoefficientList[Series[(-1 - 3*x - 14*x^2 + 14*x^3 + 8*x^4 - 8*x^5)/((x - 1)^3*(1 + x)^2), {x, 0, 50}], x] (* G. C. Greubel, Feb 25 2017 *)
RecurrenceTable[{a[0]==1, a[n]==Mod[a[n-1], n+3](n+3)}, a, {n, 50}] (* Harvey P. Dale, Oct 21 2018 *)
PROG
(Python)
a=1
for n in range(1, 55):
print(a, end=", ")
a = (a%(n+3)) * (n+3)
(PARI) x='x+O('x^50); Vec((-1-3*x-14*x^2+14*x^3+8*x^4-8*x^5)/((x-1)^3*(1+x)^2)) \\ G. C. Greubel, Feb 25 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Alex Ratushnyak, Apr 30 2012
STATUS
approved