Proof
We prove the first equality. The proof of the second is left to the reader.
We certainly have:
ordp(a)and
ordp(b).
Hence the right-hand side of the equality is a common divisor of a
and b.
On the other hand, if ordp(ggd(a,b)) = r
> 0
for some prime p,
then
p divides both a and b
so that we can conclude that
r
ordp(a) en r
ordp(b).
Hence
equals gcd(a,b).