0

I know that we are gonna need to use one of the identities that the $\gcd$ is equal to but I can't remember one that would be useful for this problem. Any help?

user63342
  • 433

1 Answers1

1

Just note that a common divisor $d$ of $(n+1)!+1$ and $n!+1$ divides also $$ (n+1) (n!+1) - ((n+1)!+1) = (n+1)! + n+1 - (n+1)! - 1 = n. $$ And then $\gcd(n!+1, n ) = 1$, as $n!+1$ divided by $n$ leaves remainder $1$.