Number theory - greatest integer function
Greatest Integer Function properties:
1. x-1 < [x] <= x < [x] + 1
2. for any integer 'n', [n+x] = n + [x]
3. [-x]
3a. [-x] = -[x] - 1 if x is not integer
3b. [-x] = -[x] if x is integer
4. [x + y] >= [x] + [y]
4a. In general: [x + y + z ... -w] >= [x] + [y] + [z] -[w]
5. [xy] >= [x][y] and generalize like above
Ex1:
Solve for x.
2[x] = x + 2{x}
Where [] => greatest integer function and {} = fractional part function.
Solution:
Let x = p + q where p = [x] and q = {x} where 0 <= q < 1.
2p = p + q + 2q = p + 3q => p = 3q
Only 3 values of q can give an integer =>
q = 0 => p = 0
q = 1/3 => p =1
q = 2/3 => p = 2
So 3 solutions:
0+0, 1 + 1/3, 2 + 2/3
x = 0,4/3,8/3
Ex2:
36{x}^2 = 6[x]x
Solution:
Let x = p + q where p = [x] and q = {x} where 0 <= q < 1.
=> 36q^2 = 6p(p + q)
=> 6q^2 = p^2 + pq
=> p^2 + pq - 6q^2 = 0
Factorize to get:
p^2 + 3pq - 2pq - 6q^2 = 0
p(p + 3q) -2q(p + 3q) = 0
=> (p - 2q)(p + 3q) =0
p = 2q or p = -3q
Case 1:
p = 2q
Since q is positive:
q = 0 => p = 0
q = 1/2 => p = 1
are the only 2 solutions here.
Case 2:
p = -3q
q = 0 => p = 0
q = 1/3 => p = -1
q = 2/3 => p = -2
Finally:
x = 0+0, 1+1/2, -1+1/3,-2+2/3 = 0, 3/2, -2/3, -4/3 => 4 solutions.
Ex3.
Find number of real solutions for:
[x/2] + [2x/3] = x
Solution:
Let
1. must be an integer
Both floor-values are integers, so their sum is an integer; hence itself must be an integer.
2. Reduce the problem modulo 6
Write every integer as
Compute the two floors:
Adding and setting equal to :
3. Solve for each remainder
| Required | |||
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 1 | 0 | 0 | 1 |
| 2 | 1 | 1 | 0 |
| 3 | 1 | 2 | 0 |
| 4 | 2 | 2 | 0 |
| 5 | 2 | 3 | 0 |
4. Construct the solutions
Insert each admissible into :
No negative satisfies the table, so there are no negative solutions.
5. Verification
Each candidate satisfies the original equation (quick check: , , etc.).
Comments
Post a Comment