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