Inspired by Brian Charlesworth

How many 3 digit numbers are there, such that the hundreds digit is smaller than or equal to the tens digit, which is smaller than or equal to the units digit?

220 165 120 84

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

First note that since the hundreds digit cannot be 0 0 and must be less than or equal to the other digits, we know that the 3 3 -digit number cannot have any 0 0 's.

Now we can divide this into three cases:

(i) there are 9 9 numbers in which all three digits are the same value;

(ii) with three distinct digits chosen from the set A = { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 } A = \{1,2,3,4,5,6,7,8,9\} there is only one way to arrange them in strictly ascending order. Such arrangements form a one-to-one correspondence with the 3 3 -digit numbers whose digits are distinct and in ascending order. This gives us ( 9 3 ) = 84 \dbinom{9}{3} = 84 more numbers;

(iii) to count the specified 3 3 -digit numbers that are composed of only two distinct digits from A , A, we choose two digits in ( 9 2 ) = 36 \dbinom{9}{2} = 36 ways and then choose one of these digits to duplicate. We can then again order the three digits in only one way, giving us 36 2 = 72 36*2 = 72 more numbers.

The number of desired 3 3 -digit numbers is then 9 + 84 + 72 = 165 . 9 + 84 + 72 = \boxed{165}.

In JEE there is a method called introducing dummy variables , These dummy variables bring equality among the digits,

let the three digit number be x y z xyz provided x y z x\leq y\leq z

Let the variables be a , b a,b , where a a brings equality between x x and y y and b b brings equality between y y and z z

Now we have a set from which three objects have to be chosen. The set is { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , a , b } \{1,2,3,4,5,6,7,8,9,a,b\} , no zero as already explained above by brian sir.

From this set we have to select 3 numbers so number of ways ( 11 3 ) \begin{pmatrix} 11 \\ 3 \end{pmatrix}

For example if one selects 2 , a , 6 2,a,6 so there will be only one number following the given order , the number is 226 226 ,

another example if one selects 4 , a , b 4,a,b then the number is 444 444 .

its simply a method to solve such problems involving equalities and inequalities within seconds

¨ \ddot \smile

Tanishq Varshney - 6 years ago

Log in to reply

Perfect!

Does it work with 5 digit numbers?

How many 5 digit numbers are there, such that each successive digit exceeds or equal to its predecessor?

BK Lim - 6 years ago

Log in to reply

Does your question mean that a b c d e f abcdef is a five digit number and given that a b c d e a\geq b\geq c \geq d\geq e . Then the answer will be ( 14 5 ) 1 \dbinom {14}{5}-1

Tanishq Varshney - 6 years ago

Log in to reply

@Tanishq Varshney Is it {1,2,3,4,5,6,7,8,9,a,b,c,d,e} and five objects to be chosen?

What does variables a,b,c,d,e implies to? Thanks.

BK Lim - 6 years ago

Log in to reply

@Bk Lim a b c d e f abcdef implies a five digit number , and the set is

{ 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , w , x , y , z } \{0,1,2,3,4,5,6,7,8,9,w,x,y,z\}

where w w brings equality between a a and b b ; x x brings equality between b b and c c , and so on for y y and z z .

suppose one selects 0 , y , 7 , 6 , z 0,y,7,6,z the number will be 76000 76000 ,

i edited my comment becoz if one takes 0 , x , y , z , w 0,x,y,z,w then a five digit number is not possible, we got to remove this case.

Hope it is understandable

Tanishq Varshney - 6 years ago

There is a "one-line" solution to this problem.

Hint: Express 165 165 as a suitable ( n r ) { n \choose r } .

Calvin Lin Staff - 6 years, 2 months ago

Log in to reply

Oh, right. In general, we could look at this as a problem of placing n n identical marbles into 9 9 distinguishable boxes, (representing the integers 1 1 through 9. 9. ) Then we have one-to-one correspondence between the desired n n -digit numbers and non-negative integer solutions to the equation k = 1 9 a k = n \sum_{k=1}^{9} a_{k} = n , which is a stars and bars problem with solution

( 9 + n 1 n ) = ( n + 8 n ) . \dbinom{9 + n - 1}{n} = \dbinom{n + 8}{n}.

In this case n = 3 , n = 3, so the solution is ( 11 3 ) = 165. \dbinom{11}{3} = 165.

Brian Charlesworth - 6 years, 2 months ago

Log in to reply

Yes, that's similar to what I was thinking.

Chung Kevin - 6 years, 1 month ago

Sir please be more explanatory in the line where you have used sigma ak = n

space sizzlers - 6 years, 1 month ago

Log in to reply

@Space Sizzlers Say we are looking for a 3 3 -digit number that meets the given conditions, and note that, given the conditions, none of the digits can be 0. 0.

Now let a i a_{i} be the number of repetitions of the positive integer i , i, where 1 i 9. 1 \le i \le 9. Then any "satisfactory" 3 3 -digit number is represented by a non-negative integer solution to the equation

i = 1 9 a i = a 1 + a 2 + a 3 + a 4 + a 5 + a 6 + a 7 + a 8 + a 9 = 3. \sum_{i=1}^{9} a_{i} = a_{1} + a_{2} + a_{3} + a_{4} + a_{5} + a_{6} + a_{7} + a_{8} + a_{9} = 3.

This representation is unique since, for any 3 3 integers chosen, there is only one way to arrange them in ascending order. For example, if a 2 = 1 , a 5 = 2 , a_{2} = 1, a_{5} = 2, and all other a i a_{i} 's are 0 0 then the unique, satisfactory 3 3 -digit number represented by this solution is 255. 255.

Since any solution to this equation corresponds to a unique satisfactory number, and any satisfactory number can be represented by a unique solution to the equation, we have established a one-to-one correspondence between these two sets, (i.e., the set of solutions to the equation and the set of all satisfactory numbers), and so the two sets have the same number of elements.

So finally, to answer this question, we just need to find the number of solutions to the equation we've established above. This is a stars and bars problem, which according to Theorem two in the link, with n = 3 , k = 9 , n = 3, k = 9, has solution

( 3 + 9 1 3 ) = ( 11 3 ) = 165 \dbinom{3 + 9 - 1}{3} = \dbinom{11}{3} = 165 as found before.

This result can then be generalized to n n -digit numbers.

Brian Charlesworth - 6 years, 1 month ago

Log in to reply

@Brian Charlesworth Thank you sir for the kind reply to make a learner understand better (:

space sizzlers - 6 years, 1 month ago

@Brian Charlesworth I've spent some time on it and finally I understand a little bit.

It's like I place a line of numbers.

1 in front then follow by 11 seats, ready to fill in by 2,3,4,5,6,7,8,9, i.e. 11C3

Some of the results:

123x4567x89x represents 379

12xx345678x9 represents 228

123456xxx789 represents 666

Huh! Thank you so much!

BK Lim - 6 years, 1 month ago

Log in to reply

@Bk Lim Yes, that's the idea. For more information, you can read up the wiki Stars and bars .

Chung Kevin - 6 years ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...