Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 1.3.3 (Divisibility criterion by $2,4,8$)
Exercise 1.3.3 (Divisibility criterion by $2,4,8$)
Prove that a number is divisible by if and only if its unit digit is divisible by ; that a number is divisible by if and only if the integer formed by its tens digits and its unit digit is divisible by ; that a number is divisible by if and only if the integer formed by its last three digits is divisible by .
Answers
Proof. Let a positive integer, written into base .
Since , , so . If , then , and if then : is divisible by if and only if its unit digit is divisible by .
Since , , so . So is divisible by if and only if the integer formed by its tens digits and its unit digit is divisible by
Since , , so . So is divisible by if and only if the integer formed by its last three digits is divisible by . □