For how many positive integers is not divisible by ? (Recall that is the greatest integer less than or equal to .)
- A)
- B)
- C)
- D)
- E)
Answer
A
Key insight
The three floors are equal (sum divisible by 3) unless n divides 999 or 1000; count those divisors, excluding n = 1 which divides both.
Solution
As increases by , increases only when becomes a multiple of . So the three floors for are all equal unless divides or .
Case 1: divides neither. All three floors equal some , the sum is , divisible by . Not counted.
Case 2: but . Then and . Sum : not divisible by . Counted.
Case 3: but . Then and the other two are . Sum : counted.
Case 4: divides both and . Consecutive integers are coprime, so only ; the sum is divisible by . Not counted.
Now count. has divisors; has . Removing from each list leaves values, all at most .
The answer is .
Why this works
Three consecutive numerators over the same denominator have floors that differ by at most , and the sum of three equal integers is automatically a multiple of . The whole problem is therefore about where the floor "steps," which happens exactly at divisors. Then the count is a divisor-counting exercise with one edge case.
The trap
Adding the divisor counts 8 + 16 = 24 without handling n = 1, which divides both 999 and 1000 and actually makes the sum divisible by 3.
Common mistakes
- Adding the divisor counts 8 + 16 = 24 without handling n = 1, which divides both 999 and 1000 and actually makes the sum divisible by 3.
- Subtracting only once for the double-counted (giving ) instead of removing it entirely, or forgetting that has no special role since is never the largest floor.
Techniques
Split into exhaustive cases and handle each · Set up the equation/formula and compute; no special trick needed