Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 1.3.28 ($ \sum_{k=1}^n k$ divides $\prod_{k=1}^n k$ iff $n+1$ is composite)
Exercise 1.3.28 ($ \sum_{k=1}^n k$ divides $\prod_{k=1}^n k$ iff $n+1$ is composite)
Suppose that . Show that the sum of positive integers not exceeding divides the product of the positive integers not exceeding if and only if is composite.
Answers
Proof. Let be the sum of positive integers not exceeding , and the product of the positive integers not exceeding , where . Then
-
Suppose that , so that
- If is odd, then is even, where , thus is composite.
-
If is even, then
thus
Here , thus
If was a prime, then , for some integer such that , and so . This is absurd, therefore is composite.
-
Conversely, suppose that is composite. Therefore . If , then , so we may suppose .
By problem 27, where is replaced by , , since .
If is even, and , where , thus .
If is odd, and , where , thus .
In both cases, , so .
The sum of positive integers not exceeding divides the product of the positive integers not exceeding if and only if is composite. □