Determine when $\frac{n!-1}{3n+1}$ is an integer

94 Views Asked by At

I want to find $n$ so that $\frac{n!-1}{3n+1}$ is an integer. Assume that $3n+1$ is prime (there are only finitely many solutions where $3n+1$ is composite).