combinations and permutations
combinations and permutations
Author
Discussion

obiwonkeyblokey

Original Poster:

5,400 posts

271 months

Wednesday 5th April 2006
quotequote all
A chap in the office and I are having a debate based around the possible combinations of a 4 letter code.

I think its 456,976 based on 26 x 26 x 26 x 26, however he says that is a combination and the real answer is different ( a premutation) despite the fact he cant prove me wrong.


anyone care to help?

thanks

ATG

23,891 posts

303 months

Wednesday 5th April 2006
quotequote all
you are right ... there are 26 ways of choosing each letter, each choice is entirely independent, so there are 26^4 combinations. You'd only need to start thinking about perms and combs if you decided to define codes like "aaab" and "baaa" as being the same, or you said you couldn't repeat a letters more than a certain number of times.

>> Edited by ATG on Wednesday 5th April 15:17

Tyre Smoke

23,018 posts

292 months

Wednesday 5th April 2006
quotequote all
Are you particularly bored today Owen?

ewenm

28,506 posts

276 months

Wednesday 5th April 2006
quotequote all
ATG said:
you are right ... there are 26 ways of choosing each letter, each choice is entirely independent, so there are 26^4 combinations. You'd only need to start thinking about perms and combs if you decided to define codes like "aaab" and "baaa" as being the same, or you said you couldn't repeat a letters more than a certain number of times.


What he said

obiwonkeyblokey

Original Poster:

5,400 posts

271 months

Wednesday 5th April 2006
quotequote all
not really, I just bought a piece of software aon line and was givena 4 letter activatio code for it. someone commented that they thought it would be longer. I said that there were 456,976 combinations and they said I was wrong.


........i dont like being wrong......

plus I win a tenner

>> Edited by obiwonkeyblokey on Wednesday 5th April 15:19