Maths Olympiad Prep

Library / /28 of 30

Combinatorics Difficulty 7.0 National olympiad, round 2 Prove it Ireland

In the mathematical talent show called "The X2X^2-factor", contestants are scored by a panel of 8 judges. Each judge awards a score of 0 ('fail'), XX ('pass'), or X2X^2 ('pass with distinction'). Three of the contestants were Ann, Barbara and David. Ann was awarded the same score as Barbara by exactly 4 judges. David declares that he obtained different scores to Ann from at least 4 judges, and also that he obtained different scores to Barbara from at least 4 judges.
In how many ways could scores have been allocated to David, assuming he is telling the truth?

Solutions — 2

Solution 1

First Solution: Represent each "score sheet" by a 8-digit ternary string with digits from {0,1,2}\{0, 1, 2\}. Without loss of generality we may assume that Ann's score sheet reads 00001111, and that Barbara's score sheet reads 00002222. The total number of possible score sheets is 383^8. We will count the number of score sheets which could not have been allocated to David: call this number NN.
Denote by SAS_A the set of 8-digit ternary strings which differ from Ann's score in at most 3 places, and by SBS_B the set of 8-digit ternary strings which differ from Barbara's score in at most 3 places. Then
SA=SB=(80)20+(81)21+(82)22+(83)23=577. |S_A| = |S_B| = \binom{8}{0}2^0 + \binom{8}{1}2^1 + \binom{8}{2}2^2 + \binom{8}{3}2^3 = 577.
Next we count SASB|S_A \cap S_B|. For sSASBs \in |S_A \cap S_B| there are two possible cases:
* The first 4 digits of ss are all zero, and the second 4 digits contain at least one 1 and at least one 2. There are 34(24+241)=503^4 - (2^4 + 2^4 - 1) = 50 of these, since 242^4 contain no 1s, 242^4 contain no 2s, and 1 contains no 1s and no 2s.
* Three of the first 4 digits of ss are zero, and the second 4 digits contains exactly two 1s and exactly two 2s. There are 42(42)=484 \cdot 2 \cdot \binom{4}{2} = 48 of these.
Therefore SASB=50+48=98|S_A \cap S_B| = 50 + 48 = 98, and so
N=SASB=SA+SBSASB=257798=1056, N = |S_A \cup S_B| = |S_A| + |S_B| - |S_A \cap S_B| = 2 \cdot 577 - 98 = 1056,
leaving the number of possible score sheets for David as 38N=55053^8 - N = 5505.

Solution 2

Second Solution: Represent each score sheet by a 8-digit ternary string with digits from {0,1,2}\{0, 1, 2\}. Without loss of generality we may assume that Ann's score sheet reads 00001111, and that Barbara's score sheet reads 00002222. Note that the number of differences between David's and Ann's scores in the first 4 digits is equal to the number of differences between David's and Barbara's scores in the first 4 digits.
Next, note that the number of 4-digit ternary strings containing rr nonzero elements is given by a(r)=(4r)2ra(r) = \binom{4}{r}2^r. Also, denote by b(r)b(r) the number of 4-digit ternary strings which differ from 1111 and 2222 in at least rr digits, for r=0,1,2,3,4r = 0, 1, 2, 3, 4. Then
* b(0)=34b(0) = 3^4 (all strings are allowed)
* b(1)=342b(1) = 3^4 - 2 (since all strings except 1111 and 2222 are allowed)
* b(2)=34242b(2) = 3^4 - 2^4 - 2 (since disallowed strings are those which differ from 1111 and 2222 in at most one place)
* b(3)=1+(43)2+(42)2=21b(3) = 1 + \binom{4}{3} \cdot 2 + \binom{4}{2} \cdot 2 = 21 (partitioning the count on the number of zeros in the string)
* b(4)=1b(4) = 1 (only the string 0000 is allowed).
The total number of score sheets for David is then (partitioning the count according to the number of nonzero elements in the first 4 digits)
N=a(4)b(0)+a(3)b(1)+a(2)b(2)+a(1)b(3)+a(0)b(4)=(44)2434+(43)23(342)+(42)22(34242)+(41)2121+(40)201=34((44)24+(43)23+(42)22)(43)24(42)26(42)23+821+1=34(349)26327324+169=38(36+26+22333)+169=38(33+23)2+132=5505, \begin{align*} N &= a(4)b(0) + a(3)b(1) + a(2)b(2) + a(1)b(3) + a(0)b(4) \\ &= \binom{4}{4}2^4 \cdot 3^4 + \binom{4}{3}2^3 \cdot (3^4 - 2) + \binom{4}{2}2^2 \cdot (3^4 - 2^4 - 2) \\ &\quad + \binom{4}{1}2^1 \cdot 21 + \binom{4}{0}2^0 \cdot 1 \\ &= 3^4 \left( \binom{4}{4}2^4 + \binom{4}{3}2^3 + \binom{4}{2}2^2 \right) - \binom{4}{3}2^4 - \binom{4}{2}2^6 - \binom{4}{2}2^3 + 8 \cdot 21 + 1 \\ &= 3^4(3^4 - 9) - 2^6 - 3 \cdot 2^7 - 3 \cdot 2^4 + 169 \\ &= 3^8 - (3^6 + 2^6 + 2 \cdot 2^3 \cdot 3^3) + 169 \\ &= 3^8 - (3^3 + 2^3)^2 + 13^2 \\ &= 5505, \end{align*}
i.e., the number of score sheets possible for David is 5505.

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 and solution reproduced as published; topic and difficulty added by this site.