Maths Olympiad Prep

Library / /452 of 520

Number theory Difficulty 4.0 AMC 10/12 Find the answer

For how many positive integers n1000n \le 1000 is998n+999n+1000n\left\lfloor \dfrac{998}{n} \right\rfloor+\left\lfloor \dfrac{999}{n} \right\rfloor+\left\lfloor \dfrac{1000}{n}\right \rfloornot divisible by 33? (Recall that x\lfloor x \rfloor is the greatest integer less than or equal to xx.)

Pick one

Solution

Clearly, n=1n=1 fails. Except for the special case of n=1n=1,
1000n998n\left\lfloor \frac{1000}{n} \right\rfloor - \left\lfloor \frac{998}{n} \right\rfloor
equals either 00 or 11. If it equals 00, this implies that 998n=999n=1000n\left\lfloor \frac{998}{n} \right\rfloor = \left\lfloor \frac{999}{n} \right\rfloor = \left\lfloor \frac{1000}{n} \right\rfloor, so their sum is clearly a multiple of 33, so this will always fail. If it equals 11, the sum of the three floor terms is 3999n±13 \left\lfloor \frac{999}{n} \right\rfloor \pm 1, so it is never a multiple of 33. Thus, we are looking for all n1n \neq 1 such that
1000n998n=1.\left\lfloor \frac{1000}{n} \right\rfloor - \left\lfloor \frac{998}{n} \right\rfloor = 1.
This implies that either
998n+1=999n,\left\lfloor \frac{998}{n} \right\rfloor + 1 = \left\lfloor \frac{999}{n} \right\rfloor,
or
999n+1=1000n.\left\lfloor \frac{999}{n} \right\rfloor + 1 = \left\lfloor \frac{1000}{n} \right\rfloor.
Let's analyze the first equation of these two. This equation is equivalent to the statement that there is a positive integer aa such that
998n<a999n    998<an999    an=999    a=999n    n999.\frac{998}{n} < a \leq \frac{999}{n} \implies 998 < an \leq 999 \implies an = 999 \implies a = \frac{999}{n} \implies n | 999.*
Analogously, the second equation implies that
n1000.n | 1000.
So our only nn that satisfy this condition are n1n \neq 1 that divide 999999 or 10001000. Using the method to find the number of divisors of a number, we see that 999999 has 88 divisors and 10001000 has 1616 divisors. Their only common factor is 11, so there are 8+161=238+16-1 = 23 positive integers that divide either 999999 or 10001000. Since the integer 11 is a special case and does not count, we must subtract this from our 2323, so our final answer is 231=(A) 22.23-1 = \boxed{\textbf{(A) } 22}.

*While this observation may seem strange, it is actually "trivial by intuition" to go straight from 998n+1=999n\left\lfloor \frac{998}{n} \right\rfloor + 1 = \left\lfloor \frac{999}{n} \right\rfloor to n999n | 999. In fact, "trivial by intuition" is basically a good summary of the solution to this entire problem.

~ihatemath123

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: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.