Bunuel
If x is an integer, how many solutions exist for the equation \(|x| - |x - 1| = |x - 2|!\) ?
A. 0
B. 1
C. 2
D. 3
E. 4
Two approaches to solving this question
Approach 1: Using Number line
Let's plot x on a number line -
------------------------- x -------------------------
x - 1 will be a point one unit left of x on the number line
-------------- x-1 --------- x -------------------------
- |x| → denotes the distance of x from 0.
- |x-1| → denotes the distance of (x-1) from 0.
- |x| - |x-1| → denotes the difference of distance of x from 0 and the distance of x-1 from 0. This distance will always be equal to 1 (as x-1 lies one unit left of x).
. Also, note that this distance has to be positive as factorials are always positive. Hence, (x-1) must be closer to 0 than x is. In other words, x must be positive.
Given:
|x| - |x-1| = |x-2|!
Therefore we can conclude that
|x-2|! = 1
a! = 1 for the below values of a
Case 1: |x-2| = 0
x = 2
Case 2: |x-2| = 1
a) x-2 = 1 → x = 3
b) x-2 = -1 → x = 1
Therefore possible values of x = {1,2,3}
Approach 2: Using even odd rule
x and x-1 represent consecutive integers. Hence the difference \(|x| - |x - 1|\) will always be odd.
Therefore |x-2|! = 1
Case 1: |x-2| = 0
x = 2
Case 2: |x-2| = 1
a) x-2 = 1 → x = 3
b) x-2 = -1 → x = 1
Therefore possible values of x = {1,2,3}
Option D