I'm actually having trouble understanding the above corollary. Can anyone please provide a numerical example of that corollary? Thank You So Very Much in advance.
Corollary If $a=\prod p_i^{a_i}$ and $b=\prod p_i^{b_i}$ where the $p_i$ are distinct primes, then $\gcd(a,b)=\prod p_i^{\min(a_i,b_i)}$. The LCM is $\prod p_i^{\max(a_i,b_i)}$ and the product of the last two expressions is $ab$.
Certainly: consider $a=48=2^4\cdot 3$ and $b=40=2^3\cdot 5$. Then we let $p_1=2, p_2=3, p_3=5$ and observe that $a_1=4, a_2=1, a_3=0$ and $b_1=3, b_2=0, b_3=1$. Your corollary then tells us that \begin{align*} \gcd(48,40) &=\gcd(a,b) \\ &= \prod p_i^{\min(a_i,b_i)} \\ &= p_1^{\min(a_1,b_1)}\cdot p_2^{\min(a_2,b_2)}\cdot p_3^{\min(a_3,b_3)} \\ &= 2^{\min(4,3)}\cdot 3^{\min(1,0)}\cdot 5^{\min(0,1)} \\ &= 2^3\cdot 3^0 \cdot 5^0 \\ &= 8, \end{align*}
Using a similar method we determine that
\begin{align*} lcm(48,40) &=lcm(a,b) \\ &= \prod p_i^{\max(a_i,b_i)} \\ &= 2^4\cdot 3^1 \cdot 5^1 \\ &= 240. \end{align*}
We can then observe that $$ab=48\cdot 40=1920=8\cdot 140=\gcd(48,40)\cdot lcm(48,40)=\gcd(a,b)\cdot lcm(a,b).$$
Let me know if anything needs clarifying (and if anyone knows the command that Latex recognises as a math operator for lcm).