Exercise 1.3.3 (Divisibility criterion by $2,4,8$)

Prove that a number is divisible by 2 if and only if its unit digit is divisible by 2 ; that a number is divisible by 4 if and only if the integer formed by its tens digits and its unit digit is divisible by 4 ; that a number is divisible by 8 if and only if the integer formed by its last three digits is divisible by 8 .

Answers

Proof. Let n = a m a m 1 a 0 ¯ = i = 0 m a i 1 0 i a positive integer, written into base 10 .

Since 10 0 ( mod 2 ) , n a 0 ( mod 2 ) , so 2 n a 0 . If 2 a 0 , then 2 n , and if 2 n then 2 a 0 : n is divisible by 2 if and only if its unit digit is divisible by 2 .

Since 100 = 1 0 2 0 ( mod 4 ) , n a 0 + 10 a 1 ( mod 4 ) , so 4 n ( a 0 + 10 a 1 ) . So n is divisible by 4 if and only if the integer a 1 a 0 ¯ = a 0 + 10 a 1 formed by its tens digits and its unit digit is divisible by 4

Since 1000 = 1 0 3 0 ( mod 8 ) , n a 0 + 10 a 1 + 100 a 1 ( mod 4 ) , so 8 n ( a 0 + 10 a 1 + 100 a 2 ) . So n is divisible by 8 if and only if the integer a 2 a 1 a 0 ¯ = a 0 + 10 a 1 + 100 a 2 formed by its last three digits is divisible by 8 . □

User profile picture
2024-10-03 08:01
Comments