OFFSET
1,1
COMMENTS
Column 2 of A251373.
LINKS
R. H. Hardin, Table of n, a(n) for n = 1..210
Robert Israel, Maple-assisted proof of empirical formula
Index entries for linear recurrences with constant coefficients, signature (24,49,-34).
FORMULA
Empirical: a(n) = 24*a(n-1) + 49*a(n-2) - 34*a(n-3).
From Robert Israel, Mar 19 2018: (Start)
Empirical formula verified: see link.
G.f.: (695*x+1289*x^2-918*x^3)/(1-24*x-49*x^2+34*x^3). (End)
EXAMPLE
Some solutions for n=2:
2 1 1 2 0 2 0 2 1 2 2 2 0 0 2 0 0 2 0 0 2
0 0 0 1 0 0 1 0 1 0 1 1 1 1 2 1 2 1 1 1 1
1 2 2 2 0 1 1 2 1 2 0 2 0 0 1 1 0 1 0 1 0
MAPLE
f:= gfun:-rectoproc({a(n) = 24*a(n-1) +49*a(n-2) -34*a(n-3), a(1)=695, a(2)=17969, a(3)=464393}, a(n), remember):
map(f, [$1..30]); # Robert Israel, Mar 19 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
R. H. Hardin, Dec 01 2014
STATUS
approved