Mathmatical Question
Discussion
Famous Graham said:
mmertens said:
Smiler. said:
How does one calculate the number of possible permutations of the following:
a pegboard has 10 holes
a peg can be placed in any or all of the holes
what is the maximum number of combinations of pegs in holes?
Is this statistics??
TIA.
10!, I think?a pegboard has 10 holes
a peg can be placed in any or all of the holes
what is the maximum number of combinations of pegs in holes?
Is this statistics??
TIA.

If all 10 pegs are classed as "different", then its the factorial of 10 (write in 10! on a scientific calculator, 1x2x3x4x5x6x7x8x9x10 on old school calculators). If some of the pegs are classed as "the same" then it's a bit different.
Let's say each peg has a different coloured ring around the top of it, except for two which have the same colour (makes it easier to understand). You would then still use the 10! but divide it by the multiple of 2! and 8! (8 being 10-2) so that no. of combinations would be 10! / 2! x 8!
I remember doing this at GCSE but with combinations of letters in people's names. Quite simple if you've got the ! button on your calculator.
Let's say each peg has a different coloured ring around the top of it, except for two which have the same colour (makes it easier to understand). You would then still use the 10! but divide it by the multiple of 2! and 8! (8 being 10-2) so that no. of combinations would be 10! / 2! x 8!
I remember doing this at GCSE but with combinations of letters in people's names. Quite simple if you've got the ! button on your calculator.
Smiler. said:
How does one calculate the number of possible permutations of the following:
a pegboard has 10 holes
a peg can be placed in any or all of the holes
what is the maximum number of combinations of pegs in holes?
Is this statistics??
TIA.
From reading your description, it's just binary.a pegboard has 10 holes
a peg can be placed in any or all of the holes
what is the maximum number of combinations of pegs in holes?
Is this statistics??
TIA.
So 10 bits, each bit can be 1 or 0 (peg or no peg)
so 2 ^ 10 = 1024 combinations.
So that would be all combinations of pegs in holes from
0000000000 - 1111111111
It gets more complicated if the pegs are different and you want combinations of certain pegs etc.
I don't think it's any of the above.
I tried using 5 instead of 10 & came up with 32 variations between all five holes with plugs & any combination down to no plugs & all holes empty.
I broke it down to 6 groups each having 5 combinations + 1 for all 5 + 1 for none.
Using the same logic, I estimate 112 variations using 10, but if anyone knows better, feel free to pitch in.
Ta
I tried using 5 instead of 10 & came up with 32 variations between all five holes with plugs & any combination down to no plugs & all holes empty.
I broke it down to 6 groups each having 5 combinations + 1 for all 5 + 1 for none.
Using the same logic, I estimate 112 variations using 10, but if anyone knows better, feel free to pitch in.
Ta

Smiler. said:
I don't think it's any of the above.
I tried using 5 instead of 10 & came up with 32 variations between all five holes with plugs & any combination down to no plugs & all holes empty.
I broke it down to 6 groups each having 5 combinations + 1 for all 5 + 1 for none.
Using the same logic, I estimate 112 variations using 10, but if anyone knows better, feel free to pitch in.
Ta
You aren't explaining the problem well enough.I tried using 5 instead of 10 & came up with 32 variations between all five holes with plugs & any combination down to no plugs & all holes empty.
I broke it down to 6 groups each having 5 combinations + 1 for all 5 + 1 for none.
Using the same logic, I estimate 112 variations using 10, but if anyone knows better, feel free to pitch in.
Ta

You have 5 holes and you want combinations of pegs in holes and pegs not in holes. Thats 2 ^ 5 = 32 combinations.
If you have the same 10 holes, all combinations are 2 ^ 10 = 1024
Heres, you exmaple with 5 holes
0 0 0 0 0
0 0 0 0 1
0 0 0 1 0
0 0 0 1 1
0 0 1 0 0
0 0 1 0 1
0 0 1 1 0
0 0 1 1 1
0 1 0 0 0
0 1 0 0 1
0 1 0 1 0
0 1 0 1 1
0 1 1 0 0
0 1 1 0 1
0 1 1 1 0
0 1 1 1 1
1 0 0 0 0
1 0 0 0 1
1 0 0 1 0
1 0 0 1 1
1 0 1 0 0
1 0 1 0 1
1 0 1 1 0
1 0 1 1 1
1 1 0 0 0
1 1 0 0 1
1 1 0 1 0
1 1 0 1 1
1 1 1 0 0
1 1 1 0 1
1 1 1 1 0
1 1 1 1 1
Do the same with 10 and you will have 1024 combinations.
There's your 1024 combinations of pegs in holes with 10 holes. From all empty to all full.
http://www.speed-shot.co.uk/myfile2.txt
http://www.speed-shot.co.uk/myfile2.txt
Gassing Station | The Lounge | Top of Page | What's New | My Stuff



