Is Floor(x)/y Always Equal to Floor(x/y) When y Is an Integer?

  • Context: Graduate 
  • Thread starter Thread starter jaw088
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around the mathematical relationship between the floor function applied to the ratio of two numbers, specifically examining whether \(\left\lfloor \frac{\left\lfloor x \right\rfloor}{y} \right\rfloor\) is always equal to \(\left\lfloor \frac{x}{y} \right\rfloor\) when \(y\) is an integer. The scope includes theoretical exploration and mathematical reasoning.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • John proposes to prove the equality of the two floor functions under the condition that \(y\) is an integer and both \(x\) and \(y\) are positive.
  • One participant suggests that the proof may require \(x\) and \(y\) to be positive integers, specifically noting \(y \geq 2\).
  • Another participant recommends assuming the opposite of the desired equality to find a logical contradiction, indicating that this could lead to a proof of equality.
  • A different approach involves expressing \(x\) as \(\left\lfloor x \right\rfloor + a\) where \(0 \leq a < 1\), and analyzing how this affects the floor function in the context of the proposed equality.
  • One participant raises the issue of why \(y\) must be an integer, suggesting that if \(y\) were a real number, it could lead to different outcomes, and proposes breaking the analysis into cases based on the relationship between \(y\) and \(\lfloor x \rfloor\).

Areas of Agreement / Disagreement

Participants express differing views on the conditions necessary for the equality to hold, particularly regarding the positivity of \(x\) and \(y\) and the implications of \(y\) being an integer. The discussion remains unresolved, with multiple competing approaches and no consensus on the proof.

Contextual Notes

Some assumptions about the positivity of \(x\) and \(y\) are made, and the implications of \(y\) being an integer versus a real number are explored, but these aspects remain unresolved in the context of the proof.

jaw088
Messages
2
Reaction score
0
Hi,

I'm trying to proof that:
[tex]\left\lfloor \frac{\left\lfloor x \right\rfloor}{y} \right\rfloor= \left\lfloor \frac{x}{y} \right\rfloor[/tex] for the specific case where y is an integer.

At the recommendation of somebody who I discussed the problem with, here's how I started:

[tex]\lfloor x \rfloor \le x < \lfloor x \rfloor + 1[/tex]
[tex]\frac{\lfloor x \rfloor}{y} \le \frac{x}{y} < \lfloor \frac{x}{y} \rfloor + \frac{1}{y}[/tex]
[tex]\left\lfloor \frac{\lfloor x \rfloor}{y} \right\rfloor \le \left\lfloor \frac{x}{y} \right\rfloor[/tex]

And from there, prove that the case of [tex]\left\lfloor \frac{\lfloor x \rfloor}{y} \right\rfloor < \left\lfloor \frac{x}{y} \right\rfloor[/tex] is impossible, leaving [tex]\left\lfloor \frac{\lfloor x \rfloor}{y} \right\rfloor = \left\lfloor \frac{x}{y} \right\rfloor[/tex]

Any ideas?

Thanks for your help,
John
 
Physics news on Phys.org
Don't you also need x and y to be positive for this to work?
 
Yes, x and y are both positive.

Sorry about that.

Even more specifically, in the application I'm using it, y >= 2.
 
Last edited:
Well if you want to prove it's impossible you can try assuming it's possible and looking for a logical contradiction that arises.

I guess you could start by multiplying through by y and get [itex] \left \lfloor \lfloor x \rfloor \rfloor} \right\rfloor < \left\lfloor x \right\rfloor [/itex]
Then since x is a positive integer you can say that floor(floor(x))=floor(x), this is true since floor(x) leaves the integral part and taking the floor of that is like taking the integral part of the integer leaving the integer.

There is your contradiction, proving that the two statements are equal.
 
I was thing that if you set
[tex]\left\lfloor\ x \right\rfloor+a=x[/tex]

where [tex]0 \leq a < 1[/tex]

then with substitution into

[tex]\left\lfloor \frac{\left\lfloor x \right\rfloor}{y} \right\rfloor= \left\lfloor \frac{x}{y} \right\rfloor[/tex]

you would get

[tex]\left\lfloor \frac{\left\lfloor x \right\rfloor}{y} \right\rfloor= \left\lfloor \frac{\left\lfloor\ x \right\rfloor+a}{y} \right\rfloor[/tex]

switch it up a bit

[tex]\left\lfloor \frac{\left\lfloor x \right\rfloor}{y} \right\rfloor= \left\lfloor \frac{\left\lfloor\ x \right\rfloor}{y} +\frac{a}{y}\right\rfloor[/tex]

since a is bounded in the interval [tex]0 \leq a < 1[/tex] (by definition) than the the the second term [tex]\frac{a}{y}[/tex] will always be a smaller decimal than needed to raise the value of the floor function. basically what i mean by that is
[tex]\left\lfloor \left\lfloor\ x \right\rfloor +a\right\rfloor - \left\lfloor\ x \right\rfloor \neq 1[/tex]
because obviously
[tex]\left\lfloor \left\lfloor\ x \right\rfloor +a\right\rfloor - \left\lfloor\ x \right\rfloor = 0[/tex]
the the second term will always be negligible in the equation so it can be removed giving you the equivalence. The proof seems pretty clearly stated to me except for the second to last step where i said you can phase out the second terms. I'm having a little trouble putting that step into words but intuitively i feel strongly that it works. it just needs someone more articulate than me to come along and fix it up. good luck.
 
Maybe some insight can be gained from considering why y needs to be an integer. If y is allowed to be a real number, we could pick some [itex]0< \epsilon < a < 1[/itex] and use [itex]y = \lfloor x \rfloor + \epsilon[/itex]. Then, we have

[tex]\left\lfloor \frac{\left\lfloor x \right\rfloor}{y} \right\rfloor= \left\lfloor \frac{\left\lfloor x \right\rfloor}{\lfloor x \rfloor + \epsilon} \right\rfloor=0[/tex]

but

[tex]\left\lfloor \frac{\left\lfloor\ x \right\rfloor+a}{y} \right\rfloor= \left\lfloor \frac{\left\lfloor x \right\rfloor+a}{\lfloor x \rfloor + \epsilon} \right\rfloor=1[/tex]

So, assuming y is an integer, I'd break it into three cases: [itex]y<\lfloor x \rfloor[/itex], [itex],y=\lfloor x \rfloor[/itex] and [itex]y>\lfloor x \rfloor[/itex]. The second and third cases are easy to see, but what about the first case?
 
Last edited by a moderator:

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
2
Views
2K