login
T(n,k)=Number of nXk 1..7 arrays with every element value z a city block distance of exactly z from another element value z
3

%I #4 Mar 31 2012 12:37:28

%S 0,1,1,1,2,1,3,16,16,3,3,152,488,152,3,16,1721,26029,26029,1721,16,24,

%T 24255,1958627,8460962,1958627,24255,24,114,399281,201001373

%N T(n,k)=Number of nXk 1..7 arrays with every element value z a city block distance of exactly z from another element value z

%C Table starts

%C ..0.....1.......1.......3.......3........16.....24.114

%C ..1.....2......16.....152....1721.....24255.399281

%C ..1....16.....488...26029.1958627.201001373

%C ..3...152...26029.8460962

%C ..3..1721.1958627

%C .16.24255

%C .24

%e Some solutions for n=6 k=2

%e ..2..4....5..6....4..4....4..2....2..3....2..2....1..1....6..4....2..5....1..1

%e ..4..5....5..1....2..4....2..3....3..2....2..2....4..1....3..2....4..3....4..2

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

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

%e ..1..4....2..5....4..4....3..3....1..1....2..1....3..4....2..4....2..3....3..4

%e ..5..3....6..5....1..1....1..1....2..1....4..1....3..3....2..6....4..5....2..4

%K nonn,tabl

%O 1,5

%A _R. H. Hardin_ Mar 06 2012