Five-Digit Numbers Divisible by 6 Without Repetition

Board: JEE Foundation | Grade: Class 11 | Chapter: Permutations and Combinations

Problem

How many $5$-digit numbers divisible by $6$ can be formed using the digits ${0, 1, 2, 3, 4, 5}$ without repetition?

Step-by-Step Textbook Solution

A number is divisible by $6$ if and only if it is divisible by both $3$ and $2$ (i.e., the sum of its digits is a multiple of $3$ and its units digit is even). Notice that the sum of all $6$ available digits is $0 + 1 + 2 + 3 + 4 + 5 = 15$, which is divisible by $3$. To form a $5$-digit subset whose sum is divisible by $3$, the single omitted digit must itself be divisible by $3$, i.e., either $0$ or $3$.

  • Case 1: Omit $0$ (using ${1, 2, 3, 4, 5}$). The units digit must be even, so choose it from ${2, 4}$ ($2$ choices). The remaining $4$ positions can be filled by the remaining $4$ non-zero digits in $4! = 24$ ways. $$\text{Count}_1 = 2 \times 24 = 48$$

  • Case 2: Omit $3$ (using ${0, 1, 2, 4, 5}$). Here $0$ is present, so the leading (ten-thousands) digit cannot be $0$, and the units digit must be in ${0, 2, 4}$. Split by the units digit:

    • Subcase 2a (Units digit is $0$): $1$ choice for units digit; the remaining $4$ non-zero digits fill the first $4$ places in $4! = 24$ ways.
    • Subcase 2b (Units digit is $2$ or $4$): $2$ choices for units digit; the leading digit cannot be $0$ or the chosen units digit ($3$ choices); the middle $3$ places are filled in $3! = 6$ ways. This gives $2 \times 3 \times 6 = 36$ ways. $$\text{Count}_2 = 24 + 36 = 60$$

Combining both cases: $$\text{Total numbers} = 48 + 60 = 108$$

NityaDhi Solution (Intuitive Method)

NityaDhi All-Minus-Leading-Zero Shortcut for Case 2: For ${0, 1, 2, 4, 5}$, there are $3$ even digits ${0, 2, 4}$, so total $5$-digit strings ending in an even digit (allowing leading $0$) $= 3 \times 4! = 72$. Among strings with leading $0$, the units digit must be $2$ or $4$ ($2$ choices) and middle $3$ digits take $3! = 6$ ways, giving $12$ invalid strings. Thus $72 - 12 = 60$, plus $48 = 108$!

Common Mistakes to Avoid

  1. Ignoring leading-zero restrictions when $0$ is included: Simply computing $3 \times 4! = 72$ for Case 2 overcounts by the $12$ numbers starting with $0$.
  2. Treating Case 2b as $2 \times 4 \times 3!$: Forgetting that the units digit has already been fixed leaves only $3$ choices (not $4$) for the first digit when excluding $0$.