I got a little trouble solving equations that involve floor function in an efficient way.
For example :
$$ \left\lfloor\frac{x+3}{2}\right\rfloor = \frac{4x+5}{3} $$
In the one above, I get that you basically let $$ \frac{4x+5}{3} = k $$ and then inserting $k$ in the left side, take $k = 8l, 8l+1$, and so on and test it.
If there's a better solution to the one above plese tell me.
My main problem is when it comes down to functions that have multiple floors such as :
$$ \left\lfloor \frac{x+1}{3}\right\rfloor + \left\lfloor\frac{2x+5}{6}\right\rfloor = \frac{3x-5}{2} $$
Using the same method for each of them and then intersecting the solutions should give me the right answer but is there a faster way to solve equations like this ?