If $a=q_1^{e_1}q_2^{e_2}...q_r^{e_r}$ and $b=s_1^{f_1}s_2^{f_2},...s_u^{f_u}$ are the factorizations of $a$ and $b$ into primes, then there exist primes $t_1<t_2<...<t_v$ and nonnegative integers $g_i$ and $h_i$ such that $a=t_1^{g_1}t_2^{g_2}...t_v^{g_v}$ and
$b=t_1^{h_1}t_2^{h_2}...t_u^{h_u}$.
Now, prove that g.c.d($a$,$b$)=$t_a^{c_1}t_2^{c_2}...t_v^{c_v}$ where each $c_i$ is the smaller of the corresponding $g_i$ and $h_i$
I really need help knowing where to even start.
HINT: $d = gcd(a,b) \Rightarrow d|a, d|b$ which gives every prime integer divides $d$ also divides both $a$ and $b$. So if $c_i$-th power of a a prime $t_i$ divides $d$ then $c_i$-th power of a a prime $t_i$ divides both $a$ and $b$. Again any prime integer divides both $a$ and $b$ will divides $d$. Hence if $c_i$-th power of a a prime $t_i$ divides both $a$ and $b$ will divides $d$. when we consider greatest common divisor we shall find out the prime integer whose greatest power divides both $a$ and $b$. So the minimum power of $t$ will divide both $a$ and $b$ as well as $d$. Now consider all prime divisors of $d$ to apply the Fundamental theorem of arithmetic.