AMC 10 · 2019 · #9

Grade 8 arithmetic
floor-functionabsolute-valuefunction-evaluationcasework caseworkpattern-recognition ↑ Prerequisites: floor-functionabsolute-value
📏 Medium solution 💡 3 insights

Problem

The function ff is defined by f(x)=xxf(x) = \lfloor|x|\rfloor - |\lfloor x \rfloor|for all real numbers xx, where r\lfloor r \rfloor denotes the greatest integer less than or equal to the real number rr. What is the range of ff?

Pick an answer.

(A)
$\{-1, 0\}$
(B)
The set of nonpositive integers
(C)
$\{-1, 0, 1\}$
(D)
$\{0\}$
(E)
The set of nonnegative integers

AMC 10 2019 problem © Mathematical Association of America (MAA AMC). Reproduced for educational use.

Try it yourself first — the explanation is most useful after you’ve attempted it.