(GCD and LCM by exponents)For a prime $p$ and a positive integer $n$, write $v_p(n)$ for the exponent of $p$ in the prime factorization of $n$. Then $v_p(\gcd(a,b))=\min(v_p(a),v_p(b))$ and $v_p(\operatorname{lcm}(a,b))=\max(v_p(a),v_p(b))$. Hence $\gcd(a,b)\cdot\operatorname{lcm}(a,b)=ab$, and if $g=\gcd(a,b)$ then $a=ga'$, $b=gb'$ with $\gcd(a',b')=1$ and $\operatorname{lcm}(a,b)=ga'b'$.
← 返回练习 573