In a drawer Sandy has 5 pairs of socks, each pair a different color. On Monday Sandy selects two individual socks at random from the 10 socks in the drawer. On Tuesday Sandy selects 2 of the remaining 8 socks at random and on Wednesday two of the remaining 6 socks at random. The probability that Wednesday is the first day Sandy selects matching socks is $\dfrac{m}{n}$, where $m$ and $n$ are relatively prime positive integers. Find $m + n$.
Xem đáp án và lời giải
Đáp án: $341$
The probability of a match on Monday is $\dfrac{1}{9}$, so the probability of a mismatch is $\dfrac{8}{9}$. A mismatch on Tuesday can occur in one of three ways: On Tuesday Sandy selects both of the mismatching colors selected Monday. The probability of this is $\dfrac{2}{8} \cdot \dfrac{1}{7} = \dfrac{1}{28}$. In this case Sandy has three colors from which to select a pair on Wednesday. On Tuesday Sandy selects one of the colors selected Monday and a new color. The probability of this is $\dfrac{2}{8} \cdot \dfrac{6}{7} + \dfrac{6}{8} \cdot \dfrac{2}{7} = \dfrac{3}{7}$. In this case Sandy has two colors from which to select a pair on Wednesday. On Tuesday Sandy selects two new colors. The probability of this is $\dfrac{6}{8} \cdot \dfrac{4}{7} = \dfrac{3}{7}$. In this case Sandy has only one color from which to select a pair on Wednesday. The probability of achieving the first match on Wednesday is therefore \[ \dfrac{8}{9}\left(\dfrac{1}{28} \cdot \dfrac{6}{6} \cdot \dfrac{1}{5} + \dfrac{3}{7} \cdot \dfrac{4}{6} \cdot \dfrac{1}{5} + \dfrac{3}{7} \cdot \dfrac{2}{6} \cdot \dfrac{1}{5}\right) = \dfrac{8}{9} \cdot \dfrac{13}{140} = \dfrac{26}{315}. \] The requested sum is $26 + 315 = 341$.
In a new school $40$ percent of the students are freshmen, $30$ percent are sophomores, $20$ percent are juniors, and $10$ percent are seniors. All freshmen are required to take Latin, and $80$ percent of the sophomores, $50$ percent of the juniors, and $20$ percent of the seniors elect to take Latin. The probability that a randomly chosen Latin student is a sophomore is $\dfrac{m}{n}$, where $m$ and $n$ are relatively prime positive integers. Find $m + n$.
Xem đáp án và lời giải
Đáp án: $25$
Without loss of generality it may be assumed that there are $100$ students in the school. Then the students taking Latin consist of $40$ freshmen, $30(0.8) = 24$ sophomores, $20(0.5) = 10$ juniors, and $10(0.2) = 2$ seniors. The required probability is the number of sophomores taking Latin divided by the number of students taking Latin or $\dfrac{24}{40+24+10+2} = \dfrac{24}{76} = \dfrac{6}{19}$. The requested sum is $6 + 19 = 25$.
Two dice appear to be standard dice with their faces numbered from $1$ to $6$, but each die is weighted so that the probability of rolling the number $k$ is directly proportional to $k$. The probability of rolling a $7$ with this pair of dice is $\dfrac{m}{n}$, where $m$ and $n$ are relatively prime positive integers. Find $m + n$.
Xem đáp án và lời giải
Đáp án: $71$
Because $1 + 2 + 3 + 4 + 5 + 6 = 21$, the probability of rolling a $k$ with one of these dice is $\dfrac{k}{21}$. Then the probability of rolling a $7$ with the pair of dice is \[ \dfrac{1 \cdot 6 + 2 \cdot 5 + 3 \cdot 4 + 4 \cdot 3 + 5 \cdot 2 + 6 \cdot 1}{21^2} = \dfrac{56}{21^2} = \dfrac{8}{63}. \] The requested sum is $8 + 63 = 71$.
There is a $40\%$ chance of rain on Saturday and a $30\%$ chance of rain on Sunday. However, it is twice as likely to rain on Sunday if it rains on Saturday than if it does not rain on Saturday. The probability that it rains at least one day this weekend is $\dfrac{a}{b}$, where $a$ and $b$ are relatively prime positive integers. Find $a + b$.
Xem đáp án và lời giải
Đáp án: $107$
Let $x$ be the probability that it rains on Saturday and not on Sunday, $y$ be the probability that it rains on Sunday and not on Saturday, and $z$ be the probability that it rains on both days. Then the conditions of the problem imply that $x + z = \dfrac{2}{5}$, $y + z = \dfrac{3}{10}$, and the conditional probabilities satisfy $\dfrac{z}{x + z} = 2 \cdot \dfrac{y}{1 - (x + z)}$ or $\dfrac{5}{2}z = \dfrac{10}{3}y$. Thus $z = \dfrac{4}{3}y$, so $y + \dfrac{4}{3}y = \dfrac{3}{10}$ which gives $y = \dfrac{9}{70}$. The required probability is $x + y + z = \dfrac{2}{5} + \dfrac{9}{70} = \dfrac{37}{70}$. The requested sum is $37 + 70 = 107$.
Teams $T_1$, $T_2$, $T_3$, and $T_4$ are in the playoffs. In the semifinal matches, $T_1$ plays $T_4$, and $T_2$ plays $T_3$. The winners of those two matches will play each other in the final match to determine the champion. When $T_i$ plays $T_j$, the probability that $T_i$ wins is $\dfrac{i}{i+j}$, and the outcomes of all the matches are independent. The probability that $T_4$ will be the champion is $\dfrac{p}{q}$, where $p$ and $q$ are relatively prime positive integers. Find $p + q$.
Xem đáp án và lời giải
Đáp án: $781$
Team $T_4$ will be the champion if and only if it wins its semifinal match (which it will do with probability $\dfrac{4}{4+1} = \dfrac{4}{5}$) and then beats whoever wins the other semifinal match. Considering the two possible outcomes of the other semifinal match gives the probability \[ \dfrac{4}{5} \cdot \left(\dfrac{2}{5} \cdot \dfrac{4}{6} + \dfrac{3}{5} \cdot \dfrac{4}{7}\right) = \dfrac{4}{5} \cdot \dfrac{4}{5} \cdot \left(\dfrac{1}{3} + \dfrac{3}{7}\right) = \dfrac{16}{25} \cdot \dfrac{16}{21} = \dfrac{256}{525}. \] The requested sum is $256 + 525 = 781$.
Find the number of positive integers less than or equal to $2017$ whose base-three representation contains no digit equal to $0$.
Xem đáp án và lời giải
Đáp án: $222$
For $k = 1, 2, 3, 4, 5$, and $6$ there are $2^k$ $k$-digit base-three numbers with digits of only $1$ and $2$. Because $2017 = 2202201_{three}$, all the $7$-digit base-three numbers less than $2017$ that do not contain a $0$ begin with $11$, $12$, or $21$. There are $3 \cdot 2^5 = 96$ of them. Thus there are $2 + 4 + 8 + 16 + 32 + 64 + 96 = 222$ positive integers less than or equal to $2017$ whose base-three representations contain no $0$s.
The number $n$ can be written in base $14$ as $abc_{14}$, can be written in base $15$ as $acb_{15}$, and can be written in base $6$ as $acac_6$, where $a > 0$. Find the base-$10$ representation of $n$.
Xem đáp án và lời giải
Đáp án: $925$
In base $10$, the number $n$ is represented in three bases as: $$
\begin{aligned} n &= 14^2 a + 14 b + c = 196a + 14b + c, \\ n &= 15^2 a + 15 c + b = 225a + 15c + b, \\ n &= 6^3 a + 6^2 c + 6 a + c = 222a + 37c. \end{aligned}
$$ Equating the first two expressions: \[ 196a + 14b + c = 225a + 15c + b \implies 13b = 29a + 14c. \] Equating the second and third expressions: \[ 225a + 15c + b = 222a + 37c \implies 3a + b = 22c \implies b = 22c - 3a. \] Substituting $b = 22c - 3a$ into $13b = 29a + 14c$: \[ 13(22c - 3a) = 29a + 14c \implies 286c - 39a = 29a + 14c \implies 272c = 68a \implies a = 4c. \] Since $a$ is a base-$6$ digit and $a > 0$, we have $1 \leqslant a \leqslant 5$. Since $a = 4c$ and $c$ is an integer with $c \geqslant 0$, the only possibility is $c = 1$, which gives $a = 4$. Then $b = 22(1) - 3(4) = 10$. We check that $0 \leqslant b < 14$, which holds. Therefore, the number $n$ is \[ n = 222(4) + 37(1) = 888 + 37 = 925. \]
Kathy has $5$ red cards and $5$ green cards. She shuffles the $10$ cards and lays out $5$ of the cards in a row in a random order. She will be happy if and only if all the red cards laid out are adjacent and all the green cards laid out are adjacent. For example, card orders $RRGGG$, $GGGGR$, or $RRRRR$ will make Kathy happy, but $RRRGR$ will not. The probability that Kathy will be happy is $\dfrac{m}{n}$, where $m$ and $n$ are relatively prime positive integers. Find $m + n$.
Xem đáp án và lời giải
Đáp án: $157$
The condition that all red cards are adjacent and all green cards are adjacent means the sequence of $5$ cards cannot alternate between red and green more than once. Assuming the first card is $R$, the valid sequences are:
$$RRRRR, RRRRG, RRRGG, RRGGG, RGGGG.$$
By symmetry, if the first card is $G$, there are $5$ corresponding symmetric sequences ($GGGGG$, $GGGGR$, $GGGRR$, $GGRRR$, $GRRRR$). We calculate the probability of each pattern when cards are drawn without replacement from $5$ red and $5$ green cards:
$$\begin{aligned}
P(RRRRR) &= \dfrac{5 \cdot 4 \cdot 3 \cdot 2 \cdot 1}{10 \cdot 9 \cdot 8 \cdot 7 \cdot 6} = \dfrac{1}{252}, \\
P(RRRRG) &= \dfrac{5 \cdot 4 \cdot 3 \cdot 2 \cdot 5}{10 \cdot 9 \cdot 8 \cdot 7 \cdot 6} = \dfrac{5}{252}, \\
P(RRRGG) &= \dfrac{5 \cdot 4 \cdot 3 \cdot 5 \cdot 4}{10 \cdot 9 \cdot 8 \cdot 7 \cdot 6} = \dfrac{10}{252}, \\
P(RRGGG) &= \dfrac{5 \cdot 4 \cdot 5 \cdot 4 \cdot 3}{10 \cdot 9 \cdot 8 \cdot 7 \cdot 6} = \dfrac{10}{252}, \\
P(RGGGG) &= \dfrac{5 \cdot 5 \cdot 4 \cdot 3 \cdot 2}{10 \cdot 9 \cdot 8 \cdot 7 \cdot 6} = \dfrac{5}{252}.
\end{aligned}$$
The sum of probabilities for sequences starting with $R$ is
$$\dfrac{1 + 5 + 10 + 10 + 5}{252} = \dfrac{31}{252}.$$
By symmetry, the sequences starting with $G$ have the exact same total probability $\dfrac{31}{252}$. The sets of sequences starting with $R$ and with $G$ are disjoint, so the total probability is
$$2 \times \dfrac{31}{252} = \dfrac{31}{126}.$$
Here $m = 31$ and $n = 126$, which are relatively prime. Thus $m + n = 31 + 126 = 157$.
Zou and Chou are practicing their $100$-meter sprints by running $6$ races against each other. Zou wins the first race, and after that, the probability that one of them wins a race is $\dfrac{2}{3}$ if they won the previous race but only $\dfrac{1}{3}$ if they lost the previous race. The probability that Zou will win exactly $5$ of the $6$ races is $\dfrac{m}{n}$, where $m$ and $n$ are relatively prime positive integers. Find $m + n$.
Xem đáp án và lời giải
Đáp án: $97$
Zou wins the first race ($W$). For Zou to win exactly $5$ of the $6$ races, Zou must lose exactly one of the remaining $5$ races. The sequence of winners for the $6$ races must be one of the following $5$ sequences: $W-W-W-W-W-L$: The transitions are: Race 1 to 2: $W \to W$, probability $\dfrac{2}{3}$. Race 2 to 3: $W \to W$, probability $\dfrac{2}{3}$. Race 3 to 4: $W \to W$, probability $\dfrac{2}{3}$. Race 4 to 5: $W \to W$, probability $\dfrac{2}{3}$. Race 5 to 6: $W \to L$, probability $\dfrac{1}{3}$. The probability of this sequence is: \[ \left(\dfrac{2}{3}\right)^4 \left(\dfrac{1}{3}\right) = \dfrac{16}{243}. \] $W-W-W-W-L-W$, $W-W-W-L-W-W$, $W-W-L-W-W-W$, or $W-L-W-W-W-W$: In each of these four cases, Zou loses race $k$ where $2 \leqslant k \leqslant 5$. This introduces two changes of winner: Prior to race $k$: one $W \to L$ transition with probability $\dfrac{1}{3}$. From race $k$ to $k+1$: Chou won race $k$, so Chou winning again has probability $\dfrac{2}{3}$, meaning Zou winning race $k+1$ after losing race $k$ has probability $\dfrac{1}{3}$. The remaining three transitions are $W \to W$, each with probability $\dfrac{2}{3}$. Thus, the probability of each of these four sequences is: \[ \left(\dfrac{2}{3}\right)^3 \left(\dfrac{1}{3}\right)^2 = \dfrac{8}{243}. \] Summing the probabilities of all $5$ mutually exclusive cases: \[ P = \dfrac{16}{243} + 4 \times \dfrac{8}{243} = \dfrac{16 + 32}{243} = \dfrac{48}{243} = \dfrac{16}{81}. \] Here $m = 16$ and $n = 81$, which are relatively prime. Thus: \[ m + n = 16 + 81 = 97. \]
Find the number of ways $66$ identical coins can be separated into three nonempty piles so that there are fewer coins in the first pile than in the second pile and fewer coins in the second pile than in the third pile.
Xem đáp án và lời giải
Đáp án: $331$
Let $x, y, z$ be the number of coins in the first, second, and third piles, respectively. We are looking for the number of integer solutions to: \[ x + y + z = 66 \text{with} 1 \leqslant x < y < z. \] We make the substitution to remove the strict inequalities: Let $x = a + 1$, $y = x + b + 1 = a + b + 2$, and $z = y + c + 1 = a + b + c + 3$, where $a, b, c$ are nonnegative integers ($a \geqslant 0, b \geqslant 0, c \geqslant 0$): The equation becomes: \[ (a + 1) + (a + b + 2) + (a + b + c + 3) = 66 \iff 3a + 2b + c = 60. \] Since $c \geqslant 0$, for each pair of nonnegative integers $(a, b)$, there exists a unique nonnegative integer $c = 60 - 3a - 2b \geqslant 0$ if and only if: \[ 3a + 2b \leqslant 60. \] Thus, we need to count the number of pairs of nonnegative integers $(a, b)$ satisfying $3a + 2b \leqslant 60$: The maximum value of $a$ is $\lfloor 60/3 \rfloor = 20$. For each $a \in \{0, 1, 2, \dots, 20\}$, we have $2b \leqslant 60 - 3a$, so $0 \leqslant b \leqslant \left\lfloor \dfrac{60 - 3a}{2} \right\rfloor$. We can sum this directly: Let $a = 2k$ (even, $0 \leqslant k \leqslant 10$): $b \leqslant \dfrac{60 - 6k}{2} = 30 - 3k$, which gives $(30 - 3k) + 1 = 31 - 3k$ values for $b$. The sum for even $a$ is: \[ \sum_{k=0}^{10} (31 - 3k) = 11 \times 31 - 3 \times \dfrac{10 \times 11}{2} = 341 - 165 = 176. \] Let $a = 2k + 1$ (odd, $0 \leqslant k \leqslant 9$): $b \leqslant \left\lfloor \dfrac{60 - 3(2k+1)}{2} \right\rfloor = \left\lfloor \dfrac{57 - 6k}{2} \right\rfloor = 28 - 3k$, which gives $(28 - 3k) + 1 = 29 - 3k$ values for $b$. The sum for odd $a$ is: \[ \sum_{k=0}^9 (29 - 3k) = 10 \times 29 - 3 \times \dfrac{9 \times 10}{2} = 290 - 135 = 155. \] The total number of solutions is: \[ 176 + 155 = 331. \]
Melinda has three empty boxes and $12$ textbooks, three of which are mathematics textbooks. One box will hold any three of her textbooks, one will hold any four of her textbooks, and one will hold any five of her textbooks. If Melinda packs her textbooks into these boxes in random order, the probability that all three mathematics textbooks end up in the same box can be written as $\dfrac{m}{n}$, where $m$ and $n$ are relatively prime positive integers. Find $m + n$.
Xem đáp án và lời giải
Đáp án: $47$
The probability that all three mathematics textbooks end up in the first box is the probability that the three mathematics textbooks are selected out of the $C_{12}^3$ equally likely ways to select three textbooks. That is $\dfrac{1}{C_{12}^3} = \dfrac{1}{220}$. The probability that all three mathematics textbooks end up in the second box is the probability that three mathematics textbooks and one other of the nine remaining textbooks are selected for the second box out of the $C_{12}^4$ equally likely ways to select four textbooks. That is $\dfrac{9}{C_{12}^4} = \dfrac{1}{55}$. Finally, the probability that all three mathematics textbooks end up in the last box is $\dfrac{C_9^2}{C_{12}^5} = \dfrac{1}{22}$. The probability that all three mathematics textbooks end up in the same box is \[ \dfrac{1}{220} + \dfrac{1}{55} + \dfrac{1}{22} = \dfrac{1 + 4 + 10}{220} = \dfrac{15}{220} = \dfrac{3}{44}. \] The requested sum is $3 + 44 = 47$.
There are nonzero integers $a$, $b$, $r$, and $s$ such that the complex number $r + si$ is a zero of the polynomial $P(x) = x^3 - ax^2 + bx - 65$. For each possible combination of $a$ and $b$, let $p_{a,b}$ be the sum of the zeros of $P(x)$. Find the sum of the $p_{a,b}$'s for all possible combinations of $a$ and $b$.
Xem đáp án và lời giải
Đáp án: $80$
Because $P(x)$ has real coefficients, the number $r - si$ must also be a zero of $P(x)$, and the third zero must be a real number $q$. The sum of the zeros is $a = q + 2r$, so $q$ is an integer. The product of the zeros is $65 = q(r^2 + s^2)$, so $r^2 + s^2$ is a factor of $65$, and therefore must be $1$, $5$, $13$, or $65$. Note that $5 = 1^2 + 2^2$, $13 = 2^2 + 3^2$, and $65 = 1^2 + 8^2 = 4^2 + 7^2$. Therefore $\{|r|, |s|\}$ is one of the sets $\{1, 2\}$, $\{2, 3\}$, $\{1, 8\}$, $\{4, 7\}$, and each set corresponds to $4$ distinct polynomials $P(x)$. For the set $\{1, 2\}$, $q = \dfrac{65}{5} = 13$, for $\{2, 3\}$, $q = \dfrac{65}{13} = 5$, and for the last two sets $q = \dfrac{65}{65} = 1$. The requested sum is then \[ \sum_{a,b} p_{a,b} = 4\cdot 13 + 4\cdot 5 + 8\cdot 1 = 80. \]
Charles has two six-sided dice. One of the dice is fair, and the other die is biased so that it comes up six with probability $\dfrac{2}{3}$, and each of the other five sides has probability $\dfrac{1}{15}$. Charles chooses one of the two dice at random and rolls it three times. Given that the first two rolls are both sixes, the probability that the third roll will also be a six is $\dfrac{p}{q}$, where $p$ and $q$ are relatively prime positive integers. Find $p + q$.
Xem đáp án và lời giải
Đáp án: $167$
The conditional probability that the third roll will be a six given that the first two rolls are sixes is the conditional probability that Charles rolls three sixes given that his first two rolls are sixes. This is \[ \dfrac{\dfrac{1}{2}\left(\dfrac{2}{3}\right)^3 + \dfrac{1}{2}\left(\dfrac{1}{6}\right)^3}{\dfrac{1}{2}\left(\dfrac{2}{3}\right)^2 + \dfrac{1}{2}\left(\dfrac{1}{6}\right)^2} = \dfrac{\dfrac{65}{432}}{\dfrac{17}{72}} = \dfrac{65}{102}. \] The requested sum is $65 + 102 = 167$.
Call a permutation $a_1, a_2, \ldots, a_n$ of the integers $1, 2, \ldots, n$ quasi-increasing if $a_k \leqslant a_{k+1} + 2$ for each $1 \leqslant k \leqslant n - 1$. For example, $53421$ and $14253$ are quasi-increasing permutations of the integers $1, 2, 3, 4, 5$, but $45123$ is not. Find the number of quasi-increasing permutations of the integers $1, 2, \ldots, 7$.
Xem đáp án và lời giải
Đáp án: $486$
Let $S_n$ be the number of quasi-increasing permutations of $1, 2, \ldots, n$. It is easy to check that $S_1 = 1$, $S_2 = 2$, and $S_3 = 6$. For $n \geqslant 3$, $S_n = 3S_{n-1}$ is proved as follows. First note that if $a_1, a_2, \ldots, a_{n-1}$ is a quasi-increasing permutation of $1, 2, \ldots, n - 1$, then one can construct a quasi-increasing permutation of $1, 2, \ldots, n$ by placing the $n$ immediately in front of $n - 1$, immediately in front of $n - 2$, or after $a_{n-1}$. If $n$ is placed in any other position, then it will be followed by an integer $k$ with $1 \leqslant k \leqslant n - 3$ so $n \leqslant k + 2$ will not be true. Thus every quasi-increasing permutation of $1, 2, \ldots, n - 1$ leads to $3$ quasi-increasing permutations of $1, 2, \ldots, n$. Conversely, suppose that we have a quasi-increasing permutation $a_1, a_2, \ldots, a_n$ of $1, 2, \ldots, n$. If $a_n = n$ or $a_1 = n$, then removing $a_n$ results in a quasi-increasing permutation of $1, 2, \ldots, n - 1$. If $n = a_k$, $k \ne 1, n$, then $a_{k+1} = n - 1$ or $a_{k+1} = n - 2$. In either case \[ a_{k-1} < n \leqslant a_{k+1} + 2, \] so removing $n$ again results in a quasi-increasing permutation of $1, 2, \ldots, n - 1$. Furthermore, as the previous paragraph showed, for each quasi-increasing permutation $\pi$ of $1, 2, \ldots, n - 1$, there are exactly $3$ quasi-increasing permutations of $1, 2, \ldots, n$ that result in $\pi$ when $n$ is removed. This completes the proof that $S_n = 3S_{n-1}$ for $n \geqslant 3$. Hence $S_n = 3^{n-2} S_2 = 2 \cdot 3^{n-2}$ for $n \geqslant 3$. In particular, $S_7 = 2 \cdot 3^5 = 486$.
For a permutation $p = (a_1, a_2, \dots, a_9)$ of the digits $1, 2, \dots, 9$, let $s(p)$ denote the sum of the three 3-digit numbers $a_1 a_2 a_3$, $a_4 a_5 a_6$, and $a_7 a_8 a_9$. Let $m$ be the minimum value of $s(p)$ subject to the condition that the units digit of $s(p)$ is $0$. Let $n$ denote the number of permutations $p$ with $s(p) = m$. Find $|m - n|$.
Xem đáp án và lời giải
Đáp án: $162$
For any permutation $p$, \[ s(p) = 100(a_1 + a_4 + a_7) + 10(a_2 + a_5 + a_8) + (a_3 + a_6 + a_9). \] Because the units digit of $m$ is $0$, it follows that $a_3 + a_6 + a_9 = 10$ or $20$. If $a_3 + a_6 + a_9 = 10$, then $a_1 + a_4 + a_7 + a_2 + a_5 + a_8 = 45 - 10 = 35$, and \[ s(p) = 90(a_1 + a_4 + a_7) + 360 \geqslant 90(1 + 2 + 3) + 360 = 900. \] If $a_3 + a_6 + a_9 = 20$, then $s(p) = 90(a_1 + a_4 + a_7) + 270 \geqslant 90 \cdot 6 + 270 = 810$, with equality if and only if $\{a_1, a_4, a_7\} = \{1, 2, 3\}$. The set $\{a_3, a_6, a_9\}$ must equal $\{4, 7, 9\}$, $\{5, 6, 9\}$, or $\{5, 7, 8\}$. For each $\{a_i, a_{i+3}, a_{i+6}\}$, there are $3!$ ways to permute these numbers. Hence there are $n = 3 \cdot 3! \cdot 3! \cdot 3! = 648$ permutations $p$ with $s(p) = m = 810$ and $|m - n| = |810 - 648| = 162$.