rd_wingman
New member
- Joined
- Feb 17, 2009
- Messages
- 8
here are a few questions I am having trouble with using the floor function. can anyone help and explain what's going on? thanks
1) Suppose n and d are integers and d is not 0. Prove the following:
a) If d|n, then n = floor(n/d)*d
b) If n = floor(n/d)*d, then d|n
c) Use the floor notation to state a necessary and sufficient condition for an integer n to be divisible by and integer d
2) For any real number x, if x is not an integer, then floor(x) + floor(-x) = -1
3) For all real numbers x, floor([floor(x/2)/2]) = floor(x/4)
1) Suppose n and d are integers and d is not 0. Prove the following:
a) If d|n, then n = floor(n/d)*d
b) If n = floor(n/d)*d, then d|n
c) Use the floor notation to state a necessary and sufficient condition for an integer n to be divisible by and integer d
2) For any real number x, if x is not an integer, then floor(x) + floor(-x) = -1
3) For all real numbers x, floor([floor(x/2)/2]) = floor(x/4)