2019 AMC 10B Problem 9

Attempt Problem 9 of the 2019 AMC 10B below, then check your answer against the professionally curated solution from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2019 AMC 10B solutions, or check the answer key.

All problems are used with official legal permission of the Mathematical Association of America (MAA).

9.

The function ff is defined by f(x)=⌊∣x∣⌋−∣⌊x⌋∣f(x) = \lfloor|x|\rfloor - |\lfloor x \rfloor| for all real numbers x,x, where ⌊r⌋\lfloor r \rfloor denotes the greatest integer less than or equal to the real number r.r. What is the range of f?f?
{−1,0} \{-1, 0\}
The set of nonpositive integers
{−1,0,1}\{-1, 0, 1\}
{0} \{0\}
The set of nonnegative integers
Answer: A
Concepts:floor and ceiling functionsabsolute valuecasework
Small hint:
Check positive numbers, integers, and negative non-integers separately
Big hint:
For negative non-integers, compare rounding before and after absolute value
Solution:
If x≥0x\ge0, then ⌊∣x∣⌋=⌊x⌋=∣⌊x⌋∣\lfloor|x|\rfloor=\lfloor x\rfloor=|\lfloor x\rfloor|, so f(x)=0f(x)=0.
If xx is a negative integer, both terms equal ∣x∣|x|, so again f(x)=0f(x)=0.
If xx is negative and not an integer, write x=−k−tx=-k-t, where kk is a nonnegative integer and 0<t<10<t<1. Then ⌊∣x∣⌋=k\lfloor|x|\rfloor=k, while ∣⌊x⌋∣=∣−k−1∣=k+1|\lfloor x\rfloor|=|-k-1|=k+1, so f(x)=−1f(x)=-1.
Therefore, the range is {−1,0}.\{-1,0\}.
Thus, the answer is A .
LIVE by Po-Shen Loh
Programs

LIVE Classes

Self-Paced Classes

Stars

Scholarship

About Us

Who Is Po-Shen Loh?

Email Contact

Newsletter

Jobs

Become a Star

For a more Thought Full world.

© 2026 Expii, Inc.