Permutations

Chat about anything and everything here!
Forum rules
The global forum rules are found here.

NOTE: posts in this section are not counted towards your total.
Post Reply
User avatar
StarPhoenix
B.Soc.Sci, M.SocSci [UPCF]
Posts: 17634
Joined: 11 Dec 2003, 02:00
Processor: Core i5 3470
Motherboard: Gigabyte G1 Sniper Z77
Graphics card: nVidia GeForce GTX 1060
Memory: 8Gb DDR3 1600
Location: East London
Contact:

Permutations

Post by StarPhoenix »

I have a bee in my bonnet

In order to distract myself from thinking about a puzzle that my boss sent me, I started thinking about
the number of ways in which the letters of the alephbeth can be combined....

How would one go about calculating the number of ways one thing can be combined with another.

I get that 1 item can be combined with 3 items in 3 ways and that 2 items can be combined with 3 items in 6, while 3x3

gives nine combinations, but am nit sure whether this is enough information from which to generalise a formula if one

to calculate the number of ways in which one can combine par of letters of the alphabet for example

a – a

a – b

a – c

….

A – Z



26 combinations for A it seems



Now I would guess that b would combine with itself and 25 other letters

C with self and 25

D with self and 25

E with self and 25

….

Z with self and 25



I am treating ab and ba as separate



Would this work out to 26x26 combinations or am I missing something?

Please point me in the right direction before this drives me nuts.
Last edited by StarPhoenix on 15 Mar 2010, 13:40, edited 1 time in total.
"Humankind cannot bear very much reality." T.S. Elliot
Mykhal
Registered User
Posts: 2166
Joined: 14 May 2009, 19:56
Location: Here

Re: Combinations

Post by Mykhal »

From what I remember from my Statistical Theory (about 20 years ago!) is that n! features somewhere. n! : eg 3! = 1x2x3 = 6, 4! = 1x2x3x4 = 24 etc!
So the number of possible combinations increase exponentially!
Image
Dual Core E2140@1.6GHz, 2 Gig Ram, 500 Gig Samsung HD, 80 Gig Maxtor, Geforce 7300se :oops:
Thanx Ama :notworthy:
User avatar
StarPhoenix
B.Soc.Sci, M.SocSci [UPCF]
Posts: 17634
Joined: 11 Dec 2003, 02:00
Processor: Core i5 3470
Motherboard: Gigabyte G1 Sniper Z77
Graphics card: nVidia GeForce GTX 1060
Memory: 8Gb DDR3 1600
Location: East London
Contact:

Re: Combinations

Post by StarPhoenix »

What is "!" when it is not an exclamation mark?

So it would be 26x25x24x.....x1 ?
"Humankind cannot bear very much reality." T.S. Elliot
Monty
Forum Moderator
Posts: 10000
Joined: 05 Feb 2004, 02:00
Processor: Intel i5-4690K @ 4.5GHZ
Motherboard: ASUS Maximus VII Formula
Graphics card: ASUS GTX970 Strix
Memory: 4 x 4GB Corsair Dominators
Location: Messing with your Mind
Contact:

Re: Combinations

Post by Monty »

StarPhoenix wrote:I am treating ab and ba as separate
So what you want is permutations, not combinations.

If you want to permute the entire alphabet (26 characters) without repeating characters, you would use 26! (factorial) which would be 26x25x24x23x22x21x20x19x18x17x16x15x14x13x12x11x10x9x8x7x6x5x4x3x2x1


If you want to permute with repeats of characters, it would be 26x26x26x26x26x26x26x26x26x26x26x26x26x26x26x26x26x26x26x26x26x26x26x26x26x26
(or 2626)

Would this work out to 26x26 combinations or am I missing something?
26 x 26 would only be for 2 characters - with repeats
Last edited by Monty on 15 Mar 2010, 10:25, edited 2 times in total.
Art Williams wrote:I'm not telling you it is going to be easy, I'm telling you it's going to be worth it.
Anakha56
Forum Administrator
Posts: 22136
Joined: 14 Jun 2004, 02:00
Processor: Ryzen 1700K
Motherboard: Asus X370
Graphics card: Asus 1060 Strix
Memory: 16GB RAM
Location: Where Google says

Re: Combinations

Post by Anakha56 »

/exits thread with smoke coming out of my ears...
JUSTICE, n A commodity which is a more or less adulterated condition the State sells to the citizen as a reward for his allegiance, taxes and personal service.
User avatar
Tribble
Registered User
Posts: 88465
Joined: 08 Feb 2007, 02:00
Processor: Intel Core i7-4770K CPU@3.50GHz
Motherboard: ACPI x64-based PC
Graphics card: GeForce GTX 780 Ti
Memory: 16GB
Location: Not here
Contact:

Re: Combinations

Post by Tribble »

/Follow Anky.

They did something like this to work out the possible combination for the lotto. I understood it both times - but cannot explain it.
Image
Monty
Forum Moderator
Posts: 10000
Joined: 05 Feb 2004, 02:00
Processor: Intel i5-4690K @ 4.5GHZ
Motherboard: ASUS Maximus VII Formula
Graphics card: ASUS GTX970 Strix
Memory: 4 x 4GB Corsair Dominators
Location: Messing with your Mind
Contact:

Re: Combinations

Post by Monty »

The possible combinations for the lotto are (47x46x45x44x43x42)/2 or 3 865 526 280
Art Williams wrote:I'm not telling you it is going to be easy, I'm telling you it's going to be worth it.
User avatar
hamin_aus
Forum Moderator
Posts: 18363
Joined: 28 Aug 2003, 02:00
Processor: Intel i7 3770K
Motherboard: GA-Z77X-UP4 TH
Graphics card: Galax GTX1080
Memory: 32GB G.Skill Ripjaws
Location: Where beer does flow and men chunder
Contact:

Re: Combinations

Post by hamin_aus »

Image

Derp.
Image
User avatar
Prime
Registered User
Posts: 27729
Joined: 01 Mar 2004, 02:00
Location: Getting into trouble
Contact:

Re: Combinations

Post by Prime »

Expanding on what monty said about the lotto. For the lotto one, you initially have 47 numbers to take from. Then you have 46 and then 45.

So that's 47 ways to pick the first number, 46 to pick the second, 45 to pick the third.
User avatar
StarPhoenix
B.Soc.Sci, M.SocSci [UPCF]
Posts: 17634
Joined: 11 Dec 2003, 02:00
Processor: Core i5 3470
Motherboard: Gigabyte G1 Sniper Z77
Graphics card: nVidia GeForce GTX 1060
Memory: 8Gb DDR3 1600
Location: East London
Contact:

Re: Permutations

Post by StarPhoenix »

We are duly impressed.

I think I get this. :shock:

I was looking for alphabet permutations with repeats, ie 26^26.

Well now I know who to ask when next I am puzzling over something of this nature.

What is the difference between a permutation and a combination, by the way?
"Humankind cannot bear very much reality." T.S. Elliot
Monty
Forum Moderator
Posts: 10000
Joined: 05 Feb 2004, 02:00
Processor: Intel i5-4690K @ 4.5GHZ
Motherboard: ASUS Maximus VII Formula
Graphics card: ASUS GTX970 Strix
Memory: 4 x 4GB Corsair Dominators
Location: Messing with your Mind
Contact:

Re: Permutations

Post by Monty »

http://www.mathagonyaunt.co.uk/STATISTI ... combs.html

in a permutation, order matters - so 1234 is different to 1243
where as in a combination, order doesn't matter so 1234 and 1243 considered the same as they have the same digits.
Art Williams wrote:I'm not telling you it is going to be easy, I'm telling you it's going to be worth it.
VoxynQueen
Registered User
Posts: 566
Joined: 29 May 2006, 02:00
Contact:

Re: Permutations

Post by VoxynQueen »

I would have just used my calculator.
It has a permutation and combination button on it.

Otherwise use the formula that Monty gave.
User avatar
Prime
Registered User
Posts: 27729
Joined: 01 Mar 2004, 02:00
Location: Getting into trouble
Contact:

Re: Permutations

Post by Prime »

You'd be surprised how many students in my stats class sit and type out the formula for C and P :?
VoxynQueen
Registered User
Posts: 566
Joined: 29 May 2006, 02:00
Contact:

Re: Permutations

Post by VoxynQueen »

I teach some kids maths too.
Even the brightest ones are too stupid to play on their calculators to see how they work.
For example, typing out *10^ instead of pressing the EXP button.
Not know how to store things in memory.

For some bizarre reason they are also all afraid of fractions and try to make everything into a decimal.
User avatar
Prime
Registered User
Posts: 27729
Joined: 01 Mar 2004, 02:00
Location: Getting into trouble
Contact:

Re: Permutations

Post by Prime »

VoxynQueen wrote:I teach some kids maths too.
Even the brightest ones are too stupid to play on their calculators to see how they work.
For example, typing out *10^ instead of pressing the EXP button.
Not know how to store things in memory.

For some bizarre reason they are also all afraid of fractions and try to make everything into a decimal.
And they are not taught to use them properly at school level. you can do coordinate systems, degrees minutes, seconds, regression, etc.
Moses
Registered User
Posts: 2545
Joined: 21 Jul 2004, 02:00
Location: Location:
Contact:

Re: Permutations

Post by Moses »

Monty wrote:The possible combinations for the lotto are (47x46x45x44x43x42)/2 or 3 865 526 280
Why are you dividing by 2? And are there not 49 numbers in our lotto?
Monty
Forum Moderator
Posts: 10000
Joined: 05 Feb 2004, 02:00
Processor: Intel i5-4690K @ 4.5GHZ
Motherboard: ASUS Maximus VII Formula
Graphics card: ASUS GTX970 Strix
Memory: 4 x 4GB Corsair Dominators
Location: Messing with your Mind
Contact:

Re: Permutations

Post by Monty »

Moses wrote:
Monty wrote:The possible combinations for the lotto are (47x46x45x44x43x42)/2 or 3 865 526 280
Why are you dividing by 2? And are there not 49 numbers in our lotto?
Oops. Yes, there are 49 lotto numbers (Guess who has never played lotto before)

And it should be (49x48x47x46x45x44)/(6x5x4x3x2x1) or 13 983 816
Art Williams wrote:I'm not telling you it is going to be easy, I'm telling you it's going to be worth it.
endev8003
Registered User
Posts: 382
Joined: 02 May 2005, 02:00
Location: Bryanston
Contact:

Re: Permutations

Post by endev8003 »

That looks still wrong.

It should be just (49x48x47x46x45x44) which is 10 068 347 520.
Three Sheets Dutong: That stuff tastes like vomit baked in a glaze of goat hair and garnished with a sprinkling of horse dung.
Moses
Registered User
Posts: 2545
Joined: 21 Jul 2004, 02:00
Location: Location:
Contact:

Re: Permutations

Post by Moses »

endev8003 wrote:That looks still wrong.

It should be just (49x48x47x46x45x44) which is 10 068 347 520.
Wrong. Monty is now correct.
Monty
Forum Moderator
Posts: 10000
Joined: 05 Feb 2004, 02:00
Processor: Intel i5-4690K @ 4.5GHZ
Motherboard: ASUS Maximus VII Formula
Graphics card: ASUS GTX970 Strix
Memory: 4 x 4GB Corsair Dominators
Location: Messing with your Mind
Contact:

Re: Permutations

Post by Monty »

endev8003 wrote:That looks still wrong.

It should be just (49x48x47x46x45x44) which is 10 068 347 520.
No. That is permuations - ie order of the numbers matter.
The lotto just uses the numbers (order doesn't matter) so you need a combination not permutations.
Art Williams wrote:I'm not telling you it is going to be easy, I'm telling you it's going to be worth it.
Mykhal
Registered User
Posts: 2166
Joined: 14 May 2009, 19:56
Location: Here

Re: Permutations

Post by Mykhal »

Monty wrote:
endev8003 wrote:That looks still wrong.

It should be just (49x48x47x46x45x44) which is 10 068 347 520.
No. That is permuations - ie order of the numbers matter.
The lotto just uses the numbers (order doesn't matter) so you need a combination not permutations.
Just a stupid question - shouldn't it be (49x48x47x46x45x44x43.....x2)?
Image
Dual Core E2140@1.6GHz, 2 Gig Ram, 500 Gig Samsung HD, 80 Gig Maxtor, Geforce 7300se :oops:
Thanx Ama :notworthy:
SykomantiS
Registered User
Posts: 14085
Joined: 06 Oct 2004, 02:00
Location: Location, Location...
Contact:

Re: Permutations

Post by SykomantiS »

No, then you'd be using all 49 numbers for the combo, not just 6 of the 49 (I think- my maths is waaay rusty :oops:)
Monty
Forum Moderator
Posts: 10000
Joined: 05 Feb 2004, 02:00
Processor: Intel i5-4690K @ 4.5GHZ
Motherboard: ASUS Maximus VII Formula
Graphics card: ASUS GTX970 Strix
Memory: 4 x 4GB Corsair Dominators
Location: Messing with your Mind
Contact:

Re: Permutations

Post by Monty »

Mykhal wrote:
Monty wrote:
endev8003 wrote:That looks still wrong.

It should be just (49x48x47x46x45x44) which is 10 068 347 520.
No. That is permuations - ie order of the numbers matter.
The lotto just uses the numbers (order doesn't matter) so you need a combination not permutations.
Just a stupid question - shouldn't it be (49x48x47x46x45x44x43.....x2)?
No. You are only using six numbers for the lotto.

So for the first number you have 49 choices
So for the second number you have 48 choices
So for the third number you have 47 choices
So for the forth number you have 46 choices
So for the fifth number you have 45 choices
So for the sixth number you have 44 choices
So 49 x 48 x 47 x 46 x 45 x 44

And as the order doesnt matter, you need to divide by 6 x 5 x 4 x 3 x 2 x 1
Art Williams wrote:I'm not telling you it is going to be easy, I'm telling you it's going to be worth it.
Post Reply