PDA

View Full Version : Calculating Possible Outcomes...



kevin11951
June 20th, 2011, 01:44 AM
My math is a little crappy today:

If I create a 16 character phrase made up of the numbers 1 - 9 randomly selected, how many possible outcomes are there?

(BTW, I graduated HS 2 years ago, this is not homework ;))

JustinR
June 20th, 2011, 01:51 AM
I believe it's 144.

123456789 = 9 possible combinations for each character.
9 * 16 characters total = 144.

I feel like I'm wrong for some reason, I learned this in HS too - but it doesn't really seem right.

Edit:
The posts below re correct.

Tibuda
June 20th, 2011, 01:53 AM
9^16=1853020188851840

beew
June 20th, 2011, 02:01 AM
9^16 (9 to the power 16).

Imagine 16 slots, there are 9 choices for each slot so together there are 9x9x9...x9 (16 times) that many choices.

undecim
June 20th, 2011, 05:47 AM
9^16=1,853,020,188,851,841, or about 1.8 quadrillion (1.8 million billion)

jerenept
June 20th, 2011, 05:51 AM
My math is a little crappy today:

If I create a 16 character phrase made up of the numbers 1 - 9 randomly selected, how many possible outcomes are there?

(BTW, I graduated HS 2 years ago, this is not homework ;))

16C9 or 11440
(Combinations)

beew
June 20th, 2011, 06:06 AM
16C9 or 11440
(Combinations)

Wrong answer. This answers a different question instead of the OPs:

Imagine you have 9 boxes and 16 characters to choose from, how many ways can you fill up the boxes in such a way that
1) no two boxes should have the same character.

2) order doesn't matter, so it doesn't matter which character goes to which box, if the same 9 characters are picked from the 16 you have made the same choice

jerenept
June 20th, 2011, 06:12 AM
Wrong answer. This answers a different question instead of the OPs:

Imagine you have 9 boxes and 16 characters to choose from, how many ways can you fill up the boxes in such a way that
1) no two boxes should have the same character.

2) order doesn't matter, so it doesn't matter which character goes to which box, if the same 9 characters are picked from the 16 you have made the same choice

No, he has 16 boxes, and 9 characters to choose from.

beew
June 20th, 2011, 06:25 AM
No, he has 16 boxes, and 9 characters to choose from.

I know, that's why your answer is wrong. What I wrote in post 7 was the question for which your answer would have been correct and as you said, it is not the OP's question.

The correct solution to OP's question with explanation is in my post #4.

Legendary_Bibo
June 20th, 2011, 06:27 AM
16!/9!

beew
June 20th, 2011, 06:30 AM
16!/9!

Also wrong.

16!/9! is the number of 9-charcter words where there are 16 choices for each character and 1) no same character appears twice 2) order matters.

jerenept
June 20th, 2011, 06:31 AM
I know, that's why your answer is wrong. What I wrote in post 7 was the question for which your answer would have been correct and as you said, it is not the OP's question.

The correct solution to OP's question with explanation is in my post #4.

Ahh, I see... I mis-interpreted your post.

how do you explain the fact that 16^9 (according to your logic in post 4) is 68719476736, and not 11440 as I stated?

Also:Combinations (https://secure.wikimedia.org/wikipedia/en/wiki/Combination#Example_of_counting_combinations)

Grifulkin
June 20th, 2011, 06:39 AM
Also wrong.

16!/9! is the number of 9-charcter words where there are 16 choices for each character and 1) no same character appears twice 2) order matters.

9^16 , nothing saying they can't appear twice, that would be impossible, but yes order does matter.

EDIT: Jumped to the last post, you were correct way back when. My apologies.

Legendary_Bibo
June 20th, 2011, 06:45 AM
Well the only other solution I can think of is 9^16 = 1853020188851841

Repeating can't be an issue because you have more spaces than numbers, and in that case order doesn't either.

beew
June 20th, 2011, 06:46 AM
Ahh, I see... I mis-interpreted your post.

how do you explain the fact that 16^9 (according to your logic in post 4) is 68719476736, and not 11440 as I stated?

Also:Combinations (https://secure.wikimedia.org/wikipedia/en/wiki/Combination#Example_of_counting_combinations)

You said 16C9 which is 16!/(7!9!) and mine is 9^16, not 16^9.

Combination counts the number of subsets, order doesn't matter and no repeat allowed.

so 4C2is the number of subsets from a pool of 4 objects which has 2 items. Say how many 2 element subset can you get from {a, b, c, d}. It would be 4C2 =6. The subsets are {a, b}, {a, c}, {a, d}, (b, c}, {b, d}, {c, d}. Note that {a, b} and {b, a} are considered the same since order doesn't matter and things like {a, a} don't appear because no repetition allowed.

Grifulkin
June 20th, 2011, 06:51 AM
You said 16C9 which is 16!/(7!9!) and mine is 9^16, not 16^9.

Combination counts the number of subsets, order doesn't matter and no repeat allowed.

so 4C2is the number of subsets from a pool of 4 objects which has 2 items. Say how many 2 element subset can you get from {a, b, c, d}. It would be 4C2 =6. The subsets are {a, b}, {a, c}, {a, d}, (b, c}, {b, d}, {c, d}. Note that {a, b} and {b, a} are considered the same since order doesn't matter and things like {a, a} don't appear because no repetition allowed.

In other words pCq = p!/[(p-q)!(q!)] Order doesn't matter.

and pPq = p!/q!. Order matters.

Legendary_Bibo
June 20th, 2011, 07:00 AM
In other words pCq = p!/[(p-q)!(q!)] Order doesn't matter.

and pPq = p!/q!. Order matters.

Yep. Exactly.

beew
June 20th, 2011, 07:10 AM
Yep. Exactly.

But OP's question obviously allows repetitions,--it would be impossible not to repeat,--so permutation is the wrong answer as well.

Grifulkin tries to explain the concept, not saying 16P9 is the solution.

jerenept
June 20th, 2011, 07:22 AM
You said 16C9 which is 16!/(7!9!) and mine is 9^16, not 16^9.

Combination counts the number of subsets, order doesn't matter and no repeat allowed.

so 4C2is the number of subsets from a pool of 4 objects which has 2 items. Say how many 2 element subset can you get from {a, b, c, d}. It would be 4C2 =6. The subsets are {a, b}, {a, c}, {a, d}, (b, c}, {b, d}, {c, d}. Note that {a, b} and {b, a} are considered the same since order doesn't matter and things like {a, a} don't appear because no repetition allowed.

oic.... now I understand..

mmsmc
June 20th, 2011, 08:23 AM
the only forums i know of where people argue about math, i think im in heaven

lisati
June 20th, 2011, 08:34 AM
A big "thank you" for helping me exercise my grey matter. The only use I've had for figuring out permutations and combinations that I can remember in the last 30 years or so is trying to figure out the odds of winning Lotto when it was introduced in New Zealand back in the 1980s.

I'm putting in a "+1" for the answers based around 9^16, but, as you can probably guess, I'm a little bit rusty in that area.

3Miro
June 20th, 2011, 12:11 PM
As per the original post, the answer is 9^16. There are 9 possibilities for each of the 16 slots and the numbers are chosen independently.

If you disallow repeated numbers, then you have to use factorials in the formula, however, with only 9 characters and 16 slots, you must use some numbers two or more times.

Nyromith
June 20th, 2011, 12:35 PM
If you use hex, you can fill each of the 16 slots with a unique number.

earthpigg
June 20th, 2011, 05:29 PM
Psychohistory (http://en.wikipedia.org/wiki/Psychohistory_%28fictional%29)?!

Heathens!

jerenept
June 20th, 2011, 05:46 PM
the only forums i know of where people argue about math, i think im in heaven

http://forums.xkcd.com/

fatality_uk
June 20th, 2011, 09:07 PM
It's 9^16.

http://www.google.co.uk/#hl=en&sugexp=gsqvh&xhr=t&q=9%5E16&cp=4&pf=p&sclient=psy&source=hp&aq=0&aqi=&aql=f&oq=9%5E16&pbx=1&bav=on.2,or.r_gc.r_pw.&fp=2318d3a2eff346d5&biw=1366&bih=667

See, Google says so.

Bandit
June 21st, 2011, 03:28 AM
Well I am going crazy just trying to get through Intermediate Algebra since I havent been in Highschool since 1996.

So you will understand if I say.. " Hell if I know.. " :)

Hope everyone else helped.. :-)