Probability of a number divisible by $7$

probability

If $n\in \mathbb{N}$ (set of natural numbers ). Then finding the probability that $\displaystyle \binom{n}{7}$ is divisible by $7,$ is

what i try

$$\binom{n}{7}=\frac{n(n-1)(n-2)(n-3)(n-4)(n-5)(n-6)}{7!}$$

Let $n=7k+i, i=1,2,3,4,5,6$ amd $k\in \mathbb{W}$

How do i solve it Help me please

Best Answer

Note that you have exactly one $7$ in the prime factorisation of the denominator of your fraction. You also have exactly one multiple of 7 in the product in the numerator. Thus, the result is divisible by $7$ exactly when that multiple of $7$ is also a multiple of $7^2$. That is: whenever $n$ is $0, 1, 2, 3, 4, 5,$ or $6$ modulo $49$. That is $7$ of the $49$ values modulo $49$, so your probability is precisely $$\frac{7}{49} = \frac{1}{7}.$$