Limbic~Region has asked for the wisdom of the Perl Monks concerning the following question:
4 3 8 9 5 1 2 7 6
What I am trying to create has similar properties (all selections add up to the same value). A selection is defined where N numbers are chosen from the square such that each column and row may only have 1 number selected from it. Here are the possible choices for a 3x3.
SQUARE A B C D E F G H I SELECTIONS (order is not important) A E I A H F D B I D H C G B F G E C
This would be trivial if there wasn't a requirement for distinct values (making all values 1 for instance would suffice). Making a 2x2 is also trivial.
3 9 1 7 3 + 7 = 10 1 + 9 = 10
Ultimately, I would like squares for N=3, N=4, N=5 and possibly N=6. It doesn't matter what sum the selections add up to provided that each value is a distinct integer. Can you do it?
Cheers - L~R
|
|---|