I came across this : "It is possible to show that if $p$ is prime, $\binom{n}{r}$ is not divisible by $p$ if and only if the addition $r + (n-r)$, when written in base $p$, has no carries. This means that the number of entries in the $n$-th row of Pascal's triangle that are not divisible by $p$ is equal to the product over all digits $d$ of $n$ written in base $p$ of $1+d$."
Are there any good proofs of this statement?
It seems the following.
Concerning the second statement, the addition $r + (n-r)$, when written in base $p$, has no carries iff each digit of $r$ is not greater than the respective digit of $n$. It is clear that the number of such $r$ is equal to the product over all digits $d$ of $n$ written in base $p$ of $1+d$.