Last visit was: 22 Apr 2026, 04:03 It is currently 22 Apr 2026, 04:03
Close
GMAT Club Daily Prep
Thank you for using the timer - this advanced tool can estimate your performance and suggest more practice questions. We have subscribed you to Daily Prep Questions via email.

Customized
for You

we will pick new questions that match your level based on your Timer History

Track
Your Progress

every week, we’ll send you an estimated GMAT score based on your performance

Practice
Pays

we will pick new questions that match your level based on your Timer History
Not interested in getting valuable practice questions and articles delivered to your email? No problem, unsubscribe here.
Close
Request Expert Reply
Confirm Cancel
User avatar
eladshus
Joined: 08 Nov 2009
Last visit: 21 Jul 2020
Posts: 27
Own Kudos:
240
 [72]
Given Kudos: 9
Location: United States (AK)
Concentration: Marketing, Entrepreneurship
GMAT 1: 720 Q49 V39
GPA: 3.4
WE:Engineering (Healthcare/Pharmaceuticals)
GMAT 1: 720 Q49 V39
Posts: 27
Kudos: 240
 [72]
3
Kudos
Add Kudos
68
Bookmarks
Bookmark this Post
Most Helpful Reply
User avatar
KarishmaB
Joined: 16 Oct 2010
Last visit: 21 Apr 2026
Posts: 16,439
Own Kudos:
79,381
 [23]
Given Kudos: 484
Location: Pune, India
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 16,439
Kudos: 79,381
 [23]
12
Kudos
Add Kudos
10
Bookmarks
Bookmark this Post
General Discussion
avatar
abhishekj2512
Joined: 11 Aug 2010
Last visit: 30 Jul 2015
Posts: 5
Own Kudos:
2
 [1]
Posts: 5
Kudos: 2
 [1]
1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
User avatar
eladshus
Joined: 08 Nov 2009
Last visit: 21 Jul 2020
Posts: 27
Own Kudos:
Given Kudos: 9
Location: United States (AK)
Concentration: Marketing, Entrepreneurship
GMAT 1: 720 Q49 V39
GPA: 3.4
WE:Engineering (Healthcare/Pharmaceuticals)
Kudos
Add Kudos
Bookmarks
Bookmark this Post
hi abhishekj2512,

I have already tried this way and although it seems right, it doesn't give the right answer.
See below:

a. All 5 Distinct = 10C5 x 5! = 30240

b. 3 distinct, 2 of one kind = 10C3 X 7C1 X (5!/2!) = 8400

c. 2 of type1, 2 of type2, and a remaining solo = 10800

10800+8400+30240 = 49400

Another way that I considered was to calculate the complementary set:
10^5 - all possible codes, and deduct the number of ways to comprise a code with a digit that repeats 3 times, 4 times and 5 times. (It didn't work as well).
avatar
abhishekj2512
Joined: 11 Aug 2010
Last visit: 30 Jul 2015
Posts: 5
Own Kudos:
2
 [1]
Posts: 5
Kudos: 2
 [1]
1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Quote:
b. 3 distinct, 2 of one kind = 10C3 X 7C1 X (5!/2!) = 8400

Seems like some error at your end, this comes out as 50,400
Using this, answer does come out correctly.

In this case, the forward and backward approach would involve same number of calculations.
User avatar
eladshus
Joined: 08 Nov 2009
Last visit: 21 Jul 2020
Posts: 27
Own Kudos:
Given Kudos: 9
Location: United States (AK)
Concentration: Marketing, Entrepreneurship
GMAT 1: 720 Q49 V39
GPA: 3.4
WE:Engineering (Healthcare/Pharmaceuticals)
Kudos
Add Kudos
Bookmarks
Bookmark this Post
you are right. I miscalculated the multiple factorial.

Thanks.
avatar
phamduyha
Joined: 01 Sep 2010
Last visit: 09 Dec 2010
Posts: 14
Own Kudos:
Posts: 14
Kudos: 3
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Sorry but I don't understand your answer. According to the question, no digit can be used more than twice. Then shall the answer be 10C5 = 30,240???
Please explain. Thanks
User avatar
sunita123
Joined: 13 Oct 2013
Last visit: 09 Mar 2022
Posts: 116
Own Kudos:
Given Kudos: 530
Concentration: Strategy, Entrepreneurship
Posts: 116
Kudos: 298
Kudos
Add Kudos
Bookmarks
Bookmark this Post
can someone help me here?
I do not understand why we are multiplying 5! here?
Select 5 digits out of 10 in 10C5 ways and arrange them in 5! ways which gives us 10C5x5! = 30240

i thought selecting 5 digits out of 10 would be just 10C5 .Am i missing anything?










VeritasPrepKarishma
phamduyha: The question says 'no digit should be used more than twice' which means that a digit can be used at most 2 times. So you have to take 3 cases:

Case 1: All digits distinct
Select 5 digits out of 10 in 10C5 ways and arrange them in 5! ways which gives us 10C5x5! = 30240

Case 2: Two digits are same, other 3 are dictinct e.g. 45722
Select a digit which is to be repeated in 10C1 ways, select other 3 digits in 9C3 ways and arrange them in 5!/2! ways to get 10C1 x 9C3 x 5!/2! = 50400 ways

Case 3: Two digits repeated and one other digit e.g. 33448
Select 2 digits to be repeated in 10C2 ways, select the single digit in 8C1 ways and arrange them all in 5!/2!.2! ways to get 10C2 x 8C1 x 5!/2!.2! = 10800

Sum of all = 30240 + 50400 + 10800 = 91440 ways

Generally, actual GMAT questions will not be calculation intensive since you are required to solve them in under 2 mins.
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 22 Apr 2026
Posts: 109,740
Own Kudos:
810,535
 [1]
Given Kudos: 105,817
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 109,740
Kudos: 810,535
 [1]
Kudos
Add Kudos
1
Bookmarks
Bookmark this Post
sunita123
can someone help me here?
I do not understand why we are multiplying 5! here?
Select 5 digits out of 10 in 10C5 ways and arrange them in 5! ways which gives us 10C5x5! = 30240

i thought selecting 5 digits out of 10 would be just 10C5 .Am i missing anything?

VeritasPrepKarishma
phamduyha: The question says 'no digit should be used more than twice' which means that a digit can be used at most 2 times. So you have to take 3 cases:

Case 1: All digits distinct
Select 5 digits out of 10 in 10C5 ways and arrange them in 5! ways which gives us 10C5x5! = 30240

Case 2: Two digits are same, other 3 are dictinct e.g. 45722
Select a digit which is to be repeated in 10C1 ways, select other 3 digits in 9C3 ways and arrange them in 5!/2! ways to get 10C1 x 9C3 x 5!/2! = 50400 ways

Case 3: Two digits repeated and one other digit e.g. 33448
Select 2 digits to be repeated in 10C2 ways, select the single digit in 8C1 ways and arrange them all in 5!/2!.2! ways to get 10C2 x 8C1 x 5!/2!.2! = 10800

Sum of all = 30240 + 50400 + 10800 = 91440 ways

Generally, actual GMAT questions will not be calculation intensive since you are required to solve them in under 2 mins.

Yes, the number of way to select 5 digits out of 10 is 10C5. But these 5 digits can be arranged in 5!=120 ways, each of which gives different code. Hence the number of codes for this case is 10C5*5!.

One could also do 10P5 (which is basically the same as 10C5*5!): selecting 5 digits out of 10, when the order of the selection matters.

Hope it's clear.
User avatar
sunita123
Joined: 13 Oct 2013
Last visit: 09 Mar 2022
Posts: 116
Own Kudos:
Given Kudos: 530
Concentration: Strategy, Entrepreneurship
Posts: 116
Kudos: 298
Kudos
Add Kudos
Bookmarks
Bookmark this Post
oh yess:).
Thanks Bunuel.


Bunuel
sunita123
can someone help me here?
I do not understand why we are multiplying 5! here?
Select 5 digits out of 10 in 10C5 ways and arrange them in 5! ways which gives us 10C5x5! = 30240

i thought selecting 5 digits out of 10 would be just 10C5 .Am i missing anything?

VeritasPrepKarishma
phamduyha: The question says 'no digit should be used more than twice' which means that a digit can be used at most 2 times. So you have to take 3 cases:

Case 1: All digits distinct
Select 5 digits out of 10 in 10C5 ways and arrange them in 5! ways which gives us 10C5x5! = 30240

Case 2: Two digits are same, other 3 are dictinct e.g. 45722
Select a digit which is to be repeated in 10C1 ways, select other 3 digits in 9C3 ways and arrange them in 5!/2! ways to get 10C1 x 9C3 x 5!/2! = 50400 ways

Case 3: Two digits repeated and one other digit e.g. 33448
Select 2 digits to be repeated in 10C2 ways, select the single digit in 8C1 ways and arrange them all in 5!/2!.2! ways to get 10C2 x 8C1 x 5!/2!.2! = 10800

Sum of all = 30240 + 50400 + 10800 = 91440 ways

Generally, actual GMAT questions will not be calculation intensive since you are required to solve them in under 2 mins.

Yes, the number of way to select 5 digits out of 10 is 10C5. But these 5 digits can be arranged in 5!=120 ways, each of which gives different code. Hecen the number of codes for this case is 10C5*5!.

One could also do 10P5 (which is basically the same as 10C5*5!): selecting 5 digits out of 10, when the order of the selection matters.

Hope it's clear.
User avatar
KarishmaB
Joined: 16 Oct 2010
Last visit: 21 Apr 2026
Posts: 16,439
Own Kudos:
79,381
 [2]
Given Kudos: 484
Location: Pune, India
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 16,439
Kudos: 79,381
 [2]
2
Kudos
Add Kudos
Bookmarks
Bookmark this Post
VeritasPrepKarishma
phamduyha: The question says 'no digit should be used more than twice' which means that a digit can be used at most 2 times. So you have to take 3 cases:

Case 1: All digits distinct
Select 5 digits out of 10 in 10C5 ways and arrange them in 5! ways which gives us 10C5x5! = 30240

Case 2: Two digits are same, other 3 are dictinct e.g. 45722
Select a digit which is to be repeated in 10C1 ways, select other 3 digits in 9C3 ways and arrange them in 5!/2! ways to get 10C1 x 9C3 x 5!/2! = 50400 ways

Case 3: Two digits repeated and one other digit e.g. 33448
Select 2 digits to be repeated in 10C2 ways, select the single digit in 8C1 ways and arrange them all in 5!/2!.2! ways to get 10C2 x 8C1 x 5!/2!.2! = 10800

Sum of all = 30240 + 50400 + 10800 = 91440 ways

Generally, actual GMAT questions will not be calculation intensive since you are required to solve them in under 2 mins.
Responding to a pm:
Quote:

I did it in 3 cases just like you.

Case1 (abcde): 10*9*8*7*6 = 30240 ways
Case 2 (aabcd): 10*10*9*8*7 = 50400 ways
Case 3 (aabbc): 10*10*9*9*8 = 64800 ways (Shouldn't this case has more ways than 2 cases above?)

Total = 30240 + 50400 + 64800 = 145400 ways

As you can see, your case 3 has a problem.
There are 10 ways of writing the leftmost digit - correct
Then there are 10 ways of writing the next digit - correct
For the next digit, there could be 9 ways or there could be 10 ways depending on what was chosen previously:
e.g 22 __ __ __ - here there are 9 ways of choosing the next digit.
23 __ __ __ - here there are 10 ways of choosing the next digit. Both 2 and 3 can be repeated as opposed to case 2 where only one digit can be repeated.
Hence, don't do the question this way. Choose the repeated digits and then arrange as I have done above. Note that there will be far fewer cases here because 2 digits will be repeated so fewer different digits will be there. So the number of arrangements will be fewer.

Now think, why does case 2 work but case 3 does not.
User avatar
Alexey1989x
Joined: 05 Dec 2016
Last visit: 20 May 2023
Posts: 187
Own Kudos:
Given Kudos: 49
Concentration: Strategy, Finance
GMAT 1: 620 Q46 V29
GMAT 1: 620 Q46 V29
Posts: 187
Kudos: 98
Kudos
Add Kudos
Bookmarks
Bookmark this Post
VeritasPrepKarishma
phamduyha: The question says 'no digit should be used more than twice' which means that a digit can be used at most 2 times. So you have to take 3 cases:

Case 1: All digits distinct
Select 5 digits out of 10 in 10C5 ways and arrange them in 5! ways which gives us 10C5x5! = 30240

Case 2: Two digits are same, other 3 are dictinct e.g. 45722
Select a digit which is to be repeated in 10C1 ways, select other 3 digits in 9C3 ways and arrange them in 5!/2! ways to get 10C1 x 9C3 x 5!/2! = 50400 ways

Case 3: Two digits repeated and one other digit e.g. 33448
Select 2 digits to be repeated in 10C2 ways, select the single digit in 8C1 ways and arrange them all in 5!/2!.2! ways to get 10C2 x 8C1 x 5!/2!.2! = 10800

Sum of all = 30240 + 50400 + 10800 = 91440 ways

Generally, actual GMAT questions will not be calculation intensive since you are required to solve them in under 2 mins.

Hi, could you please specify the logic for 2nd and 3rd cases.
2nd case:
I do not grasp the logic why you're counting 10C1 only once as long as we have assume that 2 digits are the same? And what is the rationale for using 5!/2! to arrange, why do we have a 2! in denominator? I'd rather used 3! to arrange remaining 3 distinct digits.
3d case:
Actually the same questions as above. I'd rather used 10C2 for the first pair of the same digits, then 8C2 for second pair of the same digits, and then 6C1 for the last one then arrange in 5!.
Would appreciate for explanation.
P.S. I'm not stable at computations. Some problems are solved smoothly however others like this one makes me stuck for many minutes...
User avatar
KarishmaB
Joined: 16 Oct 2010
Last visit: 21 Apr 2026
Posts: 16,439
Own Kudos:
79,381
 [2]
Given Kudos: 484
Location: Pune, India
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 16,439
Kudos: 79,381
 [2]
2
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Alexey1989x
VeritasPrepKarishma
phamduyha: The question says 'no digit should be used more than twice' which means that a digit can be used at most 2 times. So you have to take 3 cases:

Case 1: All digits distinct
Select 5 digits out of 10 in 10C5 ways and arrange them in 5! ways which gives us 10C5x5! = 30240

Case 2: Two digits are same, other 3 are dictinct e.g. 45722
Select a digit which is to be repeated in 10C1 ways, select other 3 digits in 9C3 ways and arrange them in 5!/2! ways to get 10C1 x 9C3 x 5!/2! = 50400 ways

Case 3: Two digits repeated and one other digit e.g. 33448
Select 2 digits to be repeated in 10C2 ways, select the single digit in 8C1 ways and arrange them all in 5!/2!.2! ways to get 10C2 x 8C1 x 5!/2!.2! = 10800

Sum of all = 30240 + 50400 + 10800 = 91440 ways

Generally, actual GMAT questions will not be calculation intensive since you are required to solve them in under 2 mins.

Hi, could you please specify the logic for 2nd and 3rd cases.
2nd case:
I do not grasp the logic why you're counting 10C1 only once as long as we have assume that 2 digits are the same? And what is the rationale for using 5!/2! to arrange, why do we have a 2! in denominator? I'd rather used 3! to arrange remaining 3 distinct digits.
3d case:
Actually the same questions as above. I'd rather used 10C2 for the first pair of the same digits, then 8C2 for second pair of the same digits, and then 6C1 for the last one then arrange in 5!.
Would appreciate for explanation.
P.S. I'm not stable at computations. Some problems are solved smoothly however others like this one makes me stuck for many minutes...

You select one digit which has to be repeated. That digit will be written twice. So you just need to select one such digit. You can do that in 10C1 ways. The one selection could be 0 or 1 or 2 ...etc. This you will write twice.

Now you have place for 3 other digits. These you select in 9C3 ways.

How do you arrange something like 11234? Note that 12314, 21341 etc are all valid arrangements.
How do you arrange n things in which r are the same? You use n!/r!.

To know why, check out this video: https://www.youtube.com/watch?v=1zhltihi5VU
avatar
2asc
Joined: 27 Nov 2018
Last visit: 08 Apr 2021
Posts: 25
Own Kudos:
Given Kudos: 147
Posts: 25
Kudos: 32
Kudos
Add Kudos
Bookmarks
Bookmark this Post
VeritasKarishma

Hi! I understand your solution however I solved the problem focusing on the available slots instead of available numbers. I managed to get the same number as you for the first two cases... however, case three I ended up with a different number although the equation we have is equivalent. Here's what I have:

Case one: ABCDE
number of different combinations 5 numbers can make out of 10 numbers
10P5=30240
Case two: AABCD
(# of different combinations 4 numbers can make out of 10 numbers) * (#of positions that one number of each code(A) that is selected to be repeated can take within the 5 slots)
10P4 * 5C2 = 50400

Case three: AABBC
(number of different combinations 3 numbers can make out of 10 numbers) * (#of positions that one number of each code(A) that is selected to be repeated can take within the 5 slots) * (#of positions that another number(B) of each code that is selected to be repeated can take within the remaining three slots)
10P3 * 5C2 * 3C2 = (10*9*8)*[5!/(3!2!)]*(3!/2!)=21600
=> what I have broken down is essentially the same equation as you have for case three, however I got 21600 for the answer.

Please shed some light on this!
Thank you!
User avatar
KarishmaB
Joined: 16 Oct 2010
Last visit: 21 Apr 2026
Posts: 16,439
Own Kudos:
79,381
 [1]
Given Kudos: 484
Location: Pune, India
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 16,439
Kudos: 79,381
 [1]
1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
2asc
VeritasKarishma

Hi! I understand your solution however I solved the problem focusing on the available slots instead of available numbers. I managed to get the same number as you for the first two cases... however, case three I ended up with a different number although the equation we have is equivalent. Here's what I have:

Case one: ABCDE
number of different combinations 5 numbers can make out of 10 numbers
10P5=30240
Case two: AABCD
(# of different combinations 4 numbers can make out of 10 numbers) * (#of positions that one number of each code(A) that is selected to be repeated can take within the 5 slots)
10P4 * 5C2 = 50400

Case three: AABBC
(number of different combinations 3 numbers can make out of 10 numbers) * (#of positions that one number of each code(A) that is selected to be repeated can take within the 5 slots) * (#of positions that another number(B) of each code that is selected to be repeated can take within the remaining three slots)
10P3 * 5C2 * 3C2 = (10*9*8)*[5!/(3!2!)]*(3!/2!)=21600
=> what I have broken down is essentially the same equation as you have for case three, however I got 21600 for the answer.

Please shed some light on this!
Thank you!

In case 3, you have not selected the 2 digits that are to be repeated. Also use of 10P3 is incorrect since you are selecting 3 digits, not arranging them if you are selecting slots later.
Look, in such tricky questions, ALWAYS separate out the selection and arrangement.
Select 2 digits that are to be repeated first in 10C2 ways . Then select one more digit that needs to go with them in 8C2 ways. Then arrange all 5 in 5!/2!*2! ways.
avatar
Ana4001
Joined: 30 Dec 2018
Last visit: 13 Aug 2023
Posts: 22
Own Kudos:
10
 [1]
Given Kudos: 30
Concentration: International Business, Marketing
Posts: 22
Kudos: 10
 [1]
1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
why not the third case is 10C1 *9C1*8C1*5!/2!*2!
User avatar
exc4libur
Joined: 24 Nov 2016
Last visit: 22 Mar 2022
Posts: 1,680
Own Kudos:
Given Kudos: 607
Location: United States
Posts: 1,680
Kudos: 1,469
Kudos
Add Kudos
Bookmarks
Bookmark this Post
eladshus
For a certain alarm system, each code is comprised of 5 digits, but no digit can be used more than twice. How many codes can be made?

A. 30,240
B. 60,480
C. 91,440
D. 98,240
E. 101,040

SOLUTION 1: TOTAL - NOTCASE
\(total(anydigit):10•10•10•10•10=10^5=100,000\)
\(22333(double,triple):10C1•9C1•arrangements(5!/2!3!)=10•9•10=900\)
\(33300(triple,distincts):10C1•9C2•arrangements(5!/3!)=10•36•20=7,200\)
\(44440(quad,distinct):10C1•9C1•arrangements(5!/4!)=10•9•5=450\)
\(55555(quintuple):10C1•arrangements(5!/5!)=10•1=10\)
\(TOTAL-NOT=100,000-(900+7200+450+10)=91,440\)

Answer (C)

SOLUTION 2: CASES
\(00000(distincts):10C5•arrangements(5!)=30,240\)
\(11000(one-pair,distincts):10C1•9C3•arrangements(5!/2!)=10•36•20=50,400\)
\(11220(two-pairs,distinct):10C2•8C1•arrangements(5!/2!2!)=45•8•30=10,800\)
\(CASES=30,240+50,400+10,800=91,440\)

Answer (C)
User avatar
rsrighosh
Joined: 13 Jun 2019
Last visit: 11 Dec 2022
Posts: 184
Own Kudos:
Given Kudos: 645
GMAT 1: 490 Q42 V17
GMAT 2: 550 Q39 V27
GMAT 3: 630 Q49 V27
GMAT 3: 630 Q49 V27
Posts: 184
Kudos: 137
Kudos
Add Kudos
Bookmarks
Bookmark this Post
VeritasKarishma

Could you please help me with my query.

I see in your solution :-

Quote:
Case 1: All digits distinct
Select 5 digits out of 10 in 10C5 ways and arrange them in 5! ways which gives us 10C5x5! = 30240

Case 2: Two digits are same, other 3 are dictinct e.g. 45722
Select a digit which is to be repeated in 10C1 ways, select other 3 digits in 9C3 ways and arrange them in 5!/2! ways to get 10C1 x 9C3 x 5!/2! = 50400 ways

Case 3: Two digits repeated and one other digit e.g. 33448
Select 2 digits to be repeated in 10C2 ways, select the single digit in 8C1 ways and arrange them all in 5!/2!.2! ways to get 10C2 x 8C1 x 5!/2!.2! = 10800

Sum of all = 30240 + 50400 + 10800 = 91440 ways

Case 2 and 3, you have used 10c1 * 9c3 instead of 10c4 and 10C2 * 8C1 instead of 10C3.
Could you please explain why 10c4 and 10c3 will yield wrong answer? What was the logic behind 10c1 * 9c3 OR 10C2 * 8C1
User avatar
happypuppy
Joined: 29 Mar 2020
Last visit: 03 Dec 2023
Posts: 203
Own Kudos:
Given Kudos: 238
Location: India
Concentration: Entrepreneurship, Technology
GMAT 1: 720 Q50 V38 (Online)
GPA: 3.5
Products:
GMAT 1: 720 Q50 V38 (Online)
Posts: 203
Kudos: 448
Kudos
Add Kudos
Bookmarks
Bookmark this Post
eladshus
For a certain alarm system, each code is comprised of 5 digits, but no digit can be used more than twice. How many codes can be made?

A. 30,240
B. 60,480
C. 91,440
D. 98,240
E. 101,040

Possible arrangements:

1. 5 Unique
Ex - 1 2 3 4 5

10C5 * 5! = 10*9*8*7*6
30240

2. 1 pair repeated & 3 unique
Ex - 1 1 0 2 3

10C1 * 9C3 * 5!/2!
10 * 9*8*7/(3*2) * 5*4*3
10 * 9*8*7 * 5*2
50400

3. 2 pairs repeated & 1 unique
Ex - 1 1 2 2 3

10C2 * 8C1 * 5!/(2!*2!)

5*9 * 8 * 5*3*2
10800


Sum it up:

30240+50400+10800
91440

Answer: (C)
User avatar
KarishmaB
Joined: 16 Oct 2010
Last visit: 21 Apr 2026
Posts: 16,439
Own Kudos:
79,381
 [2]
Given Kudos: 484
Location: Pune, India
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 16,439
Kudos: 79,381
 [2]
2
Kudos
Add Kudos
Bookmarks
Bookmark this Post
rsrighosh
VeritasKarishma

Could you please help me with my query.

I see in your solution :-

Quote:
Case 1: All digits distinct
Select 5 digits out of 10 in 10C5 ways and arrange them in 5! ways which gives us 10C5x5! = 30240

Case 2: Two digits are same, other 3 are dictinct e.g. 45722
Select a digit which is to be repeated in 10C1 ways, select other 3 digits in 9C3 ways and arrange them in 5!/2! ways to get 10C1 x 9C3 x 5!/2! = 50400 ways

Case 3: Two digits repeated and one other digit e.g. 33448
Select 2 digits to be repeated in 10C2 ways, select the single digit in 8C1 ways and arrange them all in 5!/2!.2! ways to get 10C2 x 8C1 x 5!/2!.2! = 10800

Sum of all = 30240 + 50400 + 10800 = 91440 ways

Case 2 and 3, you have used 10c1 * 9c3 instead of 10c4 and 10C2 * 8C1 instead of 10C3.
Could you please explain why 10c4 and 10c3 will yield wrong answer? What was the logic behind 10c1 * 9c3 OR 10C2 * 8C1

rsrighosh

Look at case 2:

In our selection, of the 4 digits needed to make the five digit number, one digit is unique. That digit will be repeated. So to make 45722, we have to select a digit that will be repeated (which is 2 in our example) and 3 other digits (4, 5 and 7).

When we use nCr, out of n distinct elements, we select r. These r elements are all equivalent. But here, the 4 elements are not equivalent. One of them is special in that it will be repeated.
It is like selecting 1 manager and 3 workers. Out of 10 people, how will you select 1 manager and 3 workers? Will 10C4 work? No. You need to select the manager separately. The 3 workers can be selected as a group. So 10C1 * 9C3 will be done.

It is the same case here. We select the digit to be repeated separately.
When we do 10C4, how do we know which digit is repeated? Say we select 2, 4, 5, and 7. But the number could be 22457 or 24457 or 24557 or 24577 and their arrangements, each done in 5!/2! ways.

So this will be 10C4 * 4 = 10*9*8*7/4*3*2 * 4 = 10 * (9*8*7/3*2) which is the same as 10C1 * 9C3.
 1   2   
Moderators:
Math Expert
109740 posts
Tuck School Moderator
853 posts