Problem

Source: CWMI 2017 Q1

Tags: number theory



Let $p$ be a prime and $n$ be a positive integer such that $p^2$ divides $\prod_{k=1}^n (k^2+1)$. Show that $p<2n$.