Exercise 1.3.4 (Divisibility criterion by 3,9)

Prove that an integer is divisible by 3 if and only if the sum of its digits is divisible by 3 . Prove that an integer is divisible by 9 if and only if the sum of its digits is divisible by 9 .

Answers

Proof.

We use the same notations than in Problem 2, where n = a m a m 1 a 0 ¯ = i = 0 m a i 1 0 i .

Since 10 1 ( mod 3 ) , n i = 0 m a i ( mod 3 ) , so n is divisible by 3 if and only if the sum of its digits is divisible by 3 .

Since n 1 ( mod 9 ) , we have the same result with 9 . □

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