Adjustment This proof is flawed.
I want to ask something about the coin problem with two coins. Let $a,b$ be to numbers in $\mathbb{N} \setminus \{0\}$ (elsewhere I include zero) which have no prime factors in common. I will write $$ S_{a,b} \quad = \quad a \mathbb{N} + b \mathbb{N} $$ Now we look for the greatest number $M \in \mathbb{Z}$ that doesn't belong to $S_{a,b}$.
It seems that someone has shown that that $M = ab -a-b$. I didn't know how the proof worked but I wondered if this could be shown by reasoning inductively to product of primes which gives $a$ and $b$. Here below you will find what I tried, I hope that you can help me to finish it.
My attempts
The statement holds if both $a$ and $b$ are empty products, in this case $a=b=1$, so $ab-a-b = -1 $, and every $n \in \mathbb{N}$ can be reached so the equality is true.
Now, if there are are two coprime natural numbers $a,b$ such that $$ \max (\mathbb{N} \setminus S_{a,b}) \quad = \quad ab-a-b $$ Then we add a prime factor. Without loss of generality, we can multiply $a$ by a prime number that does not divide $b$. Now we should ask ourselves the following. $$ \max (\mathbb{N} \setminus S_{pa,b}) \quad \stackrel{?}{=} \quad pab-pa-b $$ This equality can be split up in the following statements:
- $\forall n,m \in \mathbb{N}, \quad pab-pa -b \ \neq \ npa +mb$
- If $ \ k > pab-pa-b \ $ it follows that $k \ = \ n_k a + m_kb$ for some $n_k,m_k \in \mathbb{N }$
To establish the first statement, I remembered that for every combination $n,m \in \mathbb{N}$, we have that $ab-a-b \neq na+mb$. If we multiply by $p$ and add $b(p-1)$ on both sides, we get the $pab-pa-b \ \neq \ mpa + b(na+p-1)$. But I am afraid that this proves anything because the map $n \ \mapsto \ na+p-1$ is doesn't reach every natural number.
For the second one, I tried to solve $k = mpa + nb$ for $m,n \in \mathbb{N}$. To do this I rewrote
$$ k - m(p-1)a \quad = \quad ma+nb $$ This would be solvable by the assumption of the induction if the left side is bigger then $ab-a-b$. We aldready know that $ k > pab -pa -b$. Hence we know
$$ k-m(p-1)a \ > \ pab -pa -b -m(p-1)a \ = \ p(ab-a-ma) + ma -b \ \geq ab-a-b\ $$ as we wished.
I would like to read
- If you know how I could end my proof of the first statement
- If I didn't make any mistakes in the proof of the other one.