3

I think there is no integer $n$ for which the above expression is an integer, but I am not sure.

pancini
  • 19,216
  • 2
    For $n=0$ the expression is an integer – Brenton Apr 26 '16 at 21:09
  • 6
    It is an integer for $n=5,7,8,9,11,13,14,15,17,19,20,\dots$. Indeed it is an integer for all $n\ge5$ such that $n+1$ is not prime (which are the integers for which $n+1$ divides $n!$. – Greg Martin Apr 26 '16 at 21:09

1 Answers1

6

With a little bit of work, you can show that

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

so any $n$ for which $(n+1)$ divides $n!$ is a solution.

See Greg Martin's comment above.