I am trying to prove the following: Let l = lcm$(a,b)$ and write l=pa and l=qb. Prove that gcd (p,q) = 1.
One of my students wrote his thoughts below.
I know it is probably not that difficult, I just think I am not seeing something.
Thanks for your help.
Source: (from Cambridge's Math HL Discrete Option, page 23)

Let $d=\gcd(p,q)\ge 1$ then $p=dp'$ and $q=dq'$
Now $l=dp'a=dq'b$
so $d$ divides $l\qquad$ i.e. $\quad l'=\frac ld$ is an integer.
But $l'=p'a=q'b$ so it is a common multiple of $a$ and $b$
By definition of the lcm, then $l'\ge l\iff\frac ld\ge l\iff d\le 1$, so $d=1$.