If two positive integers $p$ and $q$ are written as $p = a^2 b^3$ and $q = a^3 b$, where $a$ and $b$ are prime numbers, find $\text{HCF}(p, q)$ and $\text{LCM}(p, q)$.
Step-by-Step Solution
- $\text{HCF}(p, q) =$ product of lowest powers of common primes $= \mathbf{a^2 b}$.
- $\text{LCM}(p, q) =$ product of highest powers of all primes $= \mathbf{a^3 b^3}$.