# Factorial vs Square

Number Theory Level 3

$(\color{red}n-1)!+1=\color{red}n^2$

Find the sum of all positive integers $$n$$ such that the above equation is fulfilled.

×