
The number of integers between 1 and 1000000 having the sum of the digits equals to 18 is
(a) 33649
(b) 25927
(c) 41371
(d) None of these
Answer
529.5k+ views
1 likes
Hint:Assume that the numbers are of the form . Calculate all the possible numbers such that , where anyone of the digits is greater than or equal to 10. Subtract this set of numbers from the number of the form to get the required answer.
Complete step-by-step answer:
We have to calculate the number of possible integers between 1 and 1000000 such that the sum of digits is equal to 18.
We will assume that the numbers are of the form such that and .
We know that the number of possible non-negative solutions of is .
Substituting in the above expression, the number of possible numbers of the form such that and is .
However, we observe that some of these numbers have digits greater than or equal to 10. So, we have to remove those numbers. We will count all such possible numbers.
Let’s assume one digit, say ‘a’ is greater than or equal to 10.
So, the sum of the other five digits is . Thus, we have . We have to count all possible combinations of b, c, d, e, and f.
So, the possible number of ways to choose b, c, d, e, and f such that is . This value should be multiplied by 6 as anyone of numbers among a, b, c, d, e, and f can have a digit greater than or equal to 10. We observe that the possible values of a are .
Thus, the possible numbers whose any one digit is greater than or equal to 10 is
Simplifying the above expression, the possible numbers whose any one digit is greater than or equal to 10 is .
We can rewrite as as both of them are equal to 1.
Thus, the possible numbers whose any one digit is greater than or equal to 10 is .
We know the formula .
By applying formula the last two terms of expression i.e can be written as .Similarly apply the formula for the last two terms and simplify it ,we get
The possible numbers whose any one digit is greater than or equal to 10 is .
Thus, the possible numbers whose any one digit is greater than or equal to 10 is . We will now subtract this value from all the possible six-digit integers whose sum is 18.
So, the number of six-digit integers whose sum is 18 is .
Hence, the number of integers between 1 and 1000000 having the sum of the digits equals to 18 is 25927 which is option (b).
Note: One must subtract the numbers whose digit is greater than or equal to 10 as such numbers don’t exist. Students should know the formulas , the number of possible non-negative solutions of is and for solving these types of questions.
.
Complete step-by-step answer:
We have to calculate the number of possible integers between 1 and 1000000 such that the sum of digits is equal to 18.
We will assume that the numbers are of the form
We know that the number of possible non-negative solutions of
Substituting
However, we observe that some of these numbers have digits greater than or equal to 10. So, we have to remove those numbers. We will count all such possible numbers.
Let’s assume one digit, say ‘a’ is greater than or equal to 10.
So, the sum of the other five digits is
So, the possible number of ways to choose b, c, d, e, and f such that
Thus, the possible numbers whose any one digit is greater than or equal to 10 is
Simplifying the above expression, the possible numbers whose any one digit is greater than or equal to 10 is
We can rewrite
Thus, the possible numbers whose any one digit is greater than or equal to 10 is
We know the formula
By applying formula the last two terms of expression i.e
The possible numbers whose any one digit is greater than or equal to 10 is
Thus, the possible numbers whose any one digit is greater than or equal to 10 is
So, the number of six-digit integers whose sum is 18 is
Hence, the number of integers between 1 and 1000000 having the sum of the digits equals to 18 is 25927 which is option (b).
Note: One must subtract the numbers whose digit is greater than or equal to 10 as such numbers don’t exist. Students should know the formulas
.
Latest Vedantu courses for you
Grade 10 | CBSE | SCHOOL | English
Vedantu 10 CBSE Pro Course - (2025-26)
School Full course for CBSE students
₹37,300 per year
Recently Updated Pages
Master Class 11 Economics: Engaging Questions & Answers for Success

Master Class 11 Accountancy: Engaging Questions & Answers for Success

Master Class 11 English: Engaging Questions & Answers for Success

Master Class 11 Social Science: Engaging Questions & Answers for Success

Master Class 11 Physics: Engaging Questions & Answers for Success

Master Class 11 Biology: Engaging Questions & Answers for Success

Trending doubts
1 ton equals to A 100 kg B 1000 kg C 10 kg D 10000 class 11 physics CBSE

One Metric ton is equal to kg A 10000 B 1000 C 100 class 11 physics CBSE

Difference Between Prokaryotic Cells and Eukaryotic Cells

What is the technique used to separate the components class 11 chemistry CBSE

Which one is a true fish A Jellyfish B Starfish C Dogfish class 11 biology CBSE

Give two reasons to justify a Water at room temperature class 11 chemistry CBSE
