OFFSET
0,3
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..10000
MAPLE
f:= gfun:-rectoproc({(3+3*n)*a(n)+(5+2*n)*a(1+n)+(-4-n)*a(n+2), a(0) = 1, a(1) = 1}, a(n), remember):
seq(f(n) mod 6, n=0..100); # Robert Israel, Mar 16 2018
MATHEMATICA
b = DifferenceRoot[Function[{b, n}, {3 (n + 1) b[n] + (2 n + 5) b[n + 1] == (n + 4) b[n + 2], b[0] == 1, b[1] == 1}]];
a[n_] := Mod[b[n], 6];
Table[a[n], {n, 0, 100}] (* Jean-François Alcover, Feb 26 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Mar 16 2018
STATUS
approved