%I #5 Mar 31 2012 12:36:29
%S 1,1,1,1,1,1,1,9,9,1,1,17,18,17,1,1,33,83,83,33,1,1,89,245,441,245,89,
%T 1,1,249,914,2289,2289,914,249,1,1,553,3155,12399,17577,12399,3155,
%U 553,1,1,1321,11287,71411,152111,152111,71411,11287,1321,1,1,3361,39850,387651
%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 3,3,1,1,0 for x=0,1,2,3,4
%C Every 0 is next to 0 3's, every 1 is next to 1 3's, every 2 is next to 2 1's, every 3 is next to 3 1's, every 4 is next to 4 0's
%C Table starts
%C .1....1......1........1.........1...........1.............1...............1
%C .1....1......9.......17........33..........89...........249.............553
%C .1....9.....18.......83.......245.........914..........3155...........11287
%C .1...17.....83......441......2289.......12399.........71411..........387651
%C .1...33....245.....2289.....17577......152111.......1367870........11976207
%C .1...89....914....12399....152111.....2036994......28226359.......380264123
%C .1..249...3155....71411...1367870....28226359.....617973077.....13101311077
%C .1..553..11287...387651..11976207...380264123...13101311077....434261782615
%C .1.1321..39850..2116197.102819888..5116945034..275521117202..14245462793387
%C .1.3361.141325.11718977.901652503.69501003275.5873309926156.473435630742173
%H R. H. Hardin, <a href="/A197350/b197350.txt">Table of n, a(n) for n = 1..179</a>
%e Some solutions containing all values 0 to 4 for n=6 k=4
%e ..1..1..3..1....0..0..0..0....0..0..0..1....0..0..0..0....1..0..0..1
%e ..3..1..1..2....0..0..4..0....0..0..1..3....0..4..0..0....3..1..1..3
%e ..1..0..0..0....2..1..0..0....0..4..0..1....1..0..4..0....1..0..2..1
%e ..0..4..0..0....1..3..2..1....0..0..2..1....3..1..0..0....0..0..0..0
%e ..0..0..4..0....2..1..1..3....0..1..1..3....1..0..1..0....0..0..4..0
%e ..0..0..0..0....0..0..2..1....1..3..1..1....2..1..3..1....0..0..0..0
%K nonn,tabl
%O 1,8
%A _R. H. Hardin_ Oct 13 2011