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 n > 1 . Show that the sum of positive integers not exceeding n divides the product of the positive integers not exceeding n if and only if n + 1 is composite.

Answers

Proof. Let S be the sum of positive integers not exceeding n , and P the product of the positive integers not exceeding n , where n > 1 . Then

S = k = 1 n k = n ( n + 1 ) 2 , T = k = 1 n k = n ! .
  • Suppose that S P , so that

    n ( n + 1 ) 2 n ! .

    • If n > 1 is odd, then n + 1 is even, where n + 1 2 , thus n + 1 is composite.
    • If n is even, then

      n 2 ( n + 1 ) n ( n 1 ) ! ,

      thus

      n + 1 2 ( n 1 ) ! .

      Here ( n + 1 ) 2 = 1 , thus

      n + 1 ( n 1 ) ! .

      If n + 1 was a prime, then n + 1 k , for some integer k such that 1 k < n , and so n + 1 k < n . This is absurd, therefore n + 1 > 1 is composite.

  • Conversely, suppose that n + 1 is composite. Therefore n 2 . If n = 3 , then 3 ( 3 + 1 ) 2 = 6 3 ! , so we may suppose n > 3 .

    By problem 27, where n is replaced by n + 1 , n + 1 n ! , since n > 3 .

    If n is even, ( n 2 ) ! n ! and n + 1 n ! , where ( n 2 ) ( n + 1 ) = 1 , thus ( n 2 ) ( n + 1 ) n ! .

    If n is odd, ( n + 1 ) 2 n ! and n n ! , where [ ( n + 1 ) 2 ] n = 1 , thus ( ( n + 1 ) 2 ) n n ! .

    In both cases, n ( n + 1 ) 2 n ! , so S T .

The sum S of positive integers not exceeding n divides the product P of the positive integers not exceeding n if and only if n + 1 is composite. □

User profile picture
2024-10-06 13:27
Comments