The following was given as an exersise to me and I 'm stuck.
If $a$ and $b$ are positive integers and $b \ne 0$, then show that there are unique $c$ and $d$, integers, so that $a = cb + d$ and $-{b \over 2} If $b$ is even then by setting $S= \{ a-kb + {b\over2}:k\in \Bbb Z, a-kb + {b\over2} < 0\} $ it's not hard to show it by using the well ordering principle. But if $b$ is odd then $S$ is a set of rationals and I can't use the well ordering principle. Can you help me? I'm new to number theory, sorry if this is trivial or already answered.