Call digits 0,1,2,3,4 small and digits 5,6,7,8,9 large. Denote the digits of k-digit number n from right to left by (n)0,(n)1,…,(n)k−1. Denote by Σ(n) the sum of all digits of n and by l(n) the number of large digits of n.
a) If (a)i is small then (2a)i=2(a)i or (2a)i=2(a)i+1 depending on whether (a)i−1 is small or large. Similarly if (a)i is large then (2a)i=2(a)i−10 or (2a)i=2(a)i−9 depending on whether (a)i−1 is small or large. In other words, when multiplying by 2, each large digit necessitates decreasing of the digit at its place by 10 and increasing of the preceding digit by 1 in comparison with a small digit. Hence, for every natural number n, Σ(2n)=2Σ(n)−9l(n). As Σ(a)=Σ(b) and l(a)=l(b), we have Σ(2a)=Σ(2b).
b) If a=34 and b=43 then Σ(3a)=1+0+2=3 but Σ(3b)=1+2+9=12.
c) Obviously Σ(10a)=Σ(10b). By part a), on the other hand, Σ(10n)=Σ(2⋅5n)=2Σ(5n)−9l(5n), holding for every natural number n. Hence 2Σ(5a)−9l(5a)=2Σ(5b)−9l(5b). The digit (5n)i is large if and only if the digit (n)i is odd, because a carry during multiplying by 5 can be at most 4. Thus l(5n) is the number of odd digits of n, implying l(5a)=l(5b). Consequently, Σ(5a)=Σ(5b).