Let , where denotes the greatest integer less than or equal to . How many distinct values does assume for ?
- A)
- B)
- C)
- D)
- E)
Answer
A
Key insight
Each term equals floor(k{x}), so f depends only on the fractional part t and jumps exactly at fractions j/k with k <= 10; values = 1 + distinct fractions.
Solution
Write with and . Then with an integer, so and each term is
Thus depends only on the fractional part, and we may take .
Each is a nondecreasing step function of that jumps by exactly when passes an integer, i.e. at for . So is nondecreasing, starts at , and increases exactly when crosses a fraction in whose reduced denominator is at most . Every crossing strictly raises , so takes one value on each interval between consecutive jump points, and different intervals give different values.
The number of distinct values is therefore plus the number of distinct fractions in with denominator at most . Counting reduced fractions by denominator with Euler's :
So takes distinct values.
The answer is .
Why this works
The combination is designed to kill the integer part of , so an apparently unbounded problem lives on . A sum of monotone step functions is monotone, and a monotone step function has exactly one more value than it has jump points; the whole problem is then counting distinct jump points, where the trap is that different pairs can name the same fraction. Reduced fractions with denominator are counted by .
Alternative approach
List the distinct fractions with denominator at most directly (the Farey sequence without and ): ; there are of them, giving values. Also, is never constant on all of , and the value is at most , so "infinitely many" is impossible once you see depends only on .
The trap
Counting the 45 pairs (j, k) with 1 <= j < k <= 10 as separate jump points, forgetting that equal fractions like 1/2 = 2/4 = 3/6 are one jump.
Common mistakes
- Counting the pairs with as separate jump points, forgetting that equal fractions like are one jump.
- Believing grows without bound as increases (choice E) because does; the subtracted cancels that growth.
Techniques
Map the objects to something easier to count · Substitute to simplify (u = x+1/x, shifting, scaling)