IMO 1997

------
 
 
Problem A1

In the plane the points with integer coordinates are the vertices of unit squares. The squares are colored alternately black and white as on a chessboard. For any pair of positive integers m and n, consider a right-angled triangle whose vertices have integer coordinates and whose legs, of lengths m and n, lie along the edges of the squares. Let S1 be the total area of the black part of the triangle, and S2 be the total area of the white part. Let f(m, n) = |S1 - S2|.

(a)  Calculate f(m, n) for all positive integers m and n which are either both even or both odd.
(b)  Prove that f(m, n) ≤ max(m, n)/2 for all m, n.
(c)  Show that there is no constant C such that f(m, n) < C for all m, n.

 

Solution

(a)  If m and n are both even, then f(m,n) = 0. Let M be the midpoint of the hypoteneuse. The critical point is that M is a lattice point. If we rotate the triangle through 180 to give the other half of the rectangle, we find that its coloring is the same. Hence S1 and S2 for the triangle are each half their values for the rectangle. But the values for the rectangle are equal, so they must also be equal for the triangle and hence f(m,n) = 0.

If m and n are both odd, then the midpoint of the hypoteneuse is the center of a square and we may still find that the coloring of the two halves of the rectangle is the same. This time S1 and S2 differ by one for the rectangle, so f(m,n) = 1/2.

(b)  The result is immediate from (a) for m and n of the same parity. The argument in (a) fails for m and n with opposite parity, because the two halves of the rectangle are oppositely colored. Let m be the odd side. Then if we extend the side length m by 1 we form a new triangle which contains the original triangle. But it has both sides even and hence S1 = S2. The area added is a triangle base 1 and height n, so area n/2. The worst case would be that all this area was the same color, in which case we would get f(m,n) = n/2. But n <= max(m,n), so this establishes the result.

(c)  Intuitively, it is clear that if the hypoteneuse runs along the diagonal of a series of black squares, and we then extend one side, the extra area taken in will be mainly black. We need to make this rigorous. For the diagonal to run along the diagonal of black squares we must have n = m. It is easier to work out the white area added by extending a side. The white area takes the form of a series of triangles each similar to the new n+1 x n triangle. The biggest has sides 1 and n/(n+1). The next biggest has sides (n-1)/n and (n-1)/(n+1), the next biggest (n-2)/n and (n-2)/(n+1) and so on, down to the smallest which is 1/n by 1/(n+1). Hence the additional white area is 1/2 (n/(n+1) + (n-1)2/(n(n+1)) + (n-2)2/(n(n+1)) + ... + 1/(n(n+1)) ) = 1/(2n(n+1))  (n2 + ... + 12) = (2n+1)/12. Hence the additional black area is n/2 - (2n+1)/12 = n/3 - 1/12 and the black excess in the additional area is n/6 - 1/6. If n is even, then f(n,n) = 0 for the original area, so for the new triangle f(n+1,n) = (n-1)/6 which is unbounded.

 


 

38th IMO 1997

© John Scholes
jscholes@kalva.demon.co.uk
22 Oct 1998
Last corrected/udpated 21 Aug 03