Let $a$ and $b$ be two positive integers such that gcd$(a,b)=1$. Prove that there exists $(x,y)\in\mathbb{Z}\times \mathbb{Z}$ satisfying
(1) $ax-by=1$
(2) $0<x<b$ and $0<y<a$.
I know (1) is by the fact that gcd$(a,b)=1$ but I don't know how to prove (2). Any hint?
The condition (2) cannot be satisfied if $a=1$ or $b=1$, so assume $a>1$ and $b>1$.
Choose $x_0$, $y_0\in\Bbb Z$ with $ax_0-by_0=1$. Then $x_0\not\equiv0\pmod{b}$ and so there is $t\in\Bbb Z$ with $x_1=x_0+tb$ satisfying $0<x_1<b$. Then $ax_1-by_1=1$ with $y_1=y_0-ta$. Then $$y_1=\frac{ax_0-1}{b}$$ so $$\frac{a-1}b\le y_1<\frac{ab-1}{b}$$ from which $0<y_1<a$.