login
A242317
Number of length n+2+2 0..2 arrays with every value 0..2 appearing at least once in every consecutive 2+3 elements, and new values 0..2 introduced in order.
2
25, 61, 145, 337, 781, 1829, 4269, 9957, 23233, 54225, 126533, 295265, 689021, 1607877, 3752057, 8755625, 20431737, 47678569, 111260509, 259632437, 605866385, 1413822053, 3299230409, 7698933081, 17965877829, 41924350093, 97832744293
OFFSET
1,1
COMMENTS
Column 2 of A242322.
LINKS
FORMULA
Empirical: a(n) = a(n-1) + 2*a(n-2) + 2*a(n-3) + 2*a(n-4) - a(n-5) - a(n-6).
Empirical g.f.: x*(25 + 36*x + 34*x^2 + 20*x^3 - 18*x^4 - 13*x^5) / ((1 + x)*(1 - 2*x - 2*x^3 + x^5)). - Colin Barker, Mar 19 2018
EXAMPLE
Some solutions for n=5:
..0....0....0....0....0....0....0....0....0....0....0....0....0....0....0....0
..1....1....1....1....1....1....1....1....1....0....1....0....0....1....1....1
..0....2....1....2....1....0....2....1....0....1....0....1....1....0....1....2
..1....2....2....0....2....1....2....2....0....2....2....1....0....2....0....0
..2....0....0....1....0....2....2....2....2....2....2....2....2....1....2....1
..1....2....2....0....2....0....0....0....1....0....1....2....2....2....1....2
..1....1....1....2....2....1....1....1....0....1....2....0....2....0....2....1
..0....1....2....2....1....1....1....0....0....2....0....1....1....2....0....2
..0....0....2....0....2....0....2....0....1....2....2....0....0....0....2....0
CROSSREFS
Cf. A242322.
Sequence in context: A044127 A044508 A166873 * A251688 A211326 A103645
KEYWORD
nonn
AUTHOR
R. H. Hardin, May 10 2014
STATUS
approved