Difference between revisions of "2019 AMC 10B Problems/Problem 9"
Ironicninja (talk | contribs) (→Solution) |
Sevenoptimus (talk | contribs) (Improved grammar, readability, and LaTeX, and removed an irrelevant attribution) |
||
| Line 5: | Line 5: | ||
<math>\textbf{(A) } \{-1, 0\} \qquad\textbf{(B) } \text{The set of nonpositive integers} \qquad\textbf{(C) } \{-1, 0, 1\} \qquad\textbf{(D) } \{0\} \qquad\textbf{(E) } \text{The set of nonnegative integers} </math> | <math>\textbf{(A) } \{-1, 0\} \qquad\textbf{(B) } \text{The set of nonpositive integers} \qquad\textbf{(C) } \{-1, 0, 1\} \qquad\textbf{(D) } \{0\} \qquad\textbf{(E) } \text{The set of nonnegative integers} </math> | ||
| − | ==Solution== | + | ==Solution 1== |
| − | There are | + | There are four cases we need to consider here. |
| − | Case 1: x is a positive integer. | + | '''Case 1''': <math>x</math> is a positive integer. Without loss of generality, assume <math>x=1</math>. Then <math>f(1) = 1 - 1 = 0</math>. |
| − | Case 2: x is a positive fraction. | + | '''Case 2''': <math>x</math> is a positive fraction. Without loss of generality, assume <math>x=\frac{1}{2}</math>. Then <math>f\left(\frac{1}{2}\right) = 0 - 0 = 0</math>. |
| − | Case 3: x is a negative integer. | + | '''Case 3''': <math>x</math> is a negative integer. Without loss of generality, assume <math>x=-1</math>. Then <math>f(-1) = 1 - 1 = 0</math>. |
| − | Case 4: x is a negative fraction. | + | '''Case 4''': <math>x</math> is a negative fraction. Without loss of generality, assume <math>x=-\frac{1}{2}</math>. Then <math>f\left(-\frac{1}{2}\right) = 0 - 1 = -1</math>. |
| − | Thus the range of function f is <math>\boxed{\textbf{(A) } \{-1, 0\}}</math> | + | Thus the range of the function <math>f</math> is <math>\boxed{\textbf{(A) } \{-1, 0\}}</math>. |
| − | |||
| − | |||
==Solution 2== | ==Solution 2== | ||
| − | It is easily verified that when <math>x</math> is an integer, | + | It is easily verified that when <math>x</math> is an integer, <math>f(x)</math> is zero. We therefore need only to consider the case when <math>x</math> is not an integer. |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | When <math>x</math> is | + | When <math>x</math> is positive, <math>\lfloor x\rfloor \geq 0</math>, so |
| − | <cmath>f(x)=\lfloor| | + | <cmath>\begin{split}f(x)&=\lfloor|x|\rfloor-|\lfloor x\rfloor| \\ |
| − | + | &=\lfloor x\rfloor-\lfloor x\rfloor \\ | |
| − | + | &=0\end{split}</cmath> | |
| − | + | When <math>x</math> is negative, let <math>x=-a-b</math> be composed of integer part <math>a</math> and fractional part <math>b</math> (both <math>\geq 0</math>): | |
| + | <cmath>\begin{split}f(x)&=\lfloor|-a-b|\rfloor-|\lfloor -a-b\rfloor| \\ | ||
| + | &=\lfloor a+b\rfloor-|-a-1| \\ | ||
| + | &=a-(a+1)=-1\end{split}</cmath> | ||
| + | Thus, the range of f is <math>\boxed{\textbf{(A) } \{-1, 0\}}</math>. | ||
| − | Note: One could solve the case of <math>x</math> as a negative non-integer this way: | + | ''Note'': One could solve the case of <math>x</math> as a negative non-integer in this way: |
| − | <cmath>f(x)=\lfloor|x|\rfloor-|\lfloor x\rfloor| | + | <cmath>\begin{split}f(x)&=\lfloor|x|\rfloor-|\lfloor x\rfloor| \\ |
| − | + | &=\lfloor -x\rfloor-|-\lfloor -x\rfloor-1| \\ | |
| − | + | &=\lfloor -x\rfloor-(\lfloor -x\rfloor+1) = -1\end{split}</cmath> | |
==See Also== | ==See Also== | ||
Revision as of 19:54, 17 February 2019
Contents
Problem
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
?
Solution 1
There are four cases we need to consider here.
Case 1:
is a positive integer. Without loss of generality, assume
. Then
.
Case 2:
is a positive fraction. Without loss of generality, assume
. Then
.
Case 3:
is a negative integer. Without loss of generality, assume
. Then
.
Case 4:
is a negative fraction. Without loss of generality, assume
. Then
.
Thus the range of the function
is
.
Solution 2
It is easily verified that when
is an integer,
is zero. We therefore need only to consider the case when
is not an integer.
When
is positive,
, so
When
is negative, let
be composed of integer part
and fractional part
(both
):
Thus, the range of f is
.
Note: One could solve the case of
as a negative non-integer in this way:
See Also
| 2019 AMC 10B (Problems • Answer Key • Resources) | ||
| Preceded by Problem 8 |
Followed by Problem 10 | |
| 1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 • 16 • 17 • 18 • 19 • 20 • 21 • 22 • 23 • 24 • 25 | ||
| All AMC 10 Problems and Solutions | ||
These problems are copyrighted © by the Mathematical Association of America, as part of the American Mathematics Competitions.