I'm looking for a proof of this statement. I just don't know how to approach it. I recognize that $z$ has $a$ and $b$ roots of unity, but I can't seem to figure out what that tells me.
If $z \in \mathbb{C}$ satisfies $z^a = 1$ and $z^b = 1$ then $z^{gcd(a,b)} = 1$.