Combinatorics simple problem

Maths and statistics discussion, revision, exam and homework help.

Announcements Posted on
Please change your TSR password 23-05-2013
Enter our travel-writing competition for the chance to win a Nikon 1 J3 camera 20-05-2013
IMPORTANT: You must wait until midnight (morning exams)/4.30AM (afternoon exams) to discuss Edexcel exams and until 1pm/6pm the following day for STEP and IB exams. Please read before posting, including for rules for practical and oral exams. 28-04-2013
Sign in to Reply
  1. joanna1996's Avatar
    • Junior Member
    • Location: Bydgoszcz, Poland
    • Posts: 39
    Combinatorics simple problem
    1. You’ve just established an account with eatmybroccoli.com and you need a password. The password
    must be exactly 6 characters long. Each character must be a lower-case letter (a through z) or a
    number (0 through 9). Exactly three characters must be numbers and exactly three characters must
    be letters, but they can be in any order. No character can be repeated in the password. How many
    different passwords can you make?



    My answer would be: 26 \cdot 25 \cdot 24 \cdot 10 \cdot 9 \cdot 8 \cdot 6!

    That's how I see it: we can choose 3 letter out of 26 (a-z) in 26 \cdot 25 \cdot 24 ways and 3 digits out of 10 (0-9) in 10 \cdot 9 \cdot 8 ways. Now, any of the 6 characters can take any of the 6 places available, thus 6!. All combined, gives the answer given above.

    Please tell me, what do I do wrong here?
  2. Snakefingers13's Avatar
    • Respected Member
    • Posts: 238
    Do you have a correct answer to check with?


    This was posted from The Student Room's iPhone/iPad App
  3. joanna1996's Avatar
    • Junior Member
    • Location: Bydgoszcz, Poland
    • Posts: 39
    Re: Combinatorics simple problem
    Yes, I do. The answer is different from mine, that's why I'm asking on this forum what's wrong with my solution.
    Last edited by joanna1996; 03-08-2012 at 12:29.
  4. atsruser's Avatar
    • Adored and Respected Member
    • Posts: 455
    Re: Combinatorics simple problem
    (Original post by joanna1996)
    1. You’ve just established an account with eatmybroccoli.com and you need a password. The password
    must be exactly 6 characters long. Each character must be a lower-case letter (a through z) or a
    number (0 through 9). Exactly three characters must be numbers and exactly three characters must
    be letters, but they can be in any order. No character can be repeated in the password. How many
    different passwords can you make?



    My answer would be: 26 \cdot 25 \cdot 24 \cdot 10 \cdot 9 \cdot 8 \cdot 6!

    That's how I see it: we can choose 3 letter out of 26 (a-z) in 26 \cdot 25 \cdot 24 ways and 3 digits out of 10 (0-9) in 10 \cdot 9 \cdot 8 ways. Now, any of the 6 characters can take any of the 6 places available, thus 6!. All combined, gives the answer given above.

    Please tell me, what do I do wrong here?
    You have an alphabet of 36 characters to choose from: {a, .. z, 0 .. 9} so your calculation will start 36 \cdot 35 \cdot etc

    The letters aren't being treated separately to the digits. Does that help?

    [oops: hold the press: I misread the question - it's restricted to 3 numbers and 3 letters, in which case, your approach looks fine at first sight]
    Last edited by atsruser; 03-08-2012 at 13:11.
  5. atsruser's Avatar
    • Adored and Respected Member
    • Posts: 455
    Re: Combinatorics simple problem
    (Original post by joanna1996)
    1. You’ve just established an account with eatmybroccoli.com and you need a password. The password
    must be exactly 6 characters long. Each character must be a lower-case letter (a through z) or a
    number (0 through 9). Exactly three characters must be numbers and exactly three characters must
    be letters, but they can be in any order. No character can be repeated in the password. How many
    different passwords can you make?



    My answer would be: 26 \cdot 25 \cdot 24 \cdot 10 \cdot 9 \cdot 8 \cdot 6!

    That's how I see it: we can choose 3 letter out of 26 (a-z) in 26 \cdot 25 \cdot 24 ways and 3 digits out of 10 (0-9) in 10 \cdot 9 \cdot 8 ways. Now, any of the 6 characters can take any of the 6 places available, thus 6!. All combined, gives the answer given above.

    Please tell me, what do I do wrong here?
    You're overcounting the number of permutations. You can take 26C3 different groups of 3 letters and 10C3 different groups of 3 numbers to give 26C3 x 10C3 x 6! = 224640000 perms.
  6. joanna1996's Avatar
    • Junior Member
    • Location: Bydgoszcz, Poland
    • Posts: 39
    Re: Combinatorics simple problem
    So which answer would be correct? The official one says it should be: {6 \choose 3 }(26 \cdot 25 \cdot 24 \cdot 10 \cdot 9 \cdot 8), but I don't understand why 6 \choose 3 should be there...
  7. atsruser's Avatar
    • Adored and Respected Member
    • Posts: 455
    Re: Combinatorics simple problem
    (Original post by joanna1996)
    So which answer would be correct? The official one says it should be: {6 \choose 3 }(26 \cdot 25 \cdot 24 \cdot 10 \cdot 9 \cdot 8), but I don't understand why 6 \choose 3 should be there...
    First, ^{26}P_3 = 26 \cdot 25 \cdot 24 and ^{10}P_3 = 10 \cdot 9 \cdot 8 so (26 \cdot 25 \cdot 24 \cdot 10 \cdot 9 \cdot 8) counts the total number of ways we can combine all perms of 3 letters with all perms of 3 numbers. For example, we can do the following:

    {a,b,c} with {1,2,3}
    {a,b,c} with {1,3,2}
    ...
    {b,a,c} with {1,2,3}
    {b,a,c} with {1,3,2}
    ...
    [many, many combinations of sets omitted]
    ...
    {x,y,z} with {1,2,3}
    {x,y,z} with {1,3,2}
    ..
    {z,y,x} with {3,2,1}

    The left hand column holds all the possible perms of 3 from 26 letters, the right hand column holds all the possible perms of 3 from 10 numbers.

    If we take a particular combination, say {p,a,e} with {6,1,4}, we are not allowed to change the order of the letters or numbers (as we've already made a list of all possible orders) but we can order them left-to-right in six boxes, like so:

    p,a,e,6,1,4
    p,a,6,e,1,4
    p,6,a,1,4,e

    and so on. How many ways can we do this for each pair of permutation sets?

    Well, we have 6 boxes, and once we have chosen 3 of them for the letters, we have by default chosen the remaining 3 for the numbers. Thus, we can make ^6C_3 different arrangements using any given pair of each of the (26 \cdot 25 \cdot 24 \cdot 10 \cdot 9 \cdot 8) permutation sets. Hence we have a total of {6 \choose 3 }(26 \cdot 25 \cdot 24 \cdot 10 \cdot 9 \cdot 8) arrangments.

    Does that make sense? Personally, I prefer the argument I gave earlier, but it's useful to do it in different ways.
  8. joanna1996's Avatar
    • Junior Member
    • Location: Bydgoszcz, Poland
    • Posts: 39
    Re: Combinatorics simple problem
    Yes, now it makes a lot of sense! Thank you very much! :*

    I must say I also prefer your version - {26 \choose 3}{10 \choose 3}6! is just a lot clearer to me than the official suggestion. I'm very grateful for your help
  9. atsruser's Avatar
    • Adored and Respected Member
    • Posts: 455
    Re: Combinatorics simple problem
    (Original post by joanna1996)
    Yes, now it makes a lot of sense! Thank you very much! :*

    I must say I also prefer your version - {26 \choose 3}{10 \choose 3}6! is just a lot clearer to me than the official suggestion. I'm very grateful for your help
    My pleasure.

    I ought to point out that my notation was very loose in the explanation above. I was holding different permutations in things that I referred to as "sets"; this is mathematical nonsense, since sets don't remember the order of the objects inside them. I should really have called them ordered lists, or something. That doesn't change the argument though.
  10. SubAtomic's Avatar
    • Exalted and Worshipped Member
    • Posts: 1,316
    Re: Combinatorics simple problem
    What module is this please?

    Just studied something similar but I couldn't have answered your question. I obviously need more understanding.
  11. Snakefingers13's Avatar
    • Respected Member
    • Posts: 238
    The only thing I can suggest is that by doing 26*25*24 you were doing 26P3 and not 26C3.


    This was posted from The Student Room's iPhone/iPad App
  12. joanna1996's Avatar
    • Junior Member
    • Location: Bydgoszcz, Poland
    • Posts: 39
    Re: Combinatorics simple problem
    (Original post by SubAtomic)
    What module is this please?

    Just studied something similar but I couldn't have answered your question. I obviously need more understanding.
    I'm sorry, I'm not from the UK, so I'm not doing A-levels and have unfortunately no idea to which model do the problems of this type belong.

    I can only say that I found this question (#26) here: http://mcis.jsu.edu/mathcontest/comp1ans12.pdf
  13. SubAtomic's Avatar
    • Exalted and Worshipped Member
    • Posts: 1,316
    Re: Combinatorics simple problem
    (Original post by joanna1996)
    I'm sorry, I'm not from the UK, so I'm not doing A-levels and have unfortunately no idea to which model do the problems of this type belong.

    I can only say that I found this question (#26) here: http://mcis.jsu.edu/mathcontest/comp1ans12.pdf
    It's ok thanks, it is part of Binomial theorem, so it could be in C2 or C4, but maybe it is to do with synthesising all that is learnt, mind you America will have different courses so that would help when trying to answer a question from an Alabama maths competition:cool:.
Sign in to Reply
Share this discussion:  
Article updates
Moderators

We have a brilliant team of more than 60 volunteers looking after discussions on The Student Room, helping to make it a fun, safe and useful place to hang out.

Reputation gems:
The Reputation gems seen here indicate how well reputed the user is, red gem indicate negative reputation and green indicates a good rep.
Post rating score:
These scores show if a post has been positively or negatively rated by our members.