I'm trying to prove that if there are to numbers $n,m$ (natural numbers), and their smallest common multiple is $k$, so that $k = n·i$ and $k = m·j$ for some $i,j$ natural numbers, any common multiple $q$ of $n,m$ is a multiple of $k$, so that there exists a $g$ so that $q=k·g$.
Logically it seems correct, but I can't seem to prove it... Any help?
We know that $n$ and $m$ divide both $k$ and $q$.
Since $k$ is the lowest common multiple, $k \leq q$.
If $k = q$ then the result is obvious.
Let's assume that $k < q$
Then we can do the integer division between $k$ and $q$:
$q = t·k + r$ so that $0 \leq r < k$.
Since $n$ and $m$ divide $q$ and $k$ then they divide $q - t·k = r$. Therefore $n$ and $m$ divide $r$. But $r < k$, and $k$ is the lowest common multiple.
Therefore $r = 0$ what means that $q = t·k$ for some integer $t$.