Problem 880: (2020 AMC 10a, 22)
For how many positive integers $n \le 1000$ is \[\left\lfloor \dfrac{998}{n} \right\rfloor+\left\lfloor \dfrac{999}{n} \right\rfloor+\left\lfloor \dfrac{1000}{n}\right \rfloor\] not divisible by $3$? (Recall that $\lfloor x \rfloor$ is the greatest integer less than or equal to $x$.)
$\textbf{(A)}\ 22 \qquad\textbf{(B)}\ 23 \qquad\textbf{(C)}\ 24 \qquad\textbf{(D)}\ 25 \qquad\textbf{(E)}\ 26$
- If $n$ divides none of $999,1000$, the three floors are equal and the sum is a multiple of $3$. If $n\mid999$ ($n>1$), the floors are $q-1,q,q$; if $n\mid1000$, they are $q-1,q-1,q$. Then the sum is not a multiple of $3$. ($n=1$ divides both and gives $2997$.)
- $999=3^3\cdot37$ has $8$ divisors, $1000$ has $16$; excluding $n=1$: $7+15=22$.
- The answer is (A).
For how many positive integers $n\le51$ is $\left\lfloor\frac{49}n\right\rfloor+\left\lfloor\frac{50}n\right\rfloor+\left\lfloor\frac{51}n\right\rfloor$ not divisible by $3$?