Using only the digits $2,3,9$, how many six-digit numbers can be formed which are divisible by $6$?
The options are:
(A) $41$
(B) $80$
(C) $81$
(D) $161$
The last digit must be $2$. But I faced problem when calculating the number of number which are divisible by $3$. Somebody please help me.
As the number should be a multiple of $3$, the sum of digits must be divisible by $3$: as the digits $3$ and $9$ are themselves divisible by $3$, hence we should use either three or six $2$s.
Using six $2$s, there is only one number.
Using three $2$s, the number will be of the form: $$XXXXX2$$ where each $X$ represents a digit. We need to select an additional two $2$s, which can be placed in $\binom52 =10$ ways. The remaining three positions will then have two options each ($3$ or $9$). So, we have a total of: $$\binom52 \times 2^3 =80$$ and a grand total of $81$ ways.