Multiplying a floor function

655 Views Asked by At

b and y are integers. Is it valid to multiply like this?

$ \left \lfloor \frac{lcm(b,y)}{b} \right \rfloor * gcd(b,y) = \left \lfloor \frac{by}{b} \right \rfloor = y$

1

There are 1 best solutions below

0
On BEST ANSWER

Note that the least common multiple of $b$ and $y$ is a multiple of $b$, so your first fraction is an integer, and the floor function does nothing:

$$\left\lfloor\frac{\operatorname{lcm}(b,y)}b\right\rfloor=\frac{\operatorname{lcm}(b,y)}b\;.$$

Thus, you’re really just calculating

$$\frac{\operatorname{lcm}(b,y)}b\cdot\gcd(b,y)=\frac{by}b=y\;.$$