Homepage Solution manuals Ivan Niven An Introduction to the Theory of Numbers Exercise 1.2.23 (The square of any integer is not of the form $3k+2$ )

Exercise 1.2.23 (The square of any integer is not of the form $3k+2$ )

Prove that the square of any integer is of the form 3 k or 3 k + 1 , but not of the form 3 k + 2 .

Answers

Proof. By Problem 20, any integer n is of the form 3 k , 3 k + 1 or 3 k + 2 , and these three cases are mutually exclusive.

  • If n = 3 k , n 3 = 9 k 2 = 3 ( 3 k 2 ) = 3 K , where K = 3 k 2 , so n 2 is of the form 3 k .
  • If n = 3 k + 1 , n 3 = 9 k 2 + 6 k + 1 = 3 ( 3 k 2 + 2 k ) + 1 = 3 L + 1 , where L = 3 k 2 + 2 k , so n 2 is of the form 3 k + 1 .
  • If n = 3 k + 2 , n 3 = 9 k 2 6 k + 1 = 3 ( 3 k 2 2 k ) + 1 = 3 M + 1 , where M = 3 k 2 2 k , so n 2 is of the form 3 k + 1 .

Hence n 2 is never of the form 3 k + 2 . □

User profile picture
2024-09-28 09:53
Comments