%I #5 Mar 31 2012 12:36:26
%S 1,3,3,4,9,4,5,20,20,5,9,61,58,61,9,16,189,292,292,189,16,25,544,1235,
%T 2245,1235,544,25,39,1629,5186,15395,15395,5186,1629,39,64,4973,22461,
%U 109528,188078,109528,22461,4973,64,105,15040,96256,796557,2169685
%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 4,0,1,2,3 for x=0,1,2,3,4
%C Every 0 is next to 0 4's, every 1 is next to 1 0's, every 2 is next to 2 1's, every 3 is next to 3 2's, every 4 is next to 4 3's
%C Table starts
%C ...1.....3.......4.........5...........9............16..............25
%C ...3.....9......20........61.........189...........544............1629
%C ...4....20......58.......292........1235..........5186...........22461
%C ...5....61.....292......2245.......15395........109528..........796557
%C ...9...189....1235.....15395......188078.......2169685........25142624
%C ..16...544....5186....109528.....2169685......39696088.......741925729
%C ..25..1629...22461....796557....25142624.....741925729.....23029545105
%C ..39..4973...96256...5702355...291420839...14189246566....718199634805
%C ..64.15040..413032..40479328..3417608122..269528695666..22138818455076
%C .105.45739.1780597.289195575.40048090008.5096101360077.682005890331480
%H R. H. Hardin, <a href="/A196685/b196685.txt">Table of n, a(n) for n = 1..144</a>
%e Some solutions for n=6 k=4
%e ..0..0..1..1....1..1..0..1....0..0..0..1....0..0..0..0....1..0..0..0
%e ..1..1..2..0....0..1..1..1....0..0..0..2....1..1..2..0....1..2..1..1
%e ..2..1..0..0....0..1..1..0....0..0..0..1....2..2..1..0....0..2..1..2
%e ..0..1..2..0....0..1..1..0....1..2..1..2....1..2..2..0....1..1..0..0
%e ..2..1..1..0....0..2..1..0....1..0..2..0....0..1..1..2....1..1..0..0
%e ..1..0..2..1....0..0..2..1....2..1..1..0....1..2..0..1....0..1..2..1
%Y Column 1 is A195971
%Y Column 2 is A196212
%K nonn,tabl
%O 1,2
%A _R. H. Hardin_ Oct 05 2011