QlarIITy

MathematicsJEE Main 2025 · 29 JanuaryInteger

The number of 6-letter words, with or without meaning, that can be formed using the letters of the word MATHS such that any letter that appears in the word must appear at least twice, is _______.

Try it before you look.The full solution is on this page, below the answer box, the moment you check. No sign-in needed.

Solution

Core idea. The places are split among the letters used, and each pattern is counted separately.

Concept refresher. Objects with repeats pp and qq among nn can be arranged in

N=n!p!q!N = \dfrac{n!}{p!q!}

ways; independent choices multiply and separate cases add.

Picture the situation. Only the five letters M, A, T, H, S are available, each usable any number of times, and the word has six places. A letter that is used at all must be used at least twice, so a word can contain at most three different letters. The possible patterns are: one letter six times; two letters, four and two times or three times each; three letters twice each.

Approach. Count the words for each pattern of use and add.

  1. Step 1: One letter

    A word using a single letter six times can be formed in 5 ways, one for each letter.

  2. Step 2: Two letters

    For four and two, choose the letters in 5×4=205 \times 4 = 20 ways and arrange in 6!4!×2!=15\dfrac{6!}{4! \times 2!} = 15 ways, giving 300. For three and three, choose the letters in 5C2=10{}^5C_2 = 10 ways and arrange in 6!3!×3!=20\dfrac{6!}{3! \times 3!} = 20 ways, giving 200.

  3. Step 3: Three letters

    Choose the letters in 5C3=10{}^5C_3 = 10 ways and arrange them, twice each, in 6!2!×2!×2!=90\dfrac{6!}{2! \times 2! \times 2!} = 90 ways, giving 900. The total is 5+300+200+900=14055 + 300 + 200 + 900 = 1405.

Answer. 1405

Sanity check. The patterns list every way of writing 6 as a sum of parts that are each at least 2: 6; 4 plus 2; 3 plus 3; and 2 plus 2 plus 2.

Common wrong answers

  • 1400: Forgetting the 5 words made of a single letter gives 1400.
  • 1255: Treating the letters used four times and twice as an unordered pair gives 150 instead of 300, and a total of 1255.

Key takeaway

The trap. In the pattern four and two, it matters which letter is used four times.

How toppers think. They list the partitions of the number of places before counting anything.

Remember. N=n!p!q!N = \dfrac{n!}{p!q!}

More on Permutations