By we denote the largest integer that is smaller or equal to and by we denote the smallest integer that is greater or equal to .
For every given pair of positive natural numbers find all natural numbers with
By we denote the largest integer that is smaller or equal to and by we denote the smallest integer that is greater or equal to .
For every given pair of positive natural numbers find all natural numbers with
We set and . We thus have to find all nonnegative integers such that there exist integers and satisfying
By substituting we get the equivalent inequalities
Since all variables are integers we also have the equivalent relations
Taking into account
and
we see that the desired values of are exactly those satisfying
for some . From (1) we conclude that for some we must have , that is . Thus it suffices to consider the following cases:
* If , (1) means and therefore all natural numbers are solutions.
* If , (1) means and this is always satisfied for . Hence all natural numbers are solutions.
* If , (1) means and therefore necessarily . Such a can be found if and only if , which are all the solutions in this case. (Note that for all integers are solutions in accordance with the above.)
* For and there is no solution.