The number of seven digit positive integers formed using the digits , , , and only and the sum of the digits equal to is:
JEE Mathematics 2023 Question with Solution
Answer
Correct answer:413
Step-by-step solution
Standard Method
Given: We need to find the number of seven-digit positive integers formed using the digits , , , and such that the sum of the digits is .
Find: The total number of such integers.
Let the digits be , where each .
Then
We want the number of solutions subject to for each .
Let
Then and .
Substituting,
so
First count all non-negative integer solutions:
Now subtract the cases where some .
Since the total sum is only , at most one variable can be at least .
If one variable, say , let
Then
The number of solutions is
Any one of the variables could be the variable exceeding or equal to , so the number of invalid cases is
Hence the required count is
Therefore, the number of such seven-digit integers is .
Counting With Variable Shift
Given: A seven-digit number uses only the digits and has digit sum .
Find: The number of such numbers.
Because every digit is at least , start by assigning to each of the positions. This contributes
to the digit sum.
So we still need an additional
to be distributed among the positions.
If the extra amount added to the -th digit is , then
with
because the original digit cannot exceed .
Ignoring the upper bound for a moment, the number of non-negative integer solutions is
Now remove forbidden cases.
A forbidden case occurs when some . Since the total sum is only , two variables cannot both be at least . So only one-variable violations are possible.
Choose the violating variable in
ways.
After forcing that variable to contribute , the remaining sum is
which can be distributed among variables in
ways.
Thus invalid cases are
Therefore,
So the required number is .
Common mistakes
Using stars and bars directly to get and stopping there is incorrect because it ignores the upper bound . After shifting variables, you must also exclude cases with .
Forgetting to shift variables by writing the equation directly for unrestricted non-negative integers is wrong because the digits start from , not . First set so that the transformed sum becomes .
Overcounting invalid cases using full inclusion-exclusion for multiple variables exceeding is unnecessary here. Since the total sum is only , at most one variable can satisfy .
Practice more Applications of P&C questions
Get unlimited AI-adaptive practice, mastery tracking, and an AI tutor that explains every step — free to start.
Related questions
- The number of strictly increasing functions f from the set 1, 2, 3, 4, 5, 6 to the set 1, 2, 3,, 9 such that…Medium · JEE 2026
- Let S = (m, n): m, n 1, 2, 3,....., 50. If the number of elements (m, n) in S such that 6^m+9^n is a multiple…Medium · JEE 2026
- The largest n N, for which 7^n divides 101!, is:Easy · JEE 2026
- If ( 1^15C0 + 1^15C1) ( 1^15C1 + 1^15C2) ( 1^15C12 + 1^15C13) = ^13^14C0 ^14C1 ^14C12, then 30 is equal to.Medium · JEE 2026
- Let ABC be a triangle. Consider four points p1, p2, p3, p4 on the side AB, five points p5, p6, p7, p8, p9 on…Medium · JEE 2026
- The number of 4-letter words, with or without meaning, which can be formed using the letters PQRPRSTUVP, is:Medium · JEE 2026
