Let $p$ be a prime and let $q$ be a prime that divides $p − 1.$
(a) Let $a \in F_p$ and let $b = a^{\frac{p−1}{q}}$. Prove that either $b = 1$ or else $b$ has order $q.$ (Recall that the order of $b$ is the smallest $k \ge 1$ such that $b^k = 1$ in $F_{p}.$
(b) Suppose that we want to find an element of $F_{p}$ of order $q.$ Using (a), we can randomly choose a value of $a \in F_{p}$ and check whether $b = a^{\frac{p−1}{q}}$ satisfies $b \neq 1$. How likely are we to succeed? In other words, compute the value of the ratio $$\frac{a \in F_{p} : a^{\frac{p−1}{q}} \neq 1}{F_{p}}$$