Number of carries
Source: Baltic Way 2017 Problem 19
November 11, 2017
number theory
Problem Statement
For an integer let denote the total number of carries which arise when adding and . The first few values are given by , , , which can be seen from the following:
\begin{align*}
001 &&001 && 000 \\
2017 &&4034 &&6051 \\
+2017 &&+2017 &&+2017\\
=4034 &&=6051 &&=8068\\
\end{align*}
Prove that