The number of integers between 1 and 1000000 that have the sum of the digits 18 is
A
25927
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
25827
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
24927
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
None of thes
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is A25927 Any number between 1 and 1000000 must be of less than 7 digits. Thus it must be of the form a1a2a3a4a5a6 where a1,a2,a3,a4,a5,a6∈{0,1,2,3...9}
Given, sum of digits=18
so, a1+a2,+a3+a4+a5+a6=18
Required number
= coefficient of x18 in (1+x+x2+...x9)6
= coefficient of x18 in (1−x101−x)6
= coefficient of x18 in (1−x10)6(1−x)−6
= coefficient of x18 in (1−6C1x10)(1−x)−6 (leaving terms having powers of x greater than 18)
= coefficient of x18 in (1−x)−6 - 6C1 .coefficient of x8 in (1−x)−6