Exercises 25 We have been told in arithmetic that the remin

Exercises 25 : We have been told in arithmetic that the reminder of an integer divided by 9 is the same as the reminder of division of the sum of its decimal digits by 9. In other words, the reminder of division 6371 by 9 is the same as dividing 17 by 9 because 6+3+7+1=17. Use the properties of the mod operator to prove this claim

This question is from Cryptography course

Solution

Ans :

As we can write 6371 = 6 * 103 + 3 * 102 + 7 * 101 + 1 * 100

which means a = an * 10n + ..........+ a1 * 101 + a0 * 100   . .......................(1)

Also 10 mod 9 = 1

And 10n mod 9 = (10 mod 9)n = 1 ...........................(2)

Now by applying the mod operator of 9 to both sides of (1) we get

a mod 9 = (an * 10n + .......+a0 *100) mod 9

= (an * 10n) mod 9 + ..............+ (a0 *100) mod 9

= (an mod 9) * (10n mod 9) + ..................+ (a0  mod 9 ) * (100 mod 9)

= (an mod 9) + ..........+  (a0  mod 9 ) ...............................( From (2) )

=(an + ......+ a1 + a0 ) mod 9

Hence Proved.

Exercises 25 : We have been told in arithmetic that the reminder of an integer divided by 9 is the same as the reminder of division of the sum of its decimal di

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site