OFFSET
1,1
LINKS
R. H. Hardin, Table of n, a(n) for n = 1..210
FORMULA
Empirical: a(n) = 6*a(n-1) +4*a(n-2) -87*a(n-3) +90*a(n-4) +450*a(n-5) -830*a(n-6) -936*a(n-7) +2737*a(n-8) +408*a(n-9) -4078*a(n-10) +891*a(n-11) +2766*a(n-12) -816*a(n-13) -904*a(n-14) +180*a(n-15) +120*a(n-16).
EXAMPLE
Some solutions for n=5:
0 2 1 3 1 2 0 1 0 2 1 2 1 2 3 4 2 3 2 4 1
2 0 3 1 3 0 2 0 3 1 4 1 4 1 4 1 3 0 3 1 2
0 2 1 3 1 2 0 1 0 2 1 2 1 2 3 4 2 3 2 4 1
2 0 3 1 3 0 2 0 3 1 4 1 4 1 4 1 3 0 3 1 2
0 2 1 3 1 2 0 3 2 4 3 4 3 4 2 3 1 2 1 3 0
3 1 4 2 4 1 3 0 3 1 4 1 4 1 4 1 3 0 3 1 2
CROSSREFS
KEYWORD
nonn
AUTHOR
R. H. Hardin, Jan 03 2014
STATUS
approved