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

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

%S 1,1,1,2,7,2,3,10,10,3,5,23,31,23,5,8,57,84,84,57,8,13,122,290,583,

%T 290,122,13,21,275,923,2233,2233,923,275,21,34,623,2887,10758,15825,

%U 10758,2887,623,34,55,1394,9216,53337,104318,104318,53337,9216,1394,55,89,3133

%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,0,2,2 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 0's, every 3 is next to 3 2's, every 4 is next to 4 2's

%C Table starts

%C ..1....1.....2.......3.........5...........8...........13.............21

%C ..1....7....10......23........57.........122..........275............623

%C ..2...10....31......84.......290.........923.........2887...........9216

%C ..3...23....84.....583......2233.......10758........53337.........252125

%C ..5...57...290....2233.....15825......104318.......738363........5142371

%C ..8..122...923...10758....104318.....1097175.....11014567......112906556

%C .13..275..2887...53337....738363....11014567....168397471.....2499153985

%C .21..623..9216..252125...5142371...112906556...2499153985....55114740895

%C .34.1394.29288.1209824..35673015..1151692226..37543948067..1208430308424

%C .55.3133.92868.5768661.248507899.11746179526.563650708913.26627943671581

%H R. H. Hardin, <a href="/A197457/b197457.txt">Table of n, a(n) for n = 1..180</a>

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

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

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

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

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

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

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

%Y Column 1 is A000045

%Y Column 2 is A196316

%K nonn,tabl

%O 1,4

%A _R. H. Hardin_ Oct 15 2011