Johann has $64$ fair coins. He flips all the coins. Any coin that lands on tails is tossed again. Coins that land on tails on the second toss are tossed a third time. What is the expected number of coins that are now heads?
Xem đáp án và lời giải
Đáp án: $56$
A single coin lands on tails after all three rounds if and only if it lands on tails on all $3$ tosses.
Since the coin is fair, the probability that it shows tails on all $3$ tosses is:
\[
\left(\dfrac{1}{2}\right)^3 = \dfrac{1}{8}.
\]
Therefore, the probability that a coin ends up showing heads is:
\[
1 - \dfrac{1}{8} = \dfrac{7}{8}.
\]
By linearity of expectation, the expected number of coins showing heads among the $64$ coins is:
\[
64 \times \dfrac{7}{8} = 56.
\]
Erin the ant starts at a given corner of a cube and crawls along exactly $7$ edges in such a way that she visits every corner exactly once and then finds that she is unable to return along an edge to her starting point. How many paths are there meeting these conditions?
Xem đáp án và lời giải
Đáp án: $6$
A path visiting every one of the $8$ vertices of the cube exactly once is a Hamiltonian path of length $7$.
Let the starting vertex be $v_0$.
The cube is a bipartite graph with vertices partitioned into two partite sets $X$ and $Y$ of $4$ vertices each, where $v_0 \in X$.
In any path on the cube, the vertices alternate between $X$ and $Y$:
\[
v_0 (X) \to v_1 (Y) \to v_2 (X) \to v_3 (Y) \to v_4 (X) \to v_5 (Y) \to v_6 (X) \to v_7 (Y).
\]
Thus the final vertex $v_7$ belongs to $Y$. The neighbors of $v_0$ in the cube all belong to $Y$.
The total number of Hamiltonian paths starting at $v_0$ is $3 \times 2 \times 2 \times 2 \times 1 = 24$, or we can count directly:
For the ant to be able to return to $v_0$ along an edge, $v_7$ must be adjacent to $v_0$, which forms a Hamiltonian cycle.
A cube has $\dfrac{3 \times 4 \times 1}{2} = 6$ directed Hamiltonian cycles, or $12$ directed Hamiltonian cycles starting from a fixed vertex (since each cycle passes through $v_0$ in $2$ directions, and there are $6$ undirected cycles, giving $12$ closed paths).
Out of the $18$ Hamiltonian paths that end at one of the other $2$ vertices of $Y$ not adjacent to $v_0$, or analyzing the symmetries:
Erin chooses $v_1$ ($3$ choices). Let the face containing $v_0, v_1$ be considered; following the condition that the ant cannot return to $v_0$:
Exactly $6$ such open Hamiltonian paths exist from the fixed corner $v_0$.
Each vertex of a cube is to be labeled with an integer from $1$ through $8$, with each integer being used once, in such a way that the sum of the four numbers on the vertices of a face is the same for each face. Arrangements that can be obtained from each other through rotations of the cube are considered to be the same. How many different arrangements are possible?
Xem đáp án và lời giải
Đáp án: $6$
The sum of the numbers $1$ through $8$ is
\[
1 + 2 + \dots + 8 = \dfrac{8 \times 9}{2} = 36.
\]
Because each vertex belongs to $3$ faces, the sum of the $6$ face sums is
\[
3 \times 36 = 108.
\]
Since all $6$ faces have the same sum, each face sum must be
\[
\dfrac{108}{6} = 18.
\]
For each pair of opposite faces, the sum of their vertex values is $36$.
It follows that diagonally opposite pairs of vertices on the cube must sum to $9$:
$\{1, 8\}, \{2, 7\}, \{3, 6\}, \{4, 5\}$.
We can fix the rotation of the cube by placing $1$ at the bottom-left-front vertex, which forces $8$ to be at the bottom-right-front (or adjacent vertex).
The numbers $4, 6, 7$ must label the remaining vertices of that face, which can be done in $3! = 6$ ways.
Each such choice uniquely determines the positions of their partners $5, 3, 2$ on the opposite face.
Therefore, there are exactly $6$ possible rotational arrangements.
For some particular value of $N$, when $(a + b + c + d + 1)^N$ is expanded and like terms are combined, the resulting expression contains exactly $1001$ terms that include all four variables, $a, b, c,$ and $d$, each to some positive power. What is $N$?
Xem đáp án và lời giải
Đáp án: $14$
A general term in the expansion of $(a + b + c + d + 1)^N$ is of the form
\[
C \cdot a^p b^q c^r d^s \cdot 1^m,
\]
where $p, q, r, s, m$ are nonnegative integers such that
\[
p + q + r + s + m = N.
\]
For the term to contain all four variables $a, b, c,$ and $d$ each to a positive power, we require
\[
p \geqslant 1, \quad q \geqslant 1, \quad r \geqslant 1, \quad s \geqslant 1, \quad m \geqslant 0.
\]
Let $p = i + 1, q = j + 1, r = k + 1, s = l + 1$, where $i, j, k, l \geqslant 0$.
Then
\[
(i + 1) + (j + 1) + (k + 1) + (l + 1) + m = N \iff i + j + k + l + m = N - 4.
\]
By the stars and bars method, the number of nonnegative integer solutions to this equation with $5$ variables is
\[
\binom{(N - 4) + 5 - 1}{5 - 1} = \binom{N}{4}.
\]
We are given that this number is $1001$:
\[
\binom{N}{4} = \dfrac{N(N - 1)(N - 2)(N - 3)}{24} = 1001.
\]
Notice that $1001 = 7 \times 11 \times 13$.
Multiplying by $24$:
\[
N(N - 1)(N - 2)(N - 3) = 24 \times 7 \times 11 \times 13 = 14 \times 13 \times 12 \times 11.
\]
Therefore, $N = 14$.
In how many ways can $345$ be written as the sum of an increasing sequence of two or more consecutive positive integers?
Xem đáp án và lời giải
Đáp án: $7$
Let the sum of $k$ consecutive positive integers starting at $a \geqslant 1$ be
\[
a + (a + 1) + \dots + (a + k - 1) = ka + \dfrac{k(k - 1)}{2} = 345.
\]
Multiplying by $2$:
\[
2ka + k(k - 1) = 690 \iff k(2a + k - 1) = 690.
\]
Here $k$ and $2a + k - 1$ are factors of $690$ of opposite parity, with $k \geqslant 2$ and $2a + k - 1 > k$.
The prime factorization of $690$ is
\[
690 = 2 \times 3 \times 5 \times 23.
\]
The odd factors of $690$ are the divisors of $3 \times 5 \times 23 = 345$, which has $(1+1)(1+1)(1+1) = 8$ divisors:
\[
\{1, 3, 5, 15, 23, 69, 115, 345\}.
\]
Each odd divisor $d > 1$ gives a unique solution for $k$:
If $k$ is odd, $k = d \in \{3, 5, 15, 23\}$ ($4$ values).
If $2a + k - 1$ is odd, $k$ is even, $k = \dfrac{690}{d}$ for $d \in \{69, 115, 345\}$, giving $k \in \{10, 6, 2\}$ ($3$ values).
Total number of valid values of $k \geqslant 2$ is $4 + 3 = 7$.
In a round-robin tournament with $21$ teams, every team plays every other team once, with no ties. Each team wins $10$ games and loses $10$ games. A subset of three teams $\{A, B, C\}$ is called cyclical if $A$ beats $B$, $B$ beats $C$, and $C$ beats $A$. How many cyclical subsets of three teams are there?
Xem đáp án và lời giải
Đáp án: $385$
The total number of subsets of three teams chosen from $21$ teams is
\[
\binom{21}{3} = \dfrac{21 \times 20 \times 19}{6} = 1330.
\]
In any tournament, every subset of three teams is either cyclical or has a unique team that beat both of the other two teams (a transitive triple).
To count the number of transitive triples, we count by the team that won both games:
Each of the $21$ teams won $10$ games.
For any team $T$, there are $\binom{10}{2} = 45$ pairs of teams that $T$ beat.
Each such pair forms a transitive triple with $T$.
Since every transitive triple has exactly one team that beat both other teams, the total number of transitive triples is
\[
21 \times \binom{10}{2} = 21 \times 45 = 945.
\]
Therefore, the number of cyclical subsets of three teams is
\[
1330 - 945 = 385.
\]
Amelia has a coin that lands on heads with probability $\dfrac{1}{3}$, and Blaine has a coin that lands on heads with probability $\dfrac{2}{5}$. Amelia and Blaine alternate turns tossing their coins, with Amelia going first. The first person to toss a head wins. What is the probability that Amelia wins?
Xem đáp án và lời giải
Đáp án: $\dfrac{5}{9}$
Let $p_A = \dfrac{1}{3}$ and $p_B = \dfrac{2}{5}$.
Let $P$ be the probability that Amelia wins.
On the first round:
Amelia wins immediately with probability $p_A = \dfrac{1}{3}$.
Amelia tosses tails with probability $1 - p_A = \dfrac{2}{3}$.
Then Blaine tosses heads and wins with probability $p_B = \dfrac{2}{5}$.
Blaine tosses tails with probability $1 - p_B = \dfrac{3}{5}$. In this case, the game resets to its initial state, and Amelia wins with probability $P$.
Setting up the equation for $P$:
\[
P = \dfrac{1}{3} + \left(\dfrac{2}{3}\right)\left(\dfrac{3}{5}\right) P = \dfrac{1}{3} + \dfrac{2}{5} P.
\]
Solving for $P$:
\[
P - \dfrac{2}{5} P = \dfrac{1}{3} \iff \dfrac{3}{5} P = \dfrac{1}{3} \iff P = \dfrac{5}{9}.
\]
Alice refuses to sit next to either Bob or Carla. Derek refuses to sit next to Eric. How many ways are there for the five of them to sit in a row of $5$ chairs under these conditions?
Xem đáp án và lời giải
Đáp án: $28$
We analyze the seating arrangements based on Alice's chair:
Since Alice cannot sit next to Bob or Carla, whoever sits next to Alice must be from $\{D, E\}$.
Case 1: Alice sits at one of the two ends (Chair 1 or Chair 5, $2$ choices).
The single chair next to Alice must be occupied by Derek or Eric ($2$ choices).
Since Derek and Eric refuse to sit together, the other one cannot sit in the third chair; he must sit in Chair 4 or Chair 5 (away from the first one).
Bob and Carla can take the remaining chairs.
Careful placement gives $2 \times 8 = 16$ valid seatings.
Case 2: Alice sits in Chair 2 or Chair 4 ($2$ choices).
Both seats next to Alice must be occupied by Derek and Eric (in $2$ orders: $DE$ or $ED$).
The remaining two seats are taken by Bob and Carla ($2$ orders).
This gives $2 \times 2 \times 2 = 8$ valid seatings.
Case 3: Alice sits in Chair 3 (the middle chair, $1$ choice).
Her two neighbors (Chairs 2 and 4) must be Derek and Eric ($2$ orders).
The two outer chairs (Chairs 1 and 5) must be Bob and Carla ($2$ orders).
This gives $1 \times 2 \times 2 = 4$ valid seatings.
The total number of valid seating arrangements is:
\[
16 + 8 + 4 = 28.
\]
The number $21! = 51{,}090{,}942{,}171{,}709{,}440{,}000$ has over $60{,}000$ positive integer divisors. One of them is chosen at random. What is the probability that it is odd?
Xem đáp án và lời giải
Đáp án: $\dfrac{1}{19}$
We find the exponent of $2$ in the prime factorization of $21!$ using Legendre's formula:
\[
E_2(21!) = \left\lfloor \dfrac{21}{2} \right\rfloor + \left\lfloor \dfrac{21}{4} \right\rfloor + \left\lfloor \dfrac{21}{8} \right\rfloor + \left\lfloor \dfrac{21}{16} \right\rfloor = 10 + 5 + 2 + 1 = 18.
\]
Thus $21! = 2^{18} \cdot M$, where $M$ is an odd integer.
Any positive divisor $d$ of $21!$ is uniquely of the form:
\[
d = 2^k \cdot m,
\]
where $0 \leqslant k \leqslant 18$ and $m$ is a divisor of $M$.
The number of divisors of $21!$ is $(18 + 1) d(M) = 19 d(M)$.
A divisor $d$ is odd if and only if $k = 0$.
The number of odd divisors is $1 \cdot d(M) = d(M)$.
Since each divisor is equally likely to be chosen, the probability that the chosen divisor is odd is:
\[
\dfrac{d(M)}{19 d(M)} = \dfrac{1}{19}.
\]
How many nonnegative integers can be written in the form
\[
a_7 \cdot 3^7 + a_6 \cdot 3^6 + a_5 \cdot 3^5 + a_4 \cdot 3^4 + a_3 \cdot 3^3 + a_2 \cdot 3^2 + a_1 \cdot 3^1 + a_0 \cdot 3^0,
\]
where $a_i \in \{-1, 0, 1\}$ for $0 \leqslant i \leqslant 7$?
Xem đáp án và lời giải
Đáp án: $3281$
Each coefficient $a_i$ has $3$ choices: $-1, 0, 1$.
Thus there are $3^8 = 6561$ possible sequences of coefficients $(a_7, a_6, \dots, a_0)$.
By the uniqueness of balanced ternary representation, every integer has a unique representation of this form.
Therefore, all $6561$ sequences represent distinct integers.
Notice that the negation of any number $\sum a_i 3^i$ is $\sum (-a_i) 3^i$, which also has coefficients in $\{-1, 0, 1\}$.
The only number that is its own negation is $0$, which corresponds to $a_i = 0$ for all $i$.
The remaining $6561 - 1 = 6560$ numbers are paired into positive and negative pairs.
Thus exactly half of them are strictly positive:
\[
\dfrac{6560}{2} = 3280.
\]
Including $0$, the number of nonnegative integers is
\[
3280 + 1 = 3281.
\]
A number $m$ is randomly selected from the set $\{11, 13, 15, 17, 19\}$, and a number $n$ is randomly selected from $\{1999, 2000, 2001, \dots, 2018\}$. What is the probability that $m^n$ has a units digit of $1$?
Xem đáp án và lời giải
Đáp án: $\dfrac{2}{5}$
The units digit of $m^n$ depends only on the units digit of $m$ and $n \pmod 4$ (or modulo $2$):
The set of $m$ has $5$ elements, each chosen with probability $\dfrac{1}{5}$.
The set for $n$ contains $2018 - 1999 + 1 = 20$ consecutive integers, which contains exactly $5$ integers of each residue modulo $4$.
We analyze each possible value of $m$:
If $m = 11$, the units digit of $11^n$ is always $1$ for all $20$ values of $n$. (Probability $1$)
If $m = 13$, the units digit follows the cycle $3, 9, 7, 1$ of length $4$. The units digit is $1$ if and only if $n \equiv 0 \pmod 4$. This occurs for $\dfrac{5}{20} = \dfrac{1}{4}$ of the values of $n$.
If $m = 15$, the units digit is always $5 \ne 1$. (Probability $0$)
If $m = 17$, the units digit follows the cycle $7, 9, 3, 1$ of length $4$. The units digit is $1$ if and only if $n \equiv 0 \pmod 4$. (Probability $\dfrac{1}{4}$)
If $m = 19$, the units digit alternates $9, 1$ with period $2$. The units digit is $1$ if and only if $n$ is even. Exactly $10$ of the $20$ integers are even. (Probability $\dfrac{10}{20} = \dfrac{1}{2}$)
Since each $m$ is chosen with probability $\dfrac{1}{5}$, the overall probability is
\[
\dfrac{1}{5} \left(1 + \dfrac{1}{4} + 0 + \dfrac{1}{4} + \dfrac{1}{2}\right) = \dfrac{1}{5} (2) = \dfrac{2}{5}.
\]
A scanning code consists of a $7 \times 7$ grid of squares, with some of its squares colored black and the rest colored white. There must be at least one square of each color in this grid of $49$ squares. A scanning code is called symmetric if its look does not change when the entire square is rotated by a multiple of $90^\circ$ counterclockwise around its center, nor when it is reflected across a line joining opposite corners or a line joining midpoints of opposite sides. What is the total number of possible symmetric scanning codes?
Xem đáp án và lời giải
Đáp án: $1022$
The symmetry group of the square is the dihedral group $D_4$, which has order $8$.
Under all rotations and reflections of $D_4$, the $49$ squares of the $7 \times 7$ grid are partitioned into orbits. Squares in the same orbit must have the same color.
Let us determine the number of orbits in the fundamental domain (an eighth of the square, including boundaries):
The center square $(4, 4)$ is invariant under all operations: $1$ orbit of size $1$.
The squares along the horizontal/vertical axes of symmetry (excluding center): each of the $4$ rays from the center has $3$ squares. By $90^\circ$ rotations, they group into $3$ orbits of size $4$.
The squares along the diagonals (excluding center): each of the $4$ diagonal rays has $3$ squares. They group into $3$ orbits of size $4$.
The squares strictly inside each of the $8$ octants: the triangle has $\dfrac{(7-1)(7-1)}{8} - \dots$ squares. Specifically, the number of squares in each octant is $1 + 2 = 3$. These group into $3$ orbits of size $8$.
The total number of independent orbits is
\[
1 + 3 + 3 + 3 = 10\text{ orbits}.
\]
Each orbit can independently be colored black or white, giving $2^{10} = 1024$ possible colorings.
We must exclude the monochromatic colorings (all black or all white), which gives
\[
1024 - 2 = 1022\text{ codes}.
\]
Three young brother-sister pairs from different families need to take a trip in a van. These six children will occupy the second and third rows in the van, each of which has three seats. To avoid disruptions, no two siblings may sit next to each other in the same row, and no child may sit directly in front of his or her sibling. How many seating arrangements are possible for this trip?
Xem đáp án và lời giải
Đáp án: $96$
Let the three families be $1, 2, 3$, with children $\{B_1, S_1\}, \{B_2, S_2\}, \{B_3, S_3\}$.
There are two rows of $3$ seats: row $2$ and row $3$.
Let the seats be columns $1, 2, 3$ in row $2$, and columns $1, 2, 3$ in row $3$.
The condition that no two siblings sit in the same row means that each row contains exactly one child from each of the three families.
The condition that no child sits directly in front of their sibling means that for each column $c \in \{1, 2, 3\}$, the two children in column $c$ must be from different families.
First, choose which child of each family sits in row $2$: there are $2^3 = 8$ choices.
Next, assign the three chosen children to the three seats of row $2$: there are $3! = 6$ ways.
Without loss of generality, let row $2$ have families $1, 2, 3$ in columns $1, 2, 3$, respectively.
For row $3$, the children from families $1, 2, 3$ must be placed so that:
family $1$ cannot be in column $1$, family $2$ cannot be in column $2$, and family $3$ cannot be in column $3$.
This is precisely a derangement of $3$ items:
\[
D_3 = 2\text{ ways} \quad ((2, 3, 1) \text{ and } (3, 1, 2)).
\]
Therefore, the total number of valid seating arrangements is
\[
8 \times 6 \times 2 = 96.
\]
The numbers $1, 2, \dots, 9$ are randomly placed into the $9$ squares of a $3 \times 3$ grid. Each square gets one number, and each of the numbers is used once. What is the probability that the sum of the numbers in each row and each column is odd?
Xem đáp án và lời giải
Đáp án: $\dfrac{1}{14}$
Among the numbers $1, \dots, 9$, there are $5$ odd numbers and $4$ even numbers.
A sum of three integers is odd if and only if either all $3$ are odd, or $1$ is odd and $2$ are even.
The only way to partition the $5$ odd numbers into three row sums that are all odd is $3 + 1 + 1 = 5$, and similarly for columns.
Thus exactly one row and one column contain $3$ odd numbers.
There are $3 \times 3 = 9$ choices for the row and column containing all odd numbers.
The total number of ways to place the $5$ odd numbers into the $9$ squares is $\binom{9}{5} = 126$.
Therefore, the probability is $\dfrac{9}{126} = \dfrac{1}{14}$.
Real numbers between $0$ and $1$, inclusive, are chosen in the following manner. A fair coin is flipped. If it lands heads, then it is flipped again and the chosen number is $0$ if the second flip is heads and $1$ if the second flip is tails. On the other hand, if the first coin flip is tails, then the number is chosen uniformly at random from the closed interval $[0, 1]$. Two random numbers $x$ and $y$ are chosen independently in this manner. What is the probability that $|x - y| > \dfrac{1}{2}$?
Xem đáp án và lời giải
Đáp án: $\dfrac{7}{16}$
Each chosen number is $0$ with probability $\dfrac{1}{4}$, $1$ with probability $\dfrac{1}{4}$, and uniformly distributed on $[0, 1]$ with probability $\dfrac{1}{2}$.
Case 1: Both discrete (probability $\dfrac{1}{4}$). The outcomes $(0, 1)$ and $(1, 0)$ satisfy $|x - y| > \dfrac{1}{2}$, giving probability $\dfrac{2}{4} = \dfrac{1}{2}$. Contribution: $\dfrac{1}{4} \cdot \dfrac{1}{2} = \dfrac{1}{8}$.
Case 2: One discrete, one continuous (probability $\dfrac{1}{2}$). When $x = 0$, $y \in (1/2, 1]$ has length $\dfrac{1}{2}$; when $x = 1$, $y \in [0, 1/2)$ has length $\dfrac{1}{2}$. Contribution: $\dfrac{1}{2} \cdot \dfrac{1}{2} = \dfrac{1}{4}$.
Case 3: Both continuous (probability $\dfrac{1}{4}$). The region $|x - y| > \dfrac{1}{2}$ inside the unit square has area $2 \cdot \dfrac{1}{2} \cdot \left(\dfrac{1}{2}\right)^2 = \dfrac{1}{4}$. Contribution: $\dfrac{1}{4} \cdot \dfrac{1}{4} = \dfrac{1}{16}$.
Total probability: $\dfrac{1}{8} + \dfrac{1}{4} + \dfrac{1}{16} = \dfrac{7}{16}$.