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

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

%S 1,1,1,2,7,2,3,12,12,3,5,31,66,31,5,8,79,212,212,79,8,13,186,921,1317,

%T 921,186,13,21,465,4086,9499,9499,4086,465,21,34,1131,17332,64832,

%U 115795,64832,17332,1131,34,55,2776,75122,462515,1345639,1345639,462515,75122

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

%C Table starts

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

%C ..1....7......12........31..........79...........186.............465

%C ..2...12......66.......212.........921..........4086...........17332

%C ..3...31.....212......1317........9499.........64832..........462515

%C ..5...79.....921......9499......115795.......1345639........15943658

%C ..8..186....4086.....64832.....1345639......26488736.......517762136

%C .13..465...17332....462515....15943658.....517762136.....16946352492

%C .21.1131...75122...3316363...189654699...10253557106....558436739769

%C .34.2776..326124..23465652..2233388582..201303354308..18226535390462

%C .55.6803.1408419.167021811.26384576019.3960281174841.597638865062474

%H R. H. Hardin, <a href="/A197750/b197750.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..0..0..0....0..0..0..2....1..1..3..1....2..0..2..0....2..0..0..0

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

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

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

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

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

%Y Column 1 is A000045

%Y Column 2 is A197229

%K nonn,tabl

%O 1,4

%A _R. H. Hardin_ Oct 17 2011