login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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

%I #9 Oct 19 2017 07:41:14

%S 0,2,5,38,166,891,4326,21985,109567,551027,2759757,13846871,69418237,

%T 348143326,1745704167,8754189034,43898170484,220132165897,

%U 1103869189670,5535451646119,27757983230949,139194805502163,698004183274703

%N Number of 0..6 arrays of length n with each element differing from at least one neighbor by 1 or less, starting with 0.

%C Column 6 of A221683.

%H R. H. Hardin, <a href="/A221681/b221681.txt">Table of n, a(n) for n = 1..210</a>

%F 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).

%F 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

%e Some solutions for n=6

%e ..0....0....0....0....0....0....0....0....0....0....0....0....0....0....0....0

%e ..1....0....0....1....0....0....1....1....1....0....1....1....0....1....0....0

%e ..2....6....3....3....2....1....2....2....2....5....2....3....1....2....0....6

%e ..0....6....3....2....3....5....3....2....1....5....0....3....0....1....3....6

%e ..0....4....6....5....3....4....1....0....5....5....1....3....4....4....2....3

%e ..0....3....5....6....2....3....2....1....5....6....2....3....5....4....1....2

%K nonn

%O 1,2

%A _R. H. Hardin_, Jan 22 2013

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 28 04:13 EDT 2024. Contains 371235 sequences. (Running on oeis4.)