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 4,2,2,0,2 for x=0,1,2,3,4
8

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

%S 1,1,1,1,2,1,1,11,11,1,1,31,82,31,1,1,66,342,342,66,1,1,185,1649,2910,

%T 1649,185,1,1,595,9007,25273,25273,9007,595,1,1,1760,49381,251972,

%U 407810,251972,49381,1760,1,1,4857,256485,2579814,7296769,7296769,2579814

%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,2,2,0,2 for x=0,1,2,3,4

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

%C Table starts

%C .1.....1.......1..........1............1...............1..................1

%C .1.....2......11.........31...........66.............185................595

%C .1....11......82........342.........1649............9007..............49381

%C .1....31.....342.......2910........25273..........251972............2579814

%C .1....66....1649......25273.......407810.........7296769..........132750533

%C .1...185....9007.....251972......7296769.......243912221.........8248011722

%C .1...595...49381....2579814....132750533......8248011722.......520354155777

%C .1..1760..256485...24550379...2314131736....265348341492.....31036479268872

%C .1..4857.1303838..230860577..40063929560...8500602391949...1833924613834652

%C .1.13817.6775152.2228487362.703264936092.277030071745596.110108685283374089

%H R. H. Hardin, <a href="/A197648/b197648.txt">Table of n, a(n) for n = 1..161</a>

%e Some solutions containing all values 0 to 4 for n=6 k=4

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

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

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

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

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

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

%K nonn,tabl

%O 1,5

%A _R. H. Hardin_ Oct 16 2011