Skip to main content

Combinations MCQ: The number of integers which lie between 1 and…

JEE · Mathematics · Combinations

1 Easy +4 | -1 Application
The number of integers which lie between 1 and 106{10^6} and which have the sum of the digits equal to 12, is
View answer and explanation
Correct option: C
6062
Option C (6062) is correct because it is the coefficient of x12{x^{12}} in the expansion of a generating function representing the sum of digits.
Solution approach
  1. Correct Answer + Core Reason: 6062. The number of integers is found by calculating the coefficient of x12 in a generating function.

    Step-by-Step Solution:

    Step 1: The problem asks for the number of integers between 1 and 10610^6 with a digit sum of 12.

    Step 2: Consider the generating function (x0+x1+x2+...+x9)6(x^0 + x^1 + x^2 + ... + x^9)^6. The coefficient of x12x^{12} in this expansion gives the number of ways to obtain a sum of 12 using 6 digits, each between 0 and 9.

    Step 3: Rewrite the generating function as (1−x101−x)6=(1−x10)6(1−x)−6\left( \frac{{1 - x^{10}}}{{1 - x}} \right)^6 = (1 - x^{10})^6 (1 - x)^{-6}.

    Step 4: Expand using the binomial theorem: (1−x10)6=1−  6C1x10+...(1 - x^{10})^6 = 1 - {\;^6}{C_1}x^{10} + ... and (1−x)−6=1+  6C1x+  7C2x2+...+  17C5x12+...(1 - x)^{-6} = 1 + {\;^6}{C_1}x + {\;^7}{C_2}x^2 + ... + {\;^{17}}{C_5}x^{12} + ...

    Step 5: The coefficient of x12x^{12} in the product is   17C5−  6C1  7C2=  17C5−6×  7C2{{\;^{17}}{C_5}} - {\;^6}{C_1} {{\;^7}{C_2}} = {\;^{17}}{C_5} - 6 \times {\;^7}{C_2}.

    Step 6: Calculate the values:   17C5=17×16×15×14×135×4×3×2×1=6188{{\;^{17}}{C_5}} = \frac{{17 \times 16 \times 15 \times 14 \times 13}}{{5 \times 4 \times 3 \times 2 \times 1}} = 6188 and   7C2=7×62×1=21{{\;^7}{C_2}} = \frac{{7 \times 6}}{{2 \times 1}} = 21.

    Step 7: Therefore, the required number is 6188−6×21=6188−126=60626188 - 6 \times 21 = 6188 - 126 = 6062.

    Why other options are wrong:
    - Option A (8550): This value is incorrect, likely due to a calculation error or an incorrect approach to the problem.
    - Option B (5382): This value is incorrect, likely due to a calculation error or an incorrect approach to the problem.
    - Option D (8055): This value is incorrect, likely due to a calculation error or an incorrect approach to the problem.

    Key Concepts:
    - Generating functions
    - Binomial theorem
    - Combinations

    Memory Aids:
    - Remember the binomial theorem and how to find coefficients in expansions.

    Quick Tips:
    - Generating functions are useful for counting problems involving sums of digits.

More Questions from Combinations

Practice all chapter MCQs →
Type at least 2 characters or jump directly:

Save your learning progress

Sign in with a free account to save your practice answers and quiz results, then return to them when you revise.

Scan to install TopAll Pro

Point your Android or iPhone camera at this code to open TopAll Pro. Try 2 chapters and 25 AI credits free first.

Question image

Use + and − to zoom, arrow keys or drag to pan, Escape to close.