Suppose two base-p expansions represent the same nonnegative integer. Pad the shorter one by trailing zero digits so that both have the same length. Reducing modulo shows that their first digits satisfy . Since both digits lie between and , they are equal as integers.
Subtract that common digit and divide by . The remaining equality is an equality of two base-p expansions with one fewer digit. Repeating this argument shows that every pair of corresponding digits agrees. Equivalently, repeated Euclidean division recovers the digits as remainders. The digits are unique up to padding by zeroes. The finite nonnegative-digit representation presupposes ; a negative integer has no such expansion.
For , the identity for binomial coefficients
shows that divides . Since is a prime number and is not divisible by , cancellation modulo gives
The binomial theorem consequently gives as a coefficientwise polynomial modular congruence. Apply the same identity with replaced by and use mathematical induction to obtain
This is an iteration of the Frobenius endomorphism in characteristic . Comparing the intermediate coefficients gives the prime-power binomial divisibility result
Write both nonnegative integers in base-p expansions, padding with zero digits to a common length . By the preceding polynomial identity,
Expanding the last product with the binomial theorem, each term is obtained by choosing an integer with . Its exponent is and its coefficient is . Uniqueness of base-p expansions says that the only way this exponent can equal is to choose for every .
If some , no such term exists and the coefficient is zero. Otherwise its coefficient is precisely the product below. Comparing the coefficient of proves Lucas theorem:
with the convention for . This also covers , and padding either expansion by further zero digits multiplies the product only by .

Articles by others on the same topic (0)

There are currently no matching articles.