For a prime number , the binomial coefficient modulo factors into the corresponding digit binomial coefficients in the base-p expansions of the nonnegative integers . Pad both expansions to the same length and use when . The identity follows by factoring into digit powers and using the Frobenius endomorphism; digit uniqueness identifies each coefficient.