login
T(n,k)=Number of nXk 0..4 arrays with each element equal to the number of its horizontal and vertical neighbors equal to 2
7

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

%S 1,1,1,1,2,1,1,3,3,1,1,4,6,4,1,1,5,10,10,5,1,1,7,14,18,14,7,1,1,10,22,

%T 28,28,22,10,1,1,14,38,47,48,47,38,14,1,1,19,67,93,90,90,93,67,19,1,1,

%U 26,111,189,200,211,200,189,111,26,1,1,36,179,357,447,547,547,447,357,179

%N T(n,k)=Number of nXk 0..4 arrays with each element equal to the number of its horizontal and vertical neighbors equal to 2

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

%C Table starts

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

%C .1..2...3...4....5....7....10.....14.....19......26.......36.......50........69

%C .1..3...6..10...14...22....38.....67....111.....179......291......485.......812

%C .1..4..10..18...28...47....93....189....357.....640.....1156.....2162......4102

%C .1..5..14..28...48...90...200....447....937....1881.....3813.....7947.....16720

%C .1..7..22..47...90..211...547...1364...3190....7411....17630....42520....101976

%C .1.10..38..93..200..547..1685...4932..13343...35901....99603...280909....785677

%C .1.14..67.189..447.1364..4932..17107..53799..165149...524549..1712026...5562691

%C .1.19.111.357..937.3190.13343..53799.194842..681597..2466587..9217291..34398833

%C .1.26.179.640.1881.7411.35901.165149.681597.2735810.11384350.48773880.208190334

%H R. H. Hardin, <a href="/A197061/b197061.txt">Table of n, a(n) for n = 1..419</a>

%e Some solutions for n=6 k=4

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

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

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

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

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

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

%Y Column 2 is A003269(n+3)

%K nonn,tabl

%O 1,5

%A _R. H. Hardin_ Oct 09 2011