The problem I am attempting to solve is 
the maximising bit. The solution talks about how we should look at adjacent terms for when $p_N≈ p_{N-1} $. However, how do I know that I am not finding a minimum or another maximum? Or ever further, why does this point need to have close points near it?