QlarIITy

MathematicsIIT-JEE 1998Single correct

An nn-digit number is a positive number with exactly nn digits. Nine hundred distinct nn-digit numbers are to be formed using only the three digits 2, 5 and 7. The smallest value of nn for which this is possible is

  1. Option A: 6
  2. Option B: 7
  3. Option C: 8
  4. Option D: 9
Try it before you look.The full solution is on this page, below the options, the moment you check. No sign-in needed.

Solution

Core idea. With 33 choices for each of nn places there are 3n3^{n} strings, so we need the least nn with 3n≥9003^{n}\ge 900.

Concept refresher. If each of nn positions can independently take any of kk values, the number of arrangements is knk^{n} (multiplication principle with repetition).

Approach. Count how many nn-digit numbers the digits 2,5,72, 5, 7 can make, then find the least nn giving at least 900900.

  1. Step 1: Count the numbers

    Each digit place has 33 choices and none of 2,5,72, 5, 7 is zero, so every string is a genuine nn-digit number:

    number of distinct n-digit numbers=3n\text{number of distinct } n\text{-digit numbers}=3^{n}
  2. Step 2: Smallest n

    We need 3n≥9003^{n}\ge 900.

    36=729<900,37=2187≥9003^{6}=729<900,\qquad 3^{7}=2187\ge 900

    So the smallest nn is 77.

Answer. (B)

Why the other options are wrong

  • (A) With n=6n=6 only 36=7293^{6}=729 distinct numbers exist, fewer than 900900.
  • (C) n=8n=8 works, but it is not the smallest value since n=7n=7 already suffices.
  • (D) n=9n=9 also works but is even further from the least value.

Key takeaway

The trap. Taking n=6n=6 from a rough estimate fails, because 36=7293^{6}=729 is still less than 900900.

How toppers think. They list 36=7293^{6}=729 and 37=21873^{7}=2187 and pick the first power that crosses 900900.

Remember. The least nn with kn≥Nk^{n}\ge N is found by checking consecutive powers, never by rounding a logarithm down.

More on Fundamental Principle of Counting