When each of 702, 787, and 855 is divided by the positive integer $m$, the remainder is always the positive integer $r$. When each of 412, 722, and 815 is divided by the positive integer $n$, the remainder is always the positive integer $s \neq r$. Find $m + n + r + s$.
Xem đáp án và lời giải
Đáp án: $62$
If the remainder is the same when each of 702, 787, and 855 is divided by $m$, then $m$ must be a factor of $787 - 702 = 85$ and of $855 - 787 = 68$. The only common factor of 85 and 68 greater than 1 is 17, so $m$ must be 17, and the common remainder is $r = 5$. Similarly, $n$ must be a factor of $722 - 412 = 310$ and of $815 - 722 = 93$. The only common factor of 310 and 93 greater than 1 is 31, so $n$ must be 31, and the common remainder is $s = 9 \neq 5$. The requested sum is $17 + 31 + 5 + 9 = 62$.
For a positive integer $n$, let $d_n$ be the units digit of $1 + 2 + 3 + \dots + n$. Find the remainder when \[ \sum_{n=1}^{2017} d_n \] is divided by 1000.
Xem đáp án và lời giải
Đáp án: $69$
Any 20 consecutive positive integers have units digits whose sum is \[ \begin{aligned} &0 + 1 + 2 + \dots + 9 + 0 + 1 + 2 + \dots + 9 \\ &= 2(1 + 9) + 2(2 + 8) + 2(3 + 7) + 2(4 + 6) + 2(5) = 90. \end{aligned} \] Therefore $d_{n+20} = d_n$ for all integers $n \geqslant 1$. Thus one only needs to calculate $d_n$ for $1 \leqslant n \leqslant 20$, and \[ (d_1, d_2, \ldots, d_{20}) = (1, 3, 6, 0, 5, 1, 8, 6, 5, 5, 6, 8, 1, 5, 0, 6, 3, 1, 0, 0). \] Therefore \[ \sum_{n=1}^{2017} d_n = 101 \sum_{n=1}^{20} d_n - \sum_{n=18}^{20} d_n = 101 \cdot 70 - 1 = 7069. \] The requested remainder is 69.
Let $S$ be the number of ordered pairs of integers $(a, b)$, with $1 \leqslant a \leqslant 100$ and $b \geqslant 0$, such that the polynomial $x^2 + ax + b$ can be factored into the product of two (not necessarily distinct) linear factors with integer coefficients. Find the remainder when $S$ is divided by $1000$.
Xem đáp án và lời giải
Đáp án: $600$
The factoring condition is equivalent to the discriminant $a^2 - 4b$ being equal to $c^2$ for some non-negative integer $c$. Because $b \geqslant 0$, the equation $4b = a^2 - c^2 = (a - c)(a + c)$ shows that $c \leqslant a$. Since $(a - c) + (a + c) = 2a$ is even, $a - c$ and $a + c$ have the same parity, which means $a \equiv c \pmod 2$. Thus, for each fixed integer $a$, the possible values of $c$ are non-negative integers $c \leqslant a$ such that $c \equiv a \pmod 2$. If $a$ is even, $c$ can be any even integer from $0$ to $a$, giving $\dfrac{a}{2} + 1$ values. If $a$ is odd, $c$ can be any odd integer from $1$ to $a$, giving $\dfrac{a+1}{2}$ values. Summing over all $1 \leqslant a \leqslant 100$: $$
\begin{aligned} S &= \sum_{k=1}^{50} (k + 1) + \sum_{k=1}^{50} k \\ &= 2 \sum_{k=1}^{50} k + 50 = 2 \times \dfrac{50 \times 51}{2} + 50 = 2550 + 50 = 2600. \end{aligned}
$$ The remainder when $S$ is divided by $1000$ is $600$.
Let $a_0 = 2$, $a_1 = 5$, and $a_2 = 8$, and for $n \geqslant 3$ define $a_n$ recursively to be the remainder when $4(a_{n-1} + a_{n-2} + a_{n-3})$ is divided by $11$. Find $a_{2018} \cdot a_{2020} \cdot a_{2022}$.
Find the number of positive integers less than $1000$ that can be expressed as the difference of two integral powers of $2$.
Xem đáp án và lời giải
Đáp án: $50$
We want to find the number of positive integers $N < 1000$ that can be written as: \[ N = 2^x - 2^y, \] where $x$ and $y$ are integers. Since $N > 0$, we must have $x > y$. If $y < 0$, then $2^y$ is not an integer, but $N$ is an integer, so $2^x$ would have to have a fractional part matching $2^y$, which requires $x = y$, contradicting $N > 0$. Thus, $y$ must be a nonnegative integer, which implies $x$ is a positive integer. Furthermore, the representation $N = 2^x - 2^y = 2^y(2^{x - y} - 1)$ is unique because $2^y$ is the highest power of $2$ dividing $N$, and $2^{x - y} - 1$ is the odd part of $N$. Since $N < 1000$, we have $2^{x-1} \leqslant 2^x - 2^y < 1000$, which implies $2^{x-1} < 1000$, so $x - 1 \leqslant 9 \implies x \leqslant 10$: For each $x \in \{1, 2, 3, 4, 5, 6, 7, 8, 9\}$: Since $2^x \leqslant 2^9 = 512 < 1000$, for any $y \in \{0, 1, \dots, x - 1\}$, we have $N = 2^x - 2^y < 1000$. There are $x$ choices of $y$ for each such $x$. The total number of choices for $1 \leqslant x \leqslant 9$ is: \[ 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 = \dfrac{9 \times 10}{2} = 45. \] For $x = 10$: We need $2^{10} - 2^y = 1024 - 2^y < 1000 \iff 2^y > 24$. The valid nonnegative integers $y < 10$ satisfying $2^y > 24$ are $y \in \{5, 6, 7, 8, 9\}$. There are $5$ choices. Therefore, the total number of such positive integers is: \[ 45 + 5 = 50. \]
Let $S$ be the increasing sequence of positive integers whose binary representation has exactly $8$ ones. Let $N$ be the $1000$th number in $S$. Find the remainder when $N$ is divided by $1000$.
Xem đáp án và lời giải
Đáp án: $32$
Because $C_{12}^8 = 495$ and $C_{13}^8 = 1287$, the $1000$th integer in $S$ must have $13$ digits. There are $C_{13}^8 = 1287$ integers in $S$ less than $2^{13}$, and exactly $C_{11}^5 = 462$ of these have $13$ digits and begin with $11$. The $1000$th integer in $S$ must be the number in position $462 - (1287 - 1000) = 175$ among the numbers beginning with $11$. Of these, $C_9^3 = 84$ of them begin with $1100$, another $C_8^3 = 56$ of them begin with $11010$, and $C_7^3 = 35$ of them begin with $110110$. It follows that the largest number in $S$ beginning with $110110$ must be in position $84 + 56 + 35 = 175$ among the elements of $S$ that begin with $11$. Thus the $1000$th integer in $S$ is $1101101111000_2$. This number has the value \[ N = 2^{12} + 2^{11} + 2^9 + 2^8 + 2^6 + 2^5 + 2^4 + 2^3 = 7032. \] The requested remainder when $N$ is divided by $1000$ is $32$.
Find the number of positive integers $n$ less than $1000$ for which there exists a positive real number $x$ such that $n = x \lfloor x \rfloor$. (Note: $\lfloor x \rfloor$ is the greatest integer less than or equal to $x$.)
Xem đáp án và lời giải
Đáp án: $496$
Let $a$ be a positive integer. Because the distance from the integer $a^2$ to the integer $a(a+1)$ is $a(a+1) - a^2 = a$, there are $a$ positive integers $n$ that satisfy $a^2 \leqslant n < a(a+1)$. For each such $n$ there is a rational number $x = \dfrac{n}{a}$ such that $n = xa = x\lfloor x \rfloor$. The condition $a(a+1) \leqslant 1000$ implies that $a \leqslant 31$. All values of $n$ corresponding to $a = 1, 2, 3, \dots, 31$ satisfy the conditions of the problem, and thus there are $1 + 2 + 3 + \dots + 31 = \dfrac{31(31+1)}{2} = 496$ such values of $n$.
The domain of the function $f(x) = \arcsin(\log_m(nx))$ is a closed interval of length $\dfrac{1}{2013}$, where $m$ and $n$ are positive integers and $m > 1$. Find the remainder when the smallest possible sum $m + n$ is divided by $1000$.
Xem đáp án và lời giải
Đáp án: $371$
The domain of $f(x)$ is the solution of the inequality $-1 \leqslant \log_m(nx) \leqslant 1$, or equivalently, $\dfrac{1}{mn} \leqslant x \leqslant \dfrac{m}{n}$. Thus the domain is a closed interval of length $\dfrac{1}{2013} = \dfrac{m}{n} - \dfrac{1}{mn} = \dfrac{m^2 - 1}{mn}$. Hence $n = \dfrac{2013(m^2 - 1)}{m}$. Because $m$ and $m^2 - 1$ are relatively prime, $m$ must be a factor of $2013 = 3 \cdot 11 \cdot 61$. The smallest possible value of $n$ is $\dfrac{2013(3^2 - 1)}{3} = 5368$, and the smallest possible sum $m + n$ is $5368 + 3 = 5371$. The requested remainder is $371$.
For nonnegative integers $a$ and $b$ with $a + b \leqslant 6$, let $T(a, b) = C_6^a C_6^b C_6^{a+b}$. Let $S$ denote the sum of all $T(a, b)$, where $a$ and $b$ are nonnegative integers with $a + b \leqslant 6$. Find the remainder when $S$ is divided by 1000.
Xem đáp án và lời giải
Đáp án: $564$
It follows from \[ C_6^{a+b} = C_6^{6 - (a+b)} \] that \[ S = \sum_{a+b \leqslant 6} C_6^a C_6^b C_6^{6 - (a+b)} = \sum_{a+b+c = 6} C_6^a C_6^b C_6^c. \] For given values of $a, b$, and $c$, the term $C_6^a C_6^b C_6^c$ corresponds to the number of choices when selecting $a$ elements from $\{1, 2, 3, 4, 5, 6\}$, $b$ elements from $\{7, 8, 9, 10, 11, 12\}$, and $c$ elements from $\{13, 14, 15, 16, 17, 18\}$. Thus $S$ is equal to the number of 6-element subsets of $\{1, 2, 3, \ldots, 18\}$, namely $C_{18}^6 = 18{,}564$. The requested remainder is 564.
Let $a_{10} = 10$, and for each integer $n > 10$ let $a_n = 100a_{n-1} + n$. Find the least $n > 10$ such that $a_n$ is a multiple of 99.
Xem đáp án và lời giải
Đáp án: $45$
Because $100 \equiv 1 \pmod{99}$, $a_n \equiv a_{n-1} + n \pmod{99}$. Thus \[ a_n \equiv \sum_{k=10}^n k \pmod{99}, \] which is equivalent to $\dfrac{(n+10)(n-9)}{2}$. Because $n + 10$ and $n - 9$ cannot both be multiples of 3, $a_n$ is a multiple of 99 if and only if one of the following holds: $n - 9$ is a multiple of 99. The least $n > 10$ is 108. $n + 10$ is a multiple of 99. The least $n > 10$ is 89. $n + 10$ is a multiple of 9 while $n - 9$ is a multiple of 11. The least $n > 10$ is 53. $n + 10$ is a multiple of 11 while $n - 9$ is a multiple of 9. The least $n > 10$ is 45. The requested minimum is 45.
Find the number of positive integers $n$ less than $2017$ such that \[ 1 + n + \dfrac{n^2}{2!} + \dfrac{n^3}{3!} + \dfrac{n^4}{4!} + \dfrac{n^5}{5!} + \dfrac{n^6}{6!} \] is an integer.
Xem đáp án và lời giải
Đáp án: $134$
The sum $\dfrac{n^2}{2!} + \dfrac{n^3}{3!} + \dfrac{n^4}{4!} + \dfrac{n^5}{5!} + \dfrac{n^6}{6!}$ is an integer if and only if multiplying the sum by $6!$ gives an integer $M = 360n^2 + 120n^3 + 30n^4 + 6n^5 + n^6$ that is divisible by $720$. This means that $n^6$ must be divisible by $6$. Suppose $n = 6k$ for some positive integer $k$. Then \[ M = 360 \cdot 6^2 k^2 + 120 \cdot 6^3 k^3 + 30 \cdot 6^4 k^4 + 6 \cdot 6^5 k^5 + 6^6 k^6, \] which is divisible by $720$ if and only if $k^5 + k^6$ is divisible by $5$. This happens exactly when either $k$ or $k + 1$ is a multiple of $5$. Thus $n$ must be either a multiple of $30$ or $6$ less than a multiple of $30$. The possible values of $n$ are $30m$, where $1 \leqslant m \leqslant 67$, and $30m - 6$, where $1 \leqslant m \leqslant 67$. There are $134$ such values.
Let $N$ be the number of complex numbers $z$ with the properties that $|z| = 1$ and $z^{6!} - z^{5!}$ is a real number. Find the remainder when $N$ is divided by $1000$.
Xem đáp án và lời giải
Đáp án: $440$
Since $|z| = 1$, we can write $z = e^{i\theta}$ for $\theta \in [0, 2\pi)$. Then $z^{6!} - z^{5!} = e^{i(720\theta)} - e^{i(120\theta)}$ is real. A difference of two complex numbers on the unit circle is real if and only if their imaginary parts are equal: \[ \sin(720\theta) = \sin(120\theta). \] This equation holds if and only if: \[ 720\theta = 120\theta + 2k\pi \text{ or } 720\theta = \pi - 120\theta + 2m\pi, \] for integers $k, m$. Case 1: $600\theta = 2k\pi \implies \theta = \dfrac{k\pi}{300}$. For $\theta \in [0, 2\pi)$, there are $600$ solutions ($k = 0, 1, \dots, 599$). Case 2: $840\theta = (2m + 1)\pi \implies \theta = \dfrac{(2m + 1)\pi}{840}$. For $\theta \in [0, 2\pi)$, there are $840$ solutions ($m = 0, 1, \dots, 839$). Next, we count the intersection of the two cases: \[ \dfrac{k\pi}{300} = \dfrac{(2m + 1)\pi}{840} \implies \dfrac{k}{5} = \dfrac{2m + 1}{14} \implies 14k = 5(2m + 1) = 10m + 5. \] The left-hand side is even, while the right-hand side is odd, which has no integer solutions! Therefore, the two sets of solutions are completely disjoint. The total number of complex numbers is \[ N = 600 + 840 = 1440. \] The remainder when $N$ is divided by $1000$ is $440$.
A frog begins at $P_0 = (0, 0)$ and makes a sequence of jumps according to the following rule: from $P_n = (x_n, y_n)$, the frog jumps to $P_{n+1}$, which may be any of the points $(x_n + 7, y_n + 2)$, $(x_n + 2, y_n + 7)$, $(x_n - 5, y_n - 10)$, or $(x_n - 10, y_n - 5)$. There are $M$ points $(x, y)$ with $|x| + |y| \leqslant 100$ that can be reached by a sequence of such jumps. Find the remainder when $M$ is divided by $1000$.
Xem đáp án và lời giải
Đáp án: $373$
Note that $x_{n+1} + y_{n+1} \equiv x_n + y_n \pmod{3}$ and $x_{n+1} - y_{n+1} \equiv x_n - y_n \pmod{5}$, so each reachable point is at the intersection of a line $x + y = 3j$ and a line $x - y = 5k$ with $-33 \leqslant j \leqslant 33$ and $-20 \leqslant k \leqslant 20$. Furthermore, $j$ and $k$ must have the same parity. The number of points that meet these conditions is $33 \cdot 21 + 34 \cdot 20 = 1373$. Call these points good. To see that each good point is reachable, note first that it is possible to move from the line $x - y = 5k$ to either of the lines $x - y = 5(k+1)$ or $x - y = 5(k-1)$ by moving from $(x, x-5k)$ to $(x-5, x-5k-10)$ or $(x+2, x-5k+7)$, respectively. Therefore there is at least one reachable point on each line $x - y = 5k$ for $-20 \leqslant k \leqslant 20$. It is also possible to go from $(x, y)$ to either $(x+9, y+9)$ or $(x-15, y-15)$ in two moves, so it is possible to make a sequence of moves from $(x, x+5k)$ to either $(x+3, x+5k+3)$ or $(x-3, x+5k-3)$. Thus if any good point on the line $x - y = 5k$ is reachable, so is every good point on that line. This implies that $M = 1373$, and the remainder when $M$ is divided by $1000$ is $373$.
In a group of nine people each person shakes hands with exactly two of the other people from the group. Let $N$ be the number of ways this handshaking can occur. Consider two handshaking arrangements different if and only if at least two people who shake hands under one arrangement do not shake hands under the other arrangement. Find the remainder when $N$ is divided by $1000$.
Xem đáp án và lời giải
Đáp án: $16$
For any particular method of conducting the handshakes, define a minimal cycle to be any subset of the $9$ people in which no handshake occurs between a person in the subset and a person outside the subset, and no proper subset has property (1). For any particular method of conducting the handshakes select any one of the nine people, $A$. Intersect all subsets of people both containing $A$ and satisfying condition (1). This intersection will satisfy condition (2) and therefore will be minimal. It follows that for any particular method of conducting the handshakes, the set of nine people can be uniquely partitioned into minimal cycles. The minimum size of a minimal cycle is $3$, so the $9$ people can be partitioned into $3$ minimal cycles of $3$ people each, a minimal cycle of $3$ people and a minimal cycle of $6$ people, a minimal cycle of $4$ people and a minimal cycle of $5$ people, or a minimal cycle of $9$ people. Consider a minimal cycle of size $n \geqslant 3$. Select one person $A$ from this set. The two people with whom $A$ shakes hands (call them $B$ and $C$) can be selected in $C_{n-1}^2$ ways. The set being minimal implies that $B$ shakes hands with a fourth person $D$ (for $n > 3$), $D$ shakes hands with a fifth person $E$ (for $n > 4$), and so on, with the last person in the set shaking hands with $C$. Thus there are $C_{n-1}^2 \cdot (n-3)!$ methods of assigning the handshakes within this minimal cycle. When $n = 3, 4, 5, 6,$ and $9$, the number of methods are $1, 3, 12, 60,$ and $20160$, respectively. It remains only to determine the number of ways the partitions can be formed. The 3-3-3 partition can be done in $\dfrac{C_9^3 C_6^3}{3!} = 280$ ways, the 3-6 partition in $C_9^3 = 84$ ways, the 4-5 partition in $C_9^4 = 126$ ways, and the 9 partition in $1$ way. Thus the total number of methods is \[ 280 \cdot 1 \cdot 1 \cdot 1 + 84 \cdot 1 \cdot 60 + 126 \cdot 3 \cdot 12 + 1 \cdot 20160 = 30016, \] and the requested remainder is $16$.
Let $A = \{1, 2, 3, 4, 5, 6, 7\}$, and let $N$ be the number of functions $f$ from set $A$ to set $A$ such that $f(f(x))$ is a constant function. Find the remainder when $N$ is divided by $1000$.
Xem đáp án và lời giải
Đáp án: $399$
Suppose that $f$ is a function from $A$ to $A$ such that $f(f(x))$ is constant. Let $a \in A$ be the constant value of $f(f(x))$. Suppose that $S = \{x \in A \mid f(x) = a\}$ has $k$ elements. Note that $a \in S$, and for $x \notin S$, $f(x) \in S - \{a\}$. It follows that one can choose such a function $f$ by selecting $a$ in one of $7$ ways, selecting the other elements of $S$ in $C_6^{k-1}$ ways, and selecting values for $f(x)$ for each $x \notin S$ in $(k - 1)^{7-k}$ ways. Thus the number of functions is \[\sum_{k=1}^{7} 7 \cdot C_6^{k-1} \cdot (k - 1)^{7-k} = 0 + 7 \cdot 6 + 7 \cdot 240 + 7 \cdot 540 + 7 \cdot 240 + 7 \cdot 30 + 7 \cdot 1 = 7 \cdot 1057.\] The requested remainder is then $7 \cdot 57 = 399$.