I think there is no integer $n$ for which the above expression is an integer, but I am not sure.
Asked
Active
Viewed 79 times
3
-
2For $n=0$ the expression is an integer – Brenton Apr 26 '16 at 21:09
-
6It 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 Answers
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.

GaussTheBauss
- 2,283
-
2
-
1
-
-
1Note that $n+1\mid n!$ iff $n+1$ is not prime (see e.g. here). Cheers! – Bart Michels Apr 26 '16 at 22:44
-