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!)
A232336 Number of 2 X n 0..2 arrays with every 0 next to a 1 and every 1 next to a 2 horizontally or antidiagonally, with no adjacent elements equal. 1

%I #8 Oct 04 2018 11:51:54

%S 1,6,18,32,82,162,388,806,1858,3968,8962,19426,43396,94822,210578,

%T 462112,1022994,2250178,4972804,10951878,24180994,53291008,117604738,

%U 259275842,572028164,1261360966,2782483346,6136209184,13535050578,29850527586

%N Number of 2 X n 0..2 arrays with every 0 next to a 1 and every 1 next to a 2 horizontally or antidiagonally, with no adjacent elements equal.

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

%F Empirical: a(n) = a(n-1) + 3*a(n-2) - a(n-3) + a(n-4) - a(n-5) for n>6.

%F Empirical g.f.: x*(1 + 5*x + 9*x^2 - 3*x^3 + x^4 - 3*x^5) / ((1 + x - x^2)*(1 - 2*x - x^3)). - _Colin Barker_, Oct 04 2018

%e Some solutions for n=7:

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

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

%Y Row 2 of A232335.

%K nonn

%O 1,2

%A _R. H. Hardin_, Nov 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 April 18 18:49 EDT 2024. Contains 371781 sequences. (Running on oeis4.)