The final round of the South African Mathematics Olympiad will be taking place on Thursday, 28 July 2019. In the two weeks leading up to the contest, I plan to take a look at some of the problems from the senior paper from 2018.
The first problem from the 2018 South African Mathematics Olympiad was
One hundred empty glasses are arranged in a array. Now we pick of the rows and pour blue liquid into all glasses in these rows, so that they are half full. The remaining rows are filled halfway with yellow liquid. Afterwards, we pick of the columns and fill them up with blue liquid. The remaining columns are filled with yellow liquid. The mixture of blue and yellow liquid turns green. If both halves have the same colour, then that colour remains as is.
- Determine all possible combinations of values for and so that exactly half of the glasses contain green liquid at the end.
- Is it possible that precisely one quarter of the glasses contain green liquid at the end?
In order to find under what conditions half of the glasses contain green liquid at the end, it would be very helpful to know how many glasses (in terms of and ) contain green liquid, so that we can set up an equation to solve for and .
We note that glasses containing green liquid occur at the intersection of a blue row and a yellow column, or at the intersection of a yellow row and a blue column. To calculate the number of glasses at the intersection of a blue row and a yellow column, we note that there are options for which row the glass is in, and options for which column it is in. There are thus such glasses. Similarly, there are glasses at the intersection of a yellow row and a blue column. Since a glass must be in either a yellow row or a blue row, and can not be in both, we see that this accounts for each of the green glasses exactly once. There are thus glasses of green liquid in total.
We see that to determine the combinations of and such that exactly half of the glasses contain green liquid, we want to solve the equation
This can be manipulated to become
and so we see that exactly half of the glasses contain green liquid if and only if either , or !
Does this make sense? Is filling half of the rows (or columns) with blue liquid really enough to ensure that half of the glasses will contain green liquid? Suppose that half of the rows are filled with blue liquid. For each column, we note that if the column is filled with blue liquid, then a glass in that column will be green at the end precisely when it lies in a yellow row. By assumption, this is true for half of the rows, and so half of this column will end up green. Similarly, if the column is filled with yellow liquid, then it is in precisely the rows in which we find blue liquid that there will be a green glass at the end. Again we see that half of the column will end up green. Since half of every column turns out to be green, exactly half of the glasses will be green.
Let us consider the second question that was posed. Is it possible that exactly one quarter of the glasses contain green liquid at the end? In this case, we want to solve the equation
which simplifies to
This has no solutions in whole numbers, because for whole number values of and , the left hand side of the equation will always be even, but is an odd number.
The reader may be interested to know that there is in fact a general method to solve equations of the type
for given values , and where we wish to find integer values for and .
As we did for the first part of the SAMO problem, the general approach is to try to factorise the given expression in the form
If we’re lucky, turns out to be , and we can conclude that the only solutions are those where , or .
The case where does not actually pose a problem, however. We did not see it arise when looking at the SAMO problem, but it is far more common. In this case, we know that each of the terms on the left hand side of the equation must be factors of . The integer only has finitely many factors, and so we can find all solutions by setting to be equal to each one of these factors in turn. We find that all solutions in this case are given by
where is one of the finitely many divisors of .
Is it always possible to find a factorisation of the desired form? Yes, we can check that the given equation is in fact equivalent to
At this point, we can note that if does not divide , then the equation has no integer solutions. (I leave it to the reader to explain why is always a divisor of . This is why we consider the product of both of the ‘s.) If we had applied this method to the second part of the SAMO problem, the factorised version of the equation would have been
Since is not a divisor of , we again see that there are no solutions. The reader is cautioned, however, that there may be other obstacles to the existence of a solution. Even if is a divisor of , not all factors of will yield integer solutions when applying the above method.
If the reader would like to put this method into practice, it can be applied to the first problem from the 2018 Putnam Mathematics Competition:
Find all ordered pairs of positive integers for which
[…] Previous Next […]