Baltic Way 2011 · Shortlist problem
Combinatorics
A square grid is divided into triangles by the diagonals of the squares. What is the total number of isosceles triangles in the figure?
When you’re ready
Review material becomes available with the next Daily.
Review
Topics
Counting and enumeration
Solutions
Solution
[The natural setting of the problem and its solution is of course an grid. There is a numerical challenge in doing just the case, but the task is not overwhelming; doing the computations by hand might be an educating task for the electronics oriented generation.]
There are two kinds of isosceles triangles in the figure: those with the hypotenuse on a line consisting of the diagonals of the squares and those with the hypotenuse on a line consisting of the sides of the squares. The triangles of the first type can be divided into four categories according to the position. We count first the triangles with the right angle at the upper left corner. Each subsquare of size contains exactly one triangle with leg of this kind. So we count the number of subsquares. The number of subsquares is 1, there are subsquares and subsquares (since there are possible places for the upper left corner. So the number of subsquares for to equals
and the number of triangles of the first type is 4 times the previous number or
The triangles of the second kind can similarly be divided into four categories according to the direction of the hypotenuse and the orientation of the right angle. We count those triangles for which the hypotenuse is vertical and the right angle is on the left. Consider a triangle with hypotenuse of length . Its altitude from the vertex with the right angle is . If is even, , the vertex with a right angle can be on any of the leftmost vertical lines while on any such line the hypotenuse has possible positions. So the number of such triangles is
If, on the other hand, , there are vertical lines on which the hypotenuse can be, while on any such line the hypotenuse has possible positions. The number of possible triangles is then
So the total number of triangles of the second type is .