a little monkey was sitting on a tree. she was bored and she wanted to eat. she got down the tree and looked through the jungle to find a banana of a mango. but there was no fruits and even no tasty leafs. she was upset. she wandered through the jungle and meet her friends - green crocodile and bright parrot. parrot was very hungry too because he also couldn't find anything to eat. they decided to walk together. in a minute they noticed a huge yelow banana lying on the floor. monkey clutched it and at once many hunters with guns run to the glade.
friends started to run away. they ran through the bush and high grass and they saved their lives from the crafty hunters
разность между числом и суммой его цифр всегда делится на 9. Это легко понять хотя бы на примере трехзначных чисел. Если abc = а x 100 + b x 10 + с — трехзначное число, то сумма его цифр равна a + b + с и разность abc – (а + b + с) = 99а + 9b делится на 9.
Пусть А, В, С, … — целые числа, которые нам необходимо сложить, и А1, B1, C1, … — суммы их цифр. Обозначим буквой р остаток от деления на 9 суммы цифр числа
(А + В + С + …). Из сказанного выше следует, что разность (А + В + С + …) – р делится на 9. Но эту же разность можно представить в виде (А – А1) + (В – B1) + (C – C1) + … + (А1 + B1 + C1 + ... – р). Все числа А – А1, В – B1, C – C1, ... делятся на 9, а потому на 9 будет делиться и число А1 + B1 + C1 + ... – р. Это означает, что остаток от деления на 9 числа А1 + B1 + C1 + … также равен р. Итак, если сложение выполнено правильно, то остатки должны совпадать.