I'm trying to make sense of the following proof that $\displaystyle \text{lcm}(m, n) = \prod_{i}p_i^{\max(e_i, f_i)}$
Proof: if $p_i^{e_i} \| m$ and $p_i^{f_i} \parallel n$ and $p_i^x \parallel \text{lcm} (m,n)$ then $x \ge \max \{ e_i,f_i \}$ since if not, $x < \max \{ e_i,f_i \}$ then either $m \nmid \text{lcm} (m,n)$ or $n \nmid \text{lcm} (m,n)$. Thus, $x \ge \max \{ e_i,f_i \}$. Since we need $\text{lcm} (m,n)$ to be as small as we can, so $x= \max \{ e_i,f_i \}$.