An experiment is repeated, and the first success occurs on the 8th attempt. What is the success probability for which this is most likely to happen?
So we want to find $p$ between $0$ and $1$ which maximizes $(1-p)^{7}p$. To do this we could take the derivative and find all the critical points:
$$(1-p)^7 - 7(1-p)^6p = 0$$
But I don't know how to get the roots of this equation by hand. What can I do instead to solve this problem?