Problem

Source: Middle Europe Mathematical Olympiad 2009 TST First day, Fourth problem

Tags: quadratics, Diophantine equation, number theory unsolved, number theory



Prove that there are infinite many positive integers $ n$ such that $ n^2+1\mid n!$, and infinite many of those for which $ n^2+1 \nmid n!$.