The function is defined by for all real numbers , where denotes the greatest integer less than or equal to the real number . What is the range of ?
- A)
- B)
- C)
- D)
- E)
Answer
A
Key insight
For x at least 0 both terms agree, giving 0; for a negative non-integer the floor rounds away from zero, so the difference is exactly -1.
Solution
Split by the sign and integrality of .
Case 1: . Then and , so .
Case 2: is a negative integer. Then is an integer, so , and . Again .
Case 3: is negative and not an integer. Write with a nonnegative integer and . Then , so . But , whose absolute value is . Hence .
For example, , while .
The range is . The answer is .
Why this works
Absolute value and floor do not commute for negative inputs: truncates toward zero, while rounds away from zero, and the two differ by exactly whenever has a fractional part. Whenever a floor function appears, test a positive number, a negative integer, and a negative non-integer; the third case is where surprises live.
The trap
Testing only positive values or negative integers, concluding the range is {0}, and missing the negative non-integer case.
Common mistakes
- Testing only positive values or negative integers, concluding the range is {0}, and missing the negative non-integer case.
- Believing the difference can grow with (choice B); the fractional part contributes at most one unit regardless of size.
Techniques
Split into exhaustive cases and handle each · Test small/specific values or special cases to find or verify the answer