Maths Olympiad Prep

Library / /1331 of 1394

, 2019

Combinatorics Difficulty 6.1 National Olympiad Prove it United States

Problem:
A point PP lies at the center of square ABCDABCD. A sequence of points {Pn}\{P_n\} is determined by P0=PP_0 = P, and given point PiP_i, point Pi+1P_{i+1} is obtained by reflecting PiP_i over one of the four lines ABAB, BCBC, CDCD, DADA, chosen uniformly at random and independently for each ii. What is the probability that P8=PP_8 = P?

Solutions — 2

Solution 1

Solution:
WLOG, ABAB and CDCD are horizontal line segments and BCBC and DADA are vertical. Then observe that we can consider the reflections over vertical lines separately from those over horizontal lines, as each reflection over a vertical line moves PiP_i horizontally to point Pi+1P_{i+1}, and vice versa. Now consider only the reflections over horizontal segments ABAB and CDCD. Note that it is impossible for P8P_8 to be in the same vertical location as PP if there are an odd number of these reflections. Then we consider the reflections in pairs: let ww denote reflecting twice over ABAB, let xx denote reflecting over ABAB and then CDCD, let yy denote reflecting over CDCD and then ABAB, and let zz denote reflecting twice over CDCD. Note that both ww and zz preserve the position of our point. Also note that in order to end at the same vertical location as PP, we must have an equal number of xx's and yy's. Now we count the number of sequences of length at most 4 with this property:
- Case 1: Length 0
There is just the empty sequence here, so 1.
- Case 2: Length 1
There are just the sequences ww and zz, so 2.
- Case 3: Length 2
We may either have an xx and a yy or two characters that are either ww or zz. There are 2 sequences of the former type and 4 of the latter, for 6 total.
- Case 4: Length 3
There are 12 sequences with an xx, a yy, and either a ww or a zz, and 8 sequences of only ww's and zz's, for 12 total.
- Case 5: Length 4
There are 6 sequences of 2x2x's and 2y2y's, 48 with one of each and two terms that are either ww or zz, and 16 of just ww's and zz's, for a total of 70.
Now let the number of such sequences of length kk be aka_k (so a3=20a_3 = 20). Note that these counts work also if we consider only reflections over vertical line segments BCBC and ADAD. Now to finish, we only need to count the number of ways to combine 2 valid sequences of total length 4. This is
i=04aia4i(82i) \sum_{i=0}^{4} a_i a_{4-i} \binom{8}{2i}
as there are aia_i sequences of reflections over ABAB and CDCD, a4ia_{4-i} sequences of reflections over BCBC and ADAD such that there are 8 total reflections, and (82i)\binom{8}{2i} ways to choose which of the 8 reflections will be over ABAB or CDCD. We compute that this sum is 1701+22028+6670+20228+7011=49001 \cdot 70 \cdot 1 + 2 \cdot 20 \cdot 28 + 6 \cdot 6 \cdot 70 + 20 \cdot 2 \cdot 28 + 70 \cdot 1 \cdot 1 = 4900 total sequences of reflections that place P8P_8 at PP. There are of course 48=655364^8 = 65536 total sequences of 8 reflections, each chosen uniformly at random, so our answer is 490065536=122516384\frac{4900}{65536} = \frac{1225}{16384}.

Solution 2

Solution:
Suppose that P0P_0 is the origin and the four lines are x=±0.5x = \pm 0.5 and y=±0.5y = \pm 0.5. We consider a permutation of the lattice points on the coordinate plane, where all points with even xx-coordinates are reflected across the yy-axis and all points with even yy-coordinates are reflected across the xx-axis, so that the xx- and yy-coordinates are both rearranged in the following order:
,4,3,2,1,0,1,2,3,4, \ldots, 4, -3, 2, -1, 0, 1, -2, 3, -4, \ldots
It is not difficult to see that a reflection across one of the lines corresponds to changing one of the coordinates from one number to either the previous number or the next number. Therefore, after the permutation, the question is equivalent to asking for the number of lattice walks of length 8 that returns to the origin. For such a lattice walk to return to origin, there needs to be the same number of up and down moves, and the same number of left and right moves. This condition is equivalent to having four moves that are left or up (LU), and four moves that are right or up (RU). Moreover, knowing whether a move is LU and whether it is RU uniquely determines what the move is, so it suffices to designate four LU moves and four RU moves, giving (84)2=4900\binom{8}{4}^2 = 4900 possible walks. Hence the probability is 490048=122516384\frac{4900}{4^8} = \frac{1225}{16384}.

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 reproduced verbatim; metadata (topic, difficulty) added by this project.