{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}”No results found for “{{searchWords}}”× back to contents
$1+\cdots+n=\frac{n(n+1)}2$ divides $n!$ exactly when $n+1$ divides $2\,(n-1)!$. If $n+1$ is an odd prime, it does not.
Otherwise it does: if $n+1$ is even, then $\frac{n+1}2\le n-1$ is a factor of $(n-1)!$ (for $n\ge3$; $n=1$ also works); if $n+1=uv$ is odd and composite with $3\le u\le v$, then $u$ and $v$ (or $u$ and $2u$ when $u=v$) are different factors of $(n-1)!$. So it fails exactly when $n+1$ is an odd prime.