2008 UNC Math Contest II Problems/Problem 1
Problem
Determine the number of square arrays whose row and column sums are equal to , using as entries. Entries may be repeated, and not all of need be used as the two examples show.
Solution
The different ways the square can be filled can be broken down into how many s are present in the square.
Case One: There are zero s
If there are no s present in the square, then the only numbers there will be s and s. Since there must be two s in each row and column, there must be exactly one in each row and column, making the number of distinct squares under this case defined by the number of distinct ways to place the three s.
To start counting, we know that there is exactly one in the left column. If that is in the top row, there are two ways to place the other two s. If that is in the middle row, there are also two ways to place the other two s. Finally, if that is in the bottom row, there are still two ways to place the other two s.
Thus, if there are no s present, there are configurations.
Case Two: There is one
Wherever the is placed, the numbers in the same row and column as the must all be s to keep the sum of the numbers in that row and column at 2. This means that in the two other columns and two other rows that do not contain the , one of their three total squares is occupied by a , and they are not allowed to use a , since the only in the square has already been placed. Thus, all the remaining squares that were not already filled with the one or the required s must now be filled with s to maintain the sum of 2 within every column and every row.
Thus, counting the number of configurations here is simple, as it is entirely dependent on where the is placed. Since there are 9 places that the could occupy, there are possibilities for this case.
Case Three: There are three s
Using the same logic we used for the case involving just one , we can see that if there are three s, they must all be on separate rows and columns, and every other number in the grid must be a .
We can count the number of ways to place the three s in the same way we counted the number of ways to place the three s in Case One, meaning there are possibilities for this case.
It should also be noted that it is impossible to have exactly two s within the square, because if there were, they would have to be on separate columns and rows. This would mean that, after the required s were filled in, only one square would be left unfilled, and the other two numbers in its row would both be s (the same goes for the other two numbers in its column), requiring that the last square also be filled with a . Thus, if there are at least two s, there must also be a third , meaning it is impossible to have exactly two s.
Now that we've counted all the possible cases, all that's left is to add from the first case, from the second case, and from the third case to get total square arrays.
See Also
2008 UNCO Math Contest II (Problems • Answer Key • Resources) | ||
Preceded by First Question |
Followed by Problem 2 | |
1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 | ||
All UNCO Math Contest Problems and Solutions |