Solution. Let A=a1a2…an and B=b1b2…bn. From the condition A+B=10n, it follows that the sum of the last two digits is 0 or 10.
If an+bn=10, then from the condition A+B=10n, it would follow that ak+bk=9 for every k=1,2,…,n−1. By summing the equations, we get
a1+a2+…an+b1+b2+…+bn=(a1+b1)+(a2+b2)+…+(an+bn)=9(n−1)+10
The left side of the equation is an even number because the digits of the number A are the same as the digits of the number B. The right side of the equation is an odd number, since 9(n−1) is an odd number. In this way, we have a contradiction with the previous statement.
It follows that an+bn=0, i.e., an=0 and bn=0, since an and bn are digits, which means that each of the numbers A and B is divisible by 10.
## 2nd year