Some solutions with values 0 to 4 for n=4
..0..1..0..1..0..2..3....0..1..0..1..0..2..0....0..1..0..1..0..2..1
..1..0..1..0..1..3..2....1..0..1..0..3..0..2....1..0..1..0..3..4..3
..0..1..0..2..0..2..3....0..1..0..2..4..2..4....0..1..0..2..0..1..0
..1..0..2..0..2..4..1....1..0..2..0..2..1..3....1..0..2..0..2..0..2
|