Change of plan:
Basic tenet: If $\gcd(k,m) = 1$ then $k|N \iff k|Nm$.
Proof: If $k|N \implies k|Nm$ is obvious.
If $k|Nm$ let $p$ be prime so that $p|k$. Then $p|N$ or $p|m$. But we know $p \not \mid m$ so $p|N$. Let $k' = k/p$ and $N' = N/p$. We have $k'|N'm$ and $p|N$.
Do the same argument for $q|k'$ where $q$ is prime (note: it's possible that $p = q$). Then we get $\overline k = k'/q$ and $\overline N = N'/q$ and we have $\overline k|\overline Nm$ and $pq|N$.
Repeat inductively for every prime factor of $k$.
In the final step we'll conclude $1|m$ and $k = pqr.....|N$.
...
Then for any $a,b,c$ where $c|ab$ we have $c|ab = a\frac{b}{\gcd(b,c)}\gcd(b,c)$ and therefore $c|a\gcd(b,c)$ (because $\frac{b}{\gcd(b,c)}$ and $c$ are coprime). Always.
$c|ab \iff c|a\gcd(b,c)$ is always true.
And if $\gcd(b,c) = 1$ then $c|ab \iff c|a$.
=====
Let $c = \prod p_i^{k_i}$ be the prime factorization of $c$.
Then $c|ab$. But $\gcd(c,b) = 1$ so none of the prime factors of $c$ divide $b$. So they only divide $a$. so $c=\prod p_i^{k_i}|a$.