Kummer’s theorem
Given integers and a prime number , then the power of dividing is equal to the number of carries when adding and in base .
Proof.
For the proof we can allow of numbers in base with leadingzeros. So let
all in base . We set and denote the -adic representation of with .
We define , and for each
(1) |
Finally, we introduce as the sum of digits in the -adic of . Then it follows that the power of dividing is
For each , we have
Then
This gives us
the total number of carries.∎