Call a positive integer monotonous if it is a one-digit number or its digits, when read from left to right, form either a strictly increasing or a strictly decreasing sequence. For example, $3$, $23578$, and $987520$ are monotonous, but $88$, $7434$, and $23557$ are not. How many monotonous positive integers are there?
Xem đáp án và lời giải
Đáp án: $1524$
A strictly increasing sequence of digits cannot contain $0$. Any non-empty subset of $\{1, 2, \dots, 9\}$ can be arranged in strictly increasing order in exactly one way to form a strictly increasing number:
\[
2^9 - 1 = 512 - 1 = 511 \text{ numbers.}
\]
A strictly decreasing sequence of digits can include $0$. Any non-empty subset of $\{0, 1, 2, \dots, 9\}$ can be arranged in strictly decreasing order (with the largest digit first, so the first digit is never $0$ unless the subset is $\{0\}$, which gives the number $0$, not a positive integer):
Subsets of $\{0, 1, \dots, 9\}$ with at least one non-zero element:
\[
2^{10} - 2 = 1024 - 2 = 1022 \text{ numbers.}
\]
The numbers counted in both sets are single-digit positive numbers $\{1, 2, \dots, 9\}$ ($9$ numbers).
By the Principle of Inclusion-Exclusion, the total number of monotonous positive integers is:
\[
511 + 1022 - 9 = 1524.
\]
When $7$ fair standard $6$-sided dice are thrown, the probability that the sum of the numbers on the top faces is $10$ can be written as
\[
\dfrac{n}{6^7},
\]
where $n$ is a positive integer. What is $n$?
Xem đáp án và lời giải
Đáp án: $84$
Let the numbers on the $7$ dice be $x_1, x_2, \dots, x_7 \in \{1, 2, 3, 4, 5, 6\}$.
We want to find the number of integer solutions to
\[
x_1 + x_2 + \dots + x_7 = 10 \quad \text{with } x_i \geqslant 1.
\]
Let $y_i = x_i - 1$. Then $y_i \geqslant 0$ and
\[
y_1 + y_2 + \dots + y_7 = 10 - 7 = 3.
\]
Since the sum is $3$, no $y_i$ can exceed $3$, so the upper bound $x_i \leqslant 6$ (i.e., $y_i \leqslant 5$) is automatically satisfied for all $i$.
By the stars and bars theorem, the number of nonnegative integer solutions is
\[
\binom{3 + 7 - 1}{3} = \binom{9}{3} = \dfrac{9 \times 8 \times 7}{3 \times 2 \times 1} = 84.
\]
Thus $n = 84$.
The faces of each of $7$ standard dice are labeled with the integers from $1$ to $6$. Let $p$ be the probability that when all $7$ dice are rolled, the sum of the numbers on the top faces is $10$. What other sum occurs with the same probability $p$?
Xem đáp án và lời giải
Đáp án: $39$
Let the numbers rolled on the $7$ dice be $X_1, X_2, \dots, X_7$, each taking values in $\{1, 2, 3, 4, 5, 6\}$ with equal probability.
The minimum possible sum is $7 \times 1 = 7$.
The maximum possible sum is $7 \times 6 = 42$.
Consider the transformation $Y_i = 7 - X_i$.
Each $Y_i$ also takes values uniformly in $\{1, 2, 3, 4, 5, 6\}$, and
\[
\sum_{i=1}^7 Y_i = \sum_{i=1}^7 (7 - X_i) = 49 - \sum_{i=1}^7 X_i.
\]
By symmetry, the probability that the sum of the dice is $S$ is equal to the probability that the sum is $49 - S$.
For $S = 10$, the corresponding symmetric sum is
\[
49 - 10 = 39.
\]
How many of the first $2018$ numbers in the sequence $101, 1001, 10001, 100001, \dots$ are divisible by $101$?
Xem đáp án và lời giải
Đáp án: $505$
The numbers in the given sequence are of the form
\[
a_n = 10^n + 1 \quad \text{for } n = 2, 3, \dots, 2019.
\]
Note that $100 \equiv -1 \pmod{101}$.
We consider the parity of $n$:
If $n$ is even, say $n = 2k$ with $1 \leqslant k \leqslant 1009$:
\[
10^n + 1 = 10^{2k} + 1 = (100)^k + 1 \equiv (-1)^k + 1 \pmod{101}.
\]
This is divisible by $101$ if and only if $(-1)^k + 1 \equiv 0 \pmod{101}$, which means $(-1)^k = -1$, so $k$ must be odd.
The odd integers $k$ from $1$ to $1009$ are $k = 1, 3, 5, \dots, 1009$.
The number of such values of $k$ is $\dfrac{1009 - 1}{2} + 1 = 505$.
If $n$ is odd, say $n = 2k + 1$:
\[
10^n + 1 = 10 \cdot 100^k + 1 \equiv 10(-1)^k + 1 \pmod{101}.
\]
Since $10(-1)^k + 1$ is either $11$ or $-9$, it is never congruent to $0 \pmod{101}$.
Thus, there are exactly $505$ numbers in the first $2018$ terms that are divisible by $101$.
A list of $2018$ positive integers has a unique mode, which occurs exactly $10$ times. What is the least number of distinct values that can occur in the list?
Xem đáp án và lời giải
Đáp án: $225$
Let $N = 2018$ be the total number of integers in the list.
The mode occurs $10$ times.
Because the mode is unique, every other distinct integer in the list can appear at most $9$ times.
To minimize the total number of distinct values, we should maximize the frequency of each other value, meaning as many other values as possible should appear $9$ times.
After accounting for the mode ($1$ value with $10$ occurrences), there remain
\[
2018 - 10 = 2008\text{ numbers}.
\]
Dividing $2008$ by $9$:
\[
2008 = 9 \times 223 + 1.
\]
This means there can be $223$ distinct values each appearing $9$ times, and $1$ additional value appearing once (or some frequencies can be $8$ and $2$, etc.).
In either case, the remaining $2008$ elements require at least
\[
223 + 1 = 224\text{ distinct values}.
\]
Including the mode, the least number of distinct values in the list is
\[
1 + 224 = 225.
\]
A child builds towers using identically shaped cubes of different colors. How many different towers with a height of $8$ cubes can the child build with $2$ red cubes, $3$ blue cubes, and $4$ green cubes? (One cube will be left out.)
Xem đáp án và lời giải
Đáp án: $1260$
Exactly one of the $9$ cubes is omitted. We consider three cases according to the color of the omitted cube:
Omit $1$ red: remaining cubes are $1$ red, $3$ blue, $4$ green. Number of towers is $\dfrac{8!}{1! 3! 4!} = 280$.
Omit $1$ blue: remaining cubes are $2$ red, $2$ blue, $4$ green. Number of towers is $\dfrac{8!}{2! 2! 4!} = 420$.
Omit $1$ green: remaining cubes are $2$ red, $3$ blue, $3$ green. Number of towers is $\dfrac{8!}{2! 3! 3!} = 560$.
Total number of distinct towers is $280 + 420 + 560 = 1260$.
What is the sum of all real numbers $x$ for which the median of the numbers $4, 6, 8, 17$, and $x$ is equal to the mean of those five numbers?
Xem đáp án và lời giải
Đáp án: $-5$
The mean of the five numbers is
\[
\mu = \dfrac{4 + 6 + 8 + 17 + x}{5} = \dfrac{35 + x}{5} = 7 + \dfrac{x}{5}.
\]
The median $M$ depends on $x$:
If $x \leqslant 6$: the sorted list has $6$ as the middle element, so $M = 6$. Setting $\mu = M$: \[ 7 + \dfrac{x}{5} = 6 \implies \dfrac{x}{5} = -1 \implies x = -5. \] This satisfies $x \leqslant 6$.
If $6 \leqslant x \leqslant 8$: the median is $x$. Setting $\mu = M$: \[ 7 + \dfrac{x}{5} = x \implies \dfrac{4}{5}x = 7 \implies x = \dfrac{35}{4} = 8.75. \] This contradicts $6 \leqslant x \leqslant 8$, so no solution here.
If $x \geqslant 8$: the median is $8$. Setting $\mu = M$: \[ 7 + \dfrac{x}{5} = 8 \implies \dfrac{x}{5} = 1 \implies x = 5. \] This contradicts $x \geqslant 8$, so no solution here.
Thus, $x = -5$ is the unique solution, and the sum of all such numbers is $-5$.
A red ball and a green ball are randomly and independently tossed into bins numbered with positive integers so that for each ball, the probability that it is tossed into bin $k$ is $2^{-k}$ for $k = 1, 2, 3, \dots$. What is the probability that the red ball is tossed into a higher-numbered bin than the green ball?
Xem đáp án và lời giải
Đáp án: $\dfrac{1}{3}$
Let $R$ and $G$ be the bin numbers into which the red and green balls are tossed.
The probability that both balls land in the exact same bin is
\[
\mathrm{P}(R = G) = \sum_{k=1}^\infty \mathrm{P}(R = k)\mathrm{P}(G = k) = \sum_{k=1}^\infty 2^{-k} \cdot 2^{-k} = \sum_{k=1}^\infty 4^{-k} = \dfrac{\dfrac{1}{4}}{1 - \dfrac{1}{4}} = \dfrac{1}{3}.
\]
By symmetry, because the balls are tossed independently and follow identical distributions:
\[
\mathrm{P}(R > G) = \mathrm{P}(G > R).
\]
Since the three events $R > G$, $G > R$, and $R = G$ partition the entire sample space:
\[
\mathrm{P}(R > G) + \mathrm{P}(G > R) + \mathrm{P}(R = G) = 1 \implies 2\mathrm{P}(R > G) + \dfrac{1}{3} = 1.
\]
Solving gives
\[
2\mathrm{P}(R > G) = \dfrac{2}{3} \implies \mathrm{P}(R > G) = \dfrac{1}{3}.
\]
What is the median of the following list of $4040$ numbers?
\[
1, 2, 3, \ldots, 2020, 1^2, 2^2, 3^2, \ldots, 2020^2
\]
Xem đáp án và lời giải
Đáp án: $1976.5$
Since there are $4040$ numbers in the list, the median is the average of the $2020$th and $2021$st numbers when sorted in nondecreasing order.
Notice that $44^2 = 1936 < 2020 < 2025 = 45^2$, so exactly $44$ of the squares ($1^2, 2^2, \ldots, 44^2$) are less than or equal to $2020$.
Because $1936 < 1976$, all $44$ of those squares appear before $1976$ in the sorted list.
Counting up to the $2020$th and $2021$st entries, $1976$ has rank $1976 + 44 = 2020$, and $1977$ has rank $1977 + 44 = 2021$.
Thus the median is $\dfrac{1976 + 1977}{2} = 1976.5$.
A frog sitting at the point $(1, 2)$ begins a sequence of jumps, where each jump is parallel to one of the coordinate axes and has length $1$, and the direction of each jump (up, down, right, or left) is chosen independently at random. The sequence ends when the frog reaches a side of the square with vertices $(0, 0)$, $(0, 4)$, $(4, 4)$, and $(4, 0)$. What is the probability that the sequence of jumps ends on a vertical side of the square?
Xem đáp án và lời giải
Đáp án: $\dfrac{5}{8}$
Let $p(x,y)$ be the probability that the frog ends on a vertical side ($x = 0$ or $x = 4$) starting from $(x,y)$.
By symmetry across the diagonals $y = x$ and $y = 4 - x$, reflecting the square swaps vertical and horizontal sides, so
\[
p(2, 2) = p(1, 1) = p(1, 3) = \dfrac{1}{2}.
\]
From $(1, 2)$, the frog moves with probability $\dfrac{1}{4}$ to each of $(0, 2)$, $(2, 2)$, $(1, 3)$, and $(1, 1)$. Since $(0, 2)$ is on a vertical side ($p(0, 2) = 1$), we obtain
\[
p(1, 2) = \dfrac{1}{4}\bigl(p(0, 2) + p(2, 2) + p(1, 3) + p(1, 1)\bigr) = \dfrac{1}{4}\left(1 + \dfrac{1}{2} + \dfrac{1}{2} + \dfrac{1}{2}\right) = \dfrac{5}{8}.
\]
A positive integer divisor of $12!$ is chosen at random. The probability that the divisor chosen is a perfect square can be expressed as $\dfrac{m}{n}$, where $m$ and $n$ are relatively prime positive integers. What is $m + n$?
Xem đáp án và lời giải
Đáp án: $23$
First find the prime factorization of $12!$:
\[
12! = 2^{10} \cdot 3^5 \cdot 5^2 \cdot 7^1 \cdot 11^1.
\]
A divisor $2^a 3^b 5^c 7^d 11^e$ of $12!$ is determined independently by choosing $a \in \{0, \ldots, 10\}$ ($11$ choices), $b \in \{0, \ldots, 5\}$ ($6$ choices), $c \in \{0, 1, 2\}$ ($3$ choices), $d \in \{0, 1\}$ ($2$ choices), and $e \in \{0, 1\}$ ($2$ choices).
For the divisor to be a perfect square, each exponent must be even, leaving $6$ choices for $a$, $3$ for $b$, $2$ for $c$, $1$ for $d$, and $1$ for $e$.
Thus the probability is
\[
\dfrac{6 \cdot 3 \cdot 2 \cdot 1 \cdot 1}{11 \cdot 6 \cdot 3 \cdot 2 \cdot 2} = \dfrac{1}{22},
\]
so $m + n = 1 + 22 = 23$.
A point is chosen at random within the square in the coordinate plane whose vertices are $(0, 0)$, $(2020, 0)$, $(2020, 2020)$, and $(0, 2020)$. The probability that the point is within $d$ units of a lattice point is $\dfrac{1}{2}$. (A point $(x, y)$ is a lattice point if $x$ and $y$ are both integers.) What is $d$ to the nearest tenth?
Xem đáp án và lời giải
Đáp án: $0.4$
Partition the $2020 \times 2020$ square into $2020^2$ unit squares whose vertices are lattice points. By periodicity, the probability within the large square equals the probability within a single unit square $[0, 1]^2$.
As long as $d \leqslant 0.5$, the disks of radius $d$ centered at the four corners of $[0, 1]^2$ do not overlap and together form four quarter-disks, whose total area is $\pi d^2$.
Setting this equal to $\dfrac{1}{2}$ gives
\[
\pi d^2 = \dfrac{1}{2} \implies d^2 = \dfrac{1}{2\pi} \approx 0.1592 \implies d \approx 0.399.
\]
Since $0.399 < 0.5$, the assumption holds, and $d$ to the nearest tenth is $0.4$.
Ms. Carr asks her students to read any $5$ of the $10$ books on a reading list. Harold randomly selects $5$ books from this list, and Betty does the same. What is the probability that there are exactly $2$ books that they both select?
Xem đáp án và lời giải
Đáp án: $\dfrac{25}{63}$
Fix Harold's choice of $5$ books. Betty randomly chooses $5$ books out of the $10$ books in $\mathrm{C}_{10}^5 = 252$ equally likely ways.
To share exactly $2$ books with Harold, Betty must select $2$ books from the $5$ books Harold chose ($\mathrm{C}_5^2 = 10$ ways) and $3$ books from the remaining $5$ books ($\mathrm{C}_5^3 = 10$ ways).
Therefore, the desired probability is
\[
\dfrac{\mathrm{C}_5^2 \cdot \mathrm{C}_5^3}{\mathrm{C}_{10}^5} = \dfrac{10 \cdot 10}{252} = \dfrac{25}{63}.
\]
Bela and Jenn play the following game on the closed interval $[0, n]$ of the real number line, where $n$ is a fixed integer greater than $4$. They take turns playing, with Bela going first. At his first turn, Bela chooses any real number in the interval $[0, n]$. Thereafter, the player whose turn it is chooses a real number that is more than one unit away from all numbers previously chosen by either player. A player unable to choose such a number loses. Using optimal strategy, which player will win the game?
Xem đáp án và lời giải
Đáp án: Bela will always win.
Bela can guarantee a win for every integer $n > 4$ by using a symmetry strategy.
On his first turn, Bela chooses the midpoint $\dfrac{n}{2}$. This prevents any future move from lying in the closed interval $\left[\dfrac{n}{2} - 1, \dfrac{n}{2} + 1\right]$, leaving two symmetric open-at-one-end subintervals $\left[0, \dfrac{n}{2} - 1\right)$ and $\left(\dfrac{n}{2} + 1, n\right]$ of length $\dfrac{n}{2} - 1 > 1$.
Whenever Jenn chooses a valid number $x$, it lies in one of these two subintervals. Bela then responds by choosing $n - x$, its reflection across $\dfrac{n}{2}$, which lies in the other subinterval.
Because $|x - (n - x)| > 2 > 1$ and distances are preserved by reflection across $\dfrac{n}{2}$, $n - x$ is also more than $1$ unit away from every previously chosen number. Thus Bela always has a valid response and will always win.
There are $10$ people standing equally spaced around a circle. Each person knows exactly $3$ of the other $9$ people: the $2$ people standing next to her or him, as well as the person directly across the circle. How many ways are there for the $10$ people to split up into $5$ pairs so that the members of each pair know each other?
Xem đáp án và lời giải
Đáp án: $13$
Each valid pair corresponds to either a perimeter edge (between adjacent people) or a diameter (between opposite people). Let $d$ be the number of diameters chosen in the pairing ($0 \leqslant d \leqslant 5$).
If $d = 5$, all $5$ diameters are chosen: $1$ way.
If $d = 4$, only $2$ opposite people remain, and they do not share a perimeter edge: $0$ ways.
If $d = 3$, the $4$ remaining people consist of $2$ pairs of opposite people. To pair them using perimeter edges, the $2$ unused vertices on each half of the circle must be adjacent, meaning the $2$ unused diameters are consecutive around the circle ($5$ choices), which uniquely pairs the remaining $4$ people: $5$ ways.
If $d = 2$, the two chosen diameters split the remaining $6$ people into two pairs of opposite arcs whose sizes sum to $3$. Since one arc on each side must have an odd number of people, they cannot be paired by perimeter edges: $0$ ways.
If $d = 1$, there are $5$ choices for the single diameter, and the two remaining arcs of $4$ people each have a unique pairing by perimeter edges: $5$ ways.
If $d = 0$, all $5$ pairs are perimeter edges, forming an alternating pairing around the $10$-cycle: $2$ ways.
Altogether, there are $1 + 0 + 5 + 0 + 5 + 2 = 13$ ways.