In the actual case, I have an equation stated by
$$\left\lfloor \frac{64GB}{r} - 4 \right\rfloor = k$$
where $64 GB = 64 \cdot 2^{30}$, and $k > 0$.
I need to solve for $r$. Now, I know how to deal with this when no floor function is involved. However, when attempting to consider the floor function where it makes sense, I feel that this is, well, garbage.
$$\left\lfloor {64 GB \over r} \right\rfloor = k + 4$$
$$\frac 1r = \frac{k+4}{64GB} \qquad \text{(This is not true, it's not equal.)}$$
$$r = \left\lfloor {64 GB \over (k + 4)} \right\rfloor$$
Before applying the floor function, I end up with an integer, plus a fraction $> 0.5$, which is uncomfortably large. Granted the previous step shows just a small difference, but there is no equality. When multiplying with a large value (as $64 GB$ is), the inequality is multiplied accordingly.
How are such equations approached correctly?