I've got this equation to solve
$ \left\lfloor{\frac {x + 1}{x+7}}\right\rfloor = \left\lfloor{\frac {x }{x+3}}\right\rfloor $
It's not very hard to solve it if using properties of rational functions but I wonder if it can be solved using only arithmetics. Anyone got idea?
If I were trying to find the most elementary way, I think first I'd rewrite as
$$\left\lfloor 1+\frac{-6}{x+7}\right\rfloor = \left\lfloor 1+\frac{-3}{x+3} \right\rfloor.$$
Then the $1$'s come outside and cancel, leaving
$$\left\lfloor \frac{-6}{x+7}\right\rfloor = \left\lfloor \frac{-3}{x+3} \right\rfloor.$$
Then I'd ask myself, "When are both sides equal to $0$?" which gives two inequalities:
$$0\leq \frac{-6}{x+7} <1 \mbox{ and } 0\leq \frac{-3}{x+3} <1$$
Then I'd solve these inequalities and see where the solution sets overlap.
Then I'd repeat by answering "When are both sides equal to $1$?" And "When are both sides equal to $-1$?" That should turn out to be most of the solution set.
There might be some other pieces, but work out "When are both sides equal to $k$?" and you should get a sequence of little intervals.