login
T(n,k)=Number of nXk 0..3 arrays with no occurrence of three equal elements in a row horizontally, vertically, diagonally or antidiagonally, and new values 0..3 introduced in row major order
9

%I #6 Feb 22 2020 20:54:24

%S 1,2,2,4,15,4,12,159,159,12,40,2191,6451,2191,40,143,31168,287379,

%T 287379,31168,143,528,447343,12711292,40919141,12711292,447343,528,

%U 1979,6427791,563046972,5770321516,5770321516,563046972,6427791,1979,7466,92387812

%N T(n,k)=Number of nXk 0..3 arrays with no occurrence of three equal elements in a row horizontally, vertically, diagonally or antidiagonally, and new values 0..3 introduced in row major order

%C Table starts

%C ....1........2.............4..............12...............40..............143

%C ....2.......15...........159............2191............31168...........447343

%C ....4......159..........6451..........287379.........12711292........563046972

%C ...12.....2191........287379........40919141.......5770321516.....815364171994

%C ...40....31168......12711292......5770321516....2579588216958.1155411237719424

%C ..143...447343.....563046972....815364171994.1155411237719424

%C ..528..6427791...24932875448.115180678788869

%C .1979.92387812.1104148318540

%H R. H. Hardin, <a href="/A204685/b204685.txt">Table of n, a(n) for n = 1..60</a>

%e Some solutions for n=5 k=3

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

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

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

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

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

%K nonn,tabl

%O 1,2

%A _R. H. Hardin_ Jan 18 2012