The approximation is usually written as $$ p(n) \sim \frac{1}{4n\sqrt{3}}e^{\pi\sqrt{\frac{2n}{3}}} $$
But every graph I've seen makes it look like this is an asymptotic upper bound for $p(n)$. Is that true?
The approximation is usually written as $$ p(n) \sim \frac{1}{4n\sqrt{3}}e^{\pi\sqrt{\frac{2n}{3}}} $$
But every graph I've seen makes it look like this is an asymptotic upper bound for $p(n)$. Is that true?
It might be interesting to note, after having the answer for all $n\ge n_0$ in the comment, that we can easily prove a weaker bound for all $n\ge 1$. In fact, in Tom Apostol's book on analytic number theory, section $14.7$ formula $(11)$, the following upper bound for all $n\ge 1$ for $p(n)$ is proved in a completely elementary way: \begin{equation*} p(n)<\frac{\pi}{\sqrt{6n}}e^{\alpha\sqrt{n}} \quad \text{for all} \;\; n\ge 1 \end{equation*} Here $\alpha=\pi\sqrt{2/3}$.
Edit: The asymptotic formula can be written as follows:
$$ p(n)=e^{\pi\sqrt{\frac{2n}{3}}} \left( \frac{1}{4n\sqrt3} -\frac{72+\pi^2}{288\pi n\sqrt{2n}} +\frac{432+\pi^2}{27648n^2\sqrt3} +O\left(\frac{1}{n^2\sqrt n}\right) \right) $$
This is true. In fact, $$ \frac{{{\rm e}^{\pi \sqrt {2n/3} } }}{{4n\sqrt 3 }}\left(1-\frac{1}{2\sqrt n}\right)< p(n) < \frac{{{\rm e}^{\pi \sqrt {2n/3} } }}{{4n\sqrt 3 }}\left(1-\frac{1}{3\sqrt n}\right) $$ for any $n\ge 1$. This is Theorem $1.3$ of this paper.