I need help proving the following two formulas:
$$\gcd\left(\frac{a_1}{b_1}, \frac{a_2}{b_2}, \dots, \frac{a_n}{b_n}\right) = \frac{\gcd(a_1, a_2, \dots, a_n)}{\operatorname{lcm}(b_1, b_2, \dots, b_n)},$$
$$\operatorname{lcm}\left(\frac{a_1}{b_1}, \frac{a_2}{b_2}, \dots, \frac{a_n}{b_n}\right) = \frac{\operatorname{lcm}(a_1, a_2, \dots, a_n)}{\gcd(b_1, b_2, \dots, b_n)}.$$
where $\gcd(a_i, b_i) = 1$.
I've managed to prove them for $n = 2$, but can't find the way to do it in more general case.
To be clarify, I assume that $A$ is a divisor of $B$, and that $B$ is a multiple of $A$, if $B/A$ is an integer, where $A$ and $B$ are non-zero rational numbers (e.g. $1/14$ is a divisor of $3/7$, and $3/7$ is a multiple of $1/14$, because $3/7 \div 1/14 = 6$ is an integer).