Question 35
Find all pairs $(n, p)$ of positive integers such that $p$ is prime and
$$
1+2+\cdots+n=3 \cdot\left(1^{2}+2^{2}+\cdots+p^{2}\right)
$$
$$
1+2+\cdots+n=3 \cdot\left(1^{2}+2^{2}+\cdots+p^{2}\right)
$$
Math Olympiad Vault · MathNet 2021 — Part 07