The problem is from Ex.1.17 of V.2 of Shoup's "A Computational Intro to Number Theory and Algebra" book:
Let a,b,c be positive integers satisfying: $\gcd(a,b)=1$ and $c\ge(a-1)(b-1)$. Show that there exists non-negative $s,t$ such that $c=as+bt$.
$\gcd(a,b)=1 \iff \exists s,t\in \Bbb{Z}$ s.t. $as+bt=1$
Let $c=ab-a-b+p$ where $p\gt0$
I considered: $c=ab-a-b+p=ab-a-b+p(as+bt)$
I also tried: $c=ab-a-b+p=(ab-a-b+p)(as+bt)$
and perhaps by some clever factoring into a $(aS + bT)$ form it can be shown that $S,T$ can be both non-negative for some $s,t$ satisfying $as+bt=1$
Perhaps this is not the right approach... Could any one help?
In the search for a solution online, I've found a homework+solution file reposing a similar exercise from V.1 of Shoup's book with a relaxed lower bound for $c$:
For positive integers $a,b$ s.t. $\gcd(a,b)=1$, any $c\ge ab$ could be expressed as $c=as+bt$ for some non-negative integers $s, t$. (Basically $ab$ instead of $(a-1)(b-1)$ as a lower bound for $c$)
The given solution in that pdf file is not very clear to me. It uses the smallest positive $s_1$ that satisfies $as_1 + bt=1$ (for some corresponding $t$) to construct a $c$: $c=as_1+bt_1$ and shows that $t_1\gt 0$. I don't understand how one fixed $s_1$ can be used to construct all integers $\ge ab$.
What did I miss?