Louis14
I get the slot method. No issues with the answer. But, I am really confused as to why we didn't multiply 6720 by 5! ? I think we need to account for different orders/arrangements as well: 10243 and 30241 are equally legal codes here.
(If it is possible, could you please explain when do we multiple with n! to account for different orders, and when do we not? It's really get over my head now.)
If you are counting your choices for each position, then multiplying, you are
already putting your things in order. So for this question, when we say we have 5 choices for the first digit, 4 for the last, and then 8, 7 and 6 choices for the second, third and fourth digits, we're already putting our chosen digits in order, and the answer is just (5)(4)(8)(7)(6). There's no need to do anything else (besides multiply that out).
Some books teach counting differently, and some solutions you'll read on this forum use that different approach, which can be confusing. So some people count by doing this:
- selecting the set of k objects you need, assuming they are not in order
- multiplying by k! when the objects should be put in order
If you did that here, you'd say "there are 5C2 ways to pick the two odd digits, but we multiply that by 2! because order matters, and there are 8C3 ways to then pick the three middle digits, but we multiply that by 3! because order matters". So the solution becomes 5C2*2!*8C3*3! = [(5)(4)/2!] * 2! * [(8)(7)(6)/3!] * 3! = (5)(4)(8)(7)(6), the same answer we got above. For GMAT purposes, I really dislike this approach to counting (notice how it dramatically overcomplicates this problem) but I imagine this is the type of solution you're thinking of, when you ask if we should multiply by 5! here.
So when order matters, or in other words when you can correctly use the "slot method", all you need to do is count how many choices you have for each slot, and multiply those numbers of choices together. If, however, order does *not* matter (e.g. if you are counting how many different teams of 3 could be chosen from a group of 8 employees), then you can't just multiply your choices, because if you did, you'd be assuming things are in order when they shouldn't be.
I also notice there are a few questions in this thread (some quite old!) but in case anyone has the same concerns, I'll address all of them:
serpent333
However, I think 6720 (the answer given in
MGMAT) is wrong. Here's my reasoning. If you have (an) odd number(s) for your 2nd, 3rd and/or 4th digits, you cannot repeat that(those) numbers for the last digit. Therefore, this problem needs to be partitioned into 4 groups.
1) ODD (1st digit); 3 EVENs (2nd, 3rd, 4th digits); ODD (5th digit)
5 x 5x 4 x 3 x 4 = 1200
2) ODD (1st digit); 2 EVEN, 1 ODD (2nd, 3rd, 4th digits); ODD (5th digit)
5 x 5 x 4 x 4 x 3 = 1200
3) ODD (1st digit); 1 EVEN, 2 ODDs (2nd, 3rd, 4th digits); ODD (5th digit)
5 x 5x 4 x 3 x 2 = 600
4) ODD (1st digit); 3 ODDs (2nd, 3rd, 4th digits); ODD (5th digit)
5 x 4 x 3 x 2 x 1 = 120
This solution is almost correct, but in cases 2) and 3), it is missing many possibilities. In case 2), the solution seems to assume that the digits are in the specific order OEEOO (where O means Odd, E means Even). But they could be in three orders, not just one: OEEOO, OEOEO, or OOEEO. So if we want to have two even digits in the middle, there will be 3*1200 codes we can make, and similarly for case 3), there will be 3*600 codes we can make. With those two adjustments, the solution becomes correct: 1200 + 3*1200 + 3*600 + 120 = 6720. Of course there is no need to divide the problem into these cases, so this solution is much longer than it needs to be, but it's logically fine.
jeeyo
Odd numbers 1,3,5,7,9 so first digit 5 options, last place 4 options ( no repetition).
That leaves us with 7 (of 9) digits to choose for the middle three.
So we have 5 x 4 for the irst and last
and 7 x 6 x 5 for the iddle three
Total is 5 x 7 x 6 x 5 x 4 = 4200.
The above solution doesn't allow for any of the middle digits to be zero, so it's undercounting the choices (by one) for each of the middle digits.