I found an 11 year old proof of the statement “if $p$ is prime and $ 0 < k < p$ then $p \mid {p \choose k}$” by Joriki here. It is as follows:
If you count the number of k-element subsets of a p-element set that contain a given element and then sum over all p elements, you get $k {p \choose k}$, since each element is in $k$ of the ${p \choose k}$ subsets. This is $p$ times the count for a single element, and since $p \nmid k$ for $0<k<p$, the factor $p$ must be in $p \choose k$.
I know that if $p$ is not prime, then the statement does not hold for general $n$ and $k$, only with $n$ and $k$ coprime. However, I don’t see how this fact is reflected within the proof itself. My understanding is:
We take all $k$-subsets of a set of cardinality $p$, with the condition they have all the element $a$ in them. There are ${p-1 \choose k-1}$ of these, and if we do this once for each element we get $$p {p-1 \choose k-1} = \frac{p!}{(k-1)! (p-k)!} = k {p \choose k}$$ Which makes sense as we have looked at each $k$-subset once for each element.
Next, we know that this was $p$ times the count of a single element, so $p \mid k {p \choose k}$, and as $0 < k < p$, we find $p \mid {p \choose k}$.
I think that the idea that depends on $p$ being prime is in the last step, and I also think that it is close to something like:
- if $n$ and $k$ are not relatively prime then we can take a common factor out, then it is not nessecarily the fact that $n \mid {n \choose k}$
but I don’t understand why it invalidates the conclusion even if that is true.
It's perhaps easiest to see what goes wrong by looking at a particular example. For $n=6$ we will get $6\mid k\binom 6k$, where $0<k<6$.
Now $6\mid\binom 6k$ is equivalent to $2\mid \binom 6k$ and $3\mid\binom 6k$. We know that $2\mid k\binom 6k$ and $3\mid k\binom 6k$, but we don't know that $2\not\mid k$ and $3\not\mid k$ - in fact we only know that at least one of these statements holds.