Suppose we have the null and alternative hypotheses regarding a proportion

$H\_0: p = p\_0$

$H\_a: p \ne p\_0$

If we assume that $p$ takes the value $p\_1$, what sample size do we need for a z-test of the null hypothesis at the $\alpha$ level with power $1 - \beta$?