Maths Olympiad Prep

Library / /27 of 30

Combinatorics Difficulty 8.9 Shortlist Prove it Germany

Problem:

Let m,n4m, n \geqslant 4 be two integers. We consider an m×nm \times n grid rectangle, formed by m+1m+1 horizontal and n+1n+1 vertical segments. The intersection points of these segments are called vertices. Let PP be a closed path, free of self-intersections, that passes through each of the (m1)(n1)(m-1)(n-1) interior vertices but through none of the outer vertices. Let AA denote the number of interior vertices through which PP passes in a straight line, BB the number of grid squares of which PP uses exactly two sides, which moreover lie opposite each other, and CC the number of grid squares
Figure 1
of which PP uses no side. Prove that A=BC+m+n1A=B-C+m+n-1.
(The figure shows a situation with m=4,n=5,A=4,B=1m=4, n=5, A=4, B=1 and C=5C=5.)

Solution

Solution:

Let DD be the number of grid squares of which exactly one side belongs to PP, let EE be the number of grid squares of which exactly two sides belong to PP, which are moreover adjacent, and finally let FF be the number of grid squares of which exactly three sides belong to PP. Since m,n4m, n \geqslant 4, among the mnmn grid squares there is none whose entire boundary is contained in PP, and consequently there are for the intersection of such a boundary with PP only the five possibilities addressed in the definitions of B,C,D,EB, C, D, E and FF. We thus have
mn=B+C+D+E+F mn=B+C+D+E+F
Now we want to count in two ways the pairs (Q,S)(Q, S) consisting of a grid square QQ and a side SS of QQ belonging to PP. On the one hand, for the squares of type B,C,D,EB, C, D, E and FF there are respectively exactly 2,0,1,22, 0, 1, 2 and 33 possible choices for SS, and hence this number amounts to 2B+D+2E+3F2B+D+2E+3F. On the other hand, PP is composed of (m1)(n1)(m-1)(n-1) unit segments, all of which can play the role of SS, and each of these has two sides on each of which lies one grid square. Altogether we thus obtain
2(m1)(n1)=2B+D+2E+3F 2(m-1)(n-1)=2B+D+2E+3F
At each of the (m1)(n1)(m-1)(n-1) interior vertices of our rectangle, PP either passes straight through, and this happens exactly AA times, or PP turns. Whenever this happens, the two associated unit segments of PP enclose a grid square, and this must be either of type EE or of type FF. Conversely, to each square of type EE belongs one, and to each square of type FF belong two, of these turning points of PP. Altogether, therefore, we also have
(m1)(n1)=A+E+2F (m-1)(n-1)=A+E+2F
From (2) - (3) ++ (1) we now obtain
m+n1=ABC m+n-1=A-B-C
and this in turn implies
A=BC+mn1 A=B-C+m-n-1
With this the problem is solved.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement translated into English from de; metadata (topic, difficulty) added by this project.