Take a test Sign in 中文
← Exercise 879 →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
Contents · by chapter
Digits (38)
Primes (31)
Fractions, Decimals, and the Floor Function (18)
Divisors, GCD, and LCM (36)
Divisibility (59)
Bases (15)
Modular Arithmetic (42)
Integer Equations (27)

Exercises and their solutions

Exercise 879
For how many positive integers $n\le30$ is $n!$ evenly divisible by $1+2+\cdots+n$?
← Back to Problem 879
Solution
  1. $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.
  2. 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.
  3. $n+1\in\{3,5,7,11,13,17,19,23,29,31\}$: $10$ failures.
  4. So $30-10=\boxed{20}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year