Difference between revisions of "2008 UNC Math Contest II Problems/Problem 1"
(Created page with "== Problem == Determine the number of <math>3 \times 3</math> square arrays whose row and column sums are equal to <math>2</math>, using <math>0, 1, 2</math> as entries. Entries...") |
(→Solution) |
||
Line 15: | Line 15: | ||
== Solution == | == Solution == | ||
+ | The different ways the <math>3 \times 3</math> square can be filled can be broken down into how many <math>2</math>s are present in the square. | ||
+ | |||
+ | |||
+ | Case One: There are zero <math>2</math>s | ||
+ | |||
+ | If there are no <math>2</math>s present in the square, then the only numbers there will be <math>0</math>s and <math>1</math>s. Since there must be two <math>1</math>s in each row and column, there must be exactly one <math>0</math> 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 <math>0</math>s. | ||
+ | |||
+ | To start counting, we know that there is exactly one <math>0</math> in the left column. If that <math>0</math> is in the top row, there are two ways to place the other two <math>0</math>s. If that <math>0</math> is in the middle row, there are also two ways to place the other two <math>0</math>s. Finally, if that <math>0</math> is in the bottom row, there are still two ways to place the other two <math>0</math>s. | ||
+ | |||
+ | Thus, if there are no <math>2</math>s present, there are <math>2+2+2=6</math> configurations. | ||
+ | |||
+ | |||
+ | |||
+ | Case Two: There is one <math>2</math> | ||
+ | |||
+ | Wherever the <math>2</math> is placed, the numbers in the same row and column as the <math>2</math> must all be <math>0</math>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 <math>2</math>, one of their three total squares is occupied by a <math>0</math>, and they are not allowed to use a <math>2</math>, since the only <math>2</math> in the square has already been placed. Thus, all the remaining squares that were not already filled with the one <math>2</math> or the required <math>0</math>s must now be filled with <math>1</math>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 <math>2</math> is placed. Since there are 9 places that the <math>2</math> could occupy, there are <math>9</math> possibilities for this case. | ||
+ | |||
+ | |||
+ | |||
+ | Case Three: There are three <math>2</math>s | ||
+ | |||
+ | Using the same logic we used for the case involving just one <math>2</math>, we can see that if there are three <math>2</math>s, they must all be on separate rows and columns, and every other number in the grid must be a <math>0</math>. | ||
+ | |||
+ | We can count the number of ways to place the three <math>2</math>s in the same way we counted the number of ways to place the three <math>0</math>s in Case One, meaning there are <math>6</math> possibilities for this case. | ||
+ | |||
+ | |||
+ | |||
+ | It should also be noted that it is impossible to have exactly two <math>2</math>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 <math>0</math>s were filled in, only one square would be left unfilled, and the other two numbers in its row would both be <math>0</math>s (the same goes for the other two numbers in its column), requiring that the last square also be filled with a <math>2</math>. Thus, if there are at least two <math>2</math>s, there must also be a third <math>2</math>, meaning it is impossible to have exactly two <math>2</math>s. | ||
+ | |||
+ | |||
+ | |||
+ | Now that we've counted all the possible cases, all that's left is to add <math>6</math> from the first case, <math>9</math> from the second case, and <math>6</math> from the third case to get <math>6 + 9 + 6 = \boxed{21}</math> total <math>3 \times 3</math> square arrays. | ||
== See Also == | == See Also == |
Latest revision as of 11:53, 23 December 2019
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 |