login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A221681
Number of 0..6 arrays of length n with each element differing from at least one neighbor by 1 or less, starting with 0.
1
0, 2, 5, 38, 166, 891, 4326, 21985, 109567, 551027, 2759757, 13846871, 69418237, 348143326, 1745704167, 8754189034, 43898170484, 220132165897, 1103869189670, 5535451646119, 27757983230949, 139194805502163, 698004183274703
OFFSET
1,2
COMMENTS
Column 6 of A221683.
LINKS
FORMULA
Empirical: a(n) = 4*a(n-1) +5*a(n-2) -7*a(n-3) +33*a(n-4) +17*a(n-5) +24*a(n-6) -5*a(n-7) +2*a(n-8).
Empirical g.f.: x^2*(2 - 3*x + 8*x^2 + 3*x^3 + 6*x^4 - x^5 + x^6) / (1 - 4*x - 5*x^2 + 7*x^3 - 33*x^4 - 17*x^5 - 24*x^6 + 5*x^7 - 2*x^8). - Colin Barker, Oct 19 2017
EXAMPLE
Some solutions for n=6
..0....0....0....0....0....0....0....0....0....0....0....0....0....0....0....0
..1....0....0....1....0....0....1....1....1....0....1....1....0....1....0....0
..2....6....3....3....2....1....2....2....2....5....2....3....1....2....0....6
..0....6....3....2....3....5....3....2....1....5....0....3....0....1....3....6
..0....4....6....5....3....4....1....0....5....5....1....3....4....4....2....3
..0....3....5....6....2....3....2....1....5....6....2....3....5....4....1....2
CROSSREFS
Sequence in context: A053609 A036780 A051501 * A347070 A290711 A228837
KEYWORD
nonn
AUTHOR
R. H. Hardin, Jan 22 2013
STATUS
approved