I have the equation:
\begin{equation} 1 - (1 - p)(1 - p^2)^{n - 2} = f(n) \end{equation}
where $p$ is a probability (thus $0\le p\le 1$ and, in fact, the l.h.s. of the equation is a probability function on $p$), and $f(n)$ is some function of $n$ such that $0\le f(n)\le 1$; it can be any function. If you want, you can instantiate it to, for example, $f(n)=1/n$. Lastly, $n$ can be any natural value larger than or equal to $2$.
I would like to solve the equation above for $p$. Since I could not manage to find an exact solution myself, I decided to find an upper bound. The value of $p$ that satisfies the equation above is such that
\begin{align} p &\le \sqrt{1 - \exp{\left(\frac{\log{(1 - f(n))}}{n - 1}\right)}} \\ &= \sqrt{1 - \sqrt[n-1]{1 - f(n)}} \end{align}
The proof is short \begin{align*} f(n) &= 1 - (1 - p)(1 - p^2)^{n - 2} \\ 1 - f(n) &= (1 - p)^{n - 1}(1 + p)^{n - 2} \\ \log{(1 - f(n))} &= (n - 1)\log{(1 - p)} + (n - 2)\log{(1 + p)} \\ &\le (n - 1)\log{(1 - p)} + (n - 1)\log{(1 + p)} \end{align*} It follows that \begin{equation*} \frac{\log{(1 - f(n))}}{n - 1} \le \log{(1 - p)} + \log{(1 + p)} = \log{(1 - p^2)} \end{equation*} and thus the inequality above after a few more steps.
How can I find an exact solution of the equation for $p$? If exact solutions are too difficult to obtain, how can I obtain tighter upper bounds?
Thanks!