Welcome to Westonci.ca, the place where your questions are answered by a community of knowledgeable contributors. Join our platform to connect with experts ready to provide detailed answers to your questions in various areas. Join our Q&A platform to connect with experts dedicated to providing accurate answers to your questions in various fields.
Sagot :
The greatest integer function returns the largest integer smaller than the number you provide it. That is, if n ≤ x < n + 1, where n is an integer, then the "greatest integer of x" is [x] = n.
• Let n be even. Then we can write n = 2k for some integer k ≥ 0. Now,
[n/2] = [k] = k
while
[-n/2] = [-k] = -k
so that
[n/2] - [-n/2] = 2k = n
• Let n be odd. Then n = 2k + 1 for some integer k ≥ 0. Every odd integer occurs between two even integers, so that
n - 1 < n < n + 1
or equivalently,
2k < n < 2k + 2
so that
k < n/2 < k + 1
It follows that [n/2] = k.
Similarly, if we negative the previous inequality, we have
-k > -n/2 > -(k + 1), or -k - 1 < -n/2 < -k
which means [-n/2] = -k - 1.
So we make the same conclusion,
[n/2] - [-n/2] = k - (-k - 1) = 2k + 1 = n
Your visit means a lot to us. Don't hesitate to return for more reliable answers to any questions you may have. We hope our answers were useful. Return anytime for more information and answers to any other questions you have. Westonci.ca is your trusted source for answers. Visit us again to find more information on diverse topics.