login
T(n,k)=Number of nXk 0..4 arrays with each element x equal to the number of its horizontal and vertical neighbors equal to 2,0,3,1,4 for x=0,1,2,3,4
7

%I #5 Mar 31 2012 12:36:25

%S 1,3,3,4,5,4,5,8,8,5,8,17,7,17,8,12,34,50,50,34,12,17,62,111,335,111,

%T 62,17,25,123,259,882,882,259,123,25,37,243,728,2998,3621,2998,728,

%U 243,37,54,471,1800,13533,22971,22971,13533,1800,471,54,79,924,4696,57281

%N T(n,k)=Number of nXk 0..4 arrays with each element x equal to the number of its horizontal and vertical neighbors equal to 2,0,3,1,4 for x=0,1,2,3,4

%C Every 0 is next to 0 2's, every 1 is next to 1 0's, every 2 is next to 2 3's, every 3 is next to 3 1's, every 4 is next to 4 4's

%C Table starts

%C ..1...3.....4......5........8........12..........17...........25.............37

%C ..3...5.....8.....17.......34........62.........123..........243............471

%C ..4...8.....7.....50......111.......259.........728.........1800...........4696

%C ..5..17....50....335......882......2998.......13533........57281.........234589

%C ..8..34...111....882.....3621.....22971......138924.......684002........3547662

%C .12..62...259...2998....22971....193137.....1306488.....10441374.......87352550

%C .17.123...728..13533...138924...1306488....13307143....182868341.....2172296568

%C .25.243..1800..57281...684002..10441374...182868341...3369153109....48734434499

%C .37.471..4696.234589..3547662..87352550..2172296568..48734434499..1022753961763

%C .54.924.12185.894628.21119073.710287441.23151489546.745373469270.25671148871894

%H R. H. Hardin, <a href="/A196287/b196287.txt">Table of n, a(n) for n = 1..219</a>

%e Some solutions for n=6 k=4

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

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

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

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

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

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

%Y Column 1 is A179070(n+2)

%Y Column 2 is A196140

%K nonn,tabl

%O 1,2

%A _R. H. Hardin_ Sep 30 2011