Proof. We write
and
in base
in the form
(Here
is any integer greater than the lengths of the representations of
in base
.)
The Legendre- de Polignac’s formula gives
since
if
.
We proved in Problem 33 (with
) that the carries
such that
satisfy
Since
or
for all indices
(and
), the number
of carries when
and
are added in base
is given by
Then the equalities (4) give
If
,
, so
We proved in Problem 33 (see formula (4) of Problem 33) that
Then formulas (8) and (9) give
In conclusion,
is exactly the number of carries when
and
are added base
. □