Don't really understand the solution
How do we know $x+a>n/p$?
Since $a>\frac{n-p^2}{2p}$ and $x>\frac{n+p^2}{2p}$, we have that$$x+a>\frac{n-p^2}{2p}+\frac{n+p^2}{2p}=\frac np.$$
Copyright © 2021 JogjaFile Inc.
Since $a>\frac{n-p^2}{2p}$ and $x>\frac{n+p^2}{2p}$, we have that$$x+a>\frac{n-p^2}{2p}+\frac{n+p^2}{2p}=\frac np.$$