Skip to main content
OlympiadHQ

Browse · MathNet

Print

IRL_ABooklet_2023

Ireland 2023 counting and probability

Problem

Caitlin and Donal play a game called Basketball Shoot-Out. The game consists of 10 rounds. In each round, Caitlin and Donal both throw a ball simultaneously at each other's basket. If a player's ball falls into the basket, that player scores one point; otherwise, they score zero points. The scoreboard shows the complete sequence of points scored by each player in each of the 10 rounds of the game. It turns out that Caitlin has scored at least as many points in total as Donal after every round of the game. Prove the number of possible scoreboards is divisible by 4, but is not divisible by 8.

problem


problem


problem
Solution
We can represent the scoreboard by a binary matrix, e.g., The problem is then asking for the number of binary matrices such that, for every , the first elements in the first row always contain at least as many 1s as the first elements in the second row. Denote the number of possible scoreboards by . We will develop a recursion for . First, we have , as the possible scoreboards are Next, for any define to be the number of scoreboards which satisfy the conditions of the problem such that the top row contains more 1s than the bottom row. When or , we define . We then have . From the above list of scoreboards we find For and any we have where the first term on the RHS is obtained by adding to the existing scoreboard if , the second term on the RHS is obtained by adding or to the existing scoreboard if , and the third term on the RHS is obtained by adding to the existing scoreboard if . The recursion (9) is even correct for if we set .

Adding equations (9) for , we obtain which, using the observation that , yields We can now proceed in two different ways. The first way is a brute force calculation modulo 8 for which we use (9) and :
012345678910
011
1213
25412
366613
4203016
54564216
654501414
7626662613
86040407016
942000360212
10202034705414
From this table we see that , which is the required result.

A second way is to prove that is the -th Catalan number, i.e., To show this, we describe a bijection between the set of scoreboards counted by , i.e. those which satisfy the conditions of the problem and for which the top row contains the same number of 1s as the bottom row, and the set of North-East lattice paths (also known as Dyck paths or mountain ranges if rotated by 45°) in the plane from to not going below the line where “North” is the step and “East” is the step . To do this, we transform such a scoreboard into a North-East lattice path via the following procedure: we start with a North step from and then read each subsequent pair of steps from the next column of the scoreboard, using the conventions that (a) first we perform the step for the top row element, where a 1 in the top row corresponds to a North step and a 0 in the top row corresponds to an East step, and (b) then we perform the step for the bottom row element, where a 1 in the bottom row corresponds to an East step and a 0 in the top row corresponds to a North step. At the end, we perform a final East step to end at the point . It is easily checked that the generated paths are precisely the North-East lattice paths in the plane from to not going below the line , which are counted by the -th Catalan number . Equivalently and equally well-known is that the Catalan number counts the number of so-called Dyck Words of length . A Dyck Word based on the two letters and is a string of length that consists of letters and letters , such that no initial segment has more 's than 's. The Dyck Word of the above example would be and from the procedure described above it is clear how Dyck Words correspond to the scoreboards we consider. Equation (11) now turns into This is valid for as well, since . A straightforward induction then shows that The statement of the problem follows since is divisible by 4 but not by 8.

---

Alternative solution.

It is convenient to split each round into two throws, with Caitlin throwing before Donal. For we let be the score of Caitlin at throw and be the score of Donal at throw . The first column of the scoreboard contains and and, more generally, column contains and . Finally, the total scores after throws are for Caitlin and for Donal, where we understand that . We define a sequence for by letting and, for , By inspecting all possibilities, it is easy to see that for all and that This implies that the scoreboard is completely determined by the sequence of differences . We note also that for all and that . Comparing with Solution 1, we note that the Dyck Words mentioned there turn into the sequence by removing the starting N and the trailing E, and then replacing N by +1 and E by -1. When we plot the points for and connect neighbours by a straight line segment, we obtain a mountain range that is obtained from the North-East lattice path in Solution 1 by removing the initial North step and the terminal East step. For this reason, we will speak about paths when we deal with sequences . There are clearly possible paths for the first throws, because we can choose the differences freely from . We say a path is feasible if for all even between 0 and inclusive, which is the criterion in the question. That is the same as requiring for all (odd or even) , allowing for the possibility that at some even time point, Caitlin has the same score as Donal, misses a throw and then Donal also misses.

For and , we define to be the number of feasible paths between 0 and such that . These are paths that start at (0, 0) and end at (T, y) for some . Note that for all and for since . Note also that we always have , hence if . The relationship to and from Solution 1 is The question requires us to show that We will proceed in two different ways from here. The first way will be based on a recurrence relation for . From the definition it is clear that For and satisfying we have To see this, recall that counts feasible paths for which . The most recent throw could either have contributed +1 (in which case ) or -1 (in which case ). The claim is the sum of these two cases. Note that when is odd and equation (13) reads , because as observed above. This is in line with the observation that, for feasible paths, actually means when is odd. Equation (13) is required only for even , so we may use the double-step relation for and : obtained from applying equation (13) twice. Using (12), this can be seen to be equivalent to the recurrence equation (9) from Solution 1. For equation (14) becomes because as explained above. One possibility to finish now is to calculate using (14):
0246810
01
231
4251
63571
864411
10625731
1247366
143535
16600
1826
204
The number 4 in the bottom row of the table proves the result.

A second way to finish the solution is based on the reflection principle from the theory of random walks, instead of using a recurrence relation for . The reflection principle can be described as follows. Let , , and be integers with . Then the following are equal: The number of paths starting with and ending at having touched at least once. The number of paths starting with and ending at . The proof involves setting up a bijection between the two classes of path, recognising that in each case there is a first time point at which , and reflecting each path after time in the horizontal line at level . The usefulness of the reflection principle comes from the fact that it is easier to count the paths of the second kind. If a path starting with and ending at has up steps and down steps, then .

and . Hence, . Such a path is determined by the position of the up steps, hence their number is equal to the binomial coefficient The reflection principle implies that this number is also equal to the number of paths starting with and ending at having touched at least once. Subtracting this from the number of all paths ending at , which is equal to , we obtain that the number of paths that start at , end at , and for which for all , is equal to In particular, taking and , this expression becomes This is the number of paths reaching without touching , which are exactly the feasible paths. Counting the feasible paths ending at and subtracting those ending at we have Because , using a telescoping sum that involves equation (15) for replaced successively by , we obtain for and integers . Substituting and gives It is sufficient to show that , where is the 2-adic valuation, that is, the highest power of 2 dividing . With the aid of Legendre's formula, , this can be calculated as

Alternatively, after some numerical work, one may spot formula (16) directly. With the aid of the recurrence (13), this formula can be proved by induction. When , after recalling that for negative , formula (16) is clear by definition for all . For , using (13), we obtain This concludes the proof of formula (16) by induction.

Techniques

Catalan numbers, partitionsRecursion, bijectionCounting two waysInduction / smoothingFactorization techniques