I found a question where we need to find the number of values satisfying this equation with the constraint that $x \in (0,1000)$
$$\left\lfloor\frac{x}{2}\right\rfloor+\left\lfloor\frac{x}{3}\right\rfloor+\left\lfloor\frac{x}{5}\right\rfloor=\frac{31x}{30}$$ where $\left\lfloor.\right\rfloor$ represents the floor function of $x$.
Now here its obvious that the right hand side must also give out an integer hence all the multiples of $30$ would work hence giving $30$ solutions between $0$ and $1000$ the result must be in form of $\frac{30k}{31}$ but how do I find such $k$ so as to give the other solution of $x$. Is there any method to solve the equation directly? Any hint would work.