Formula to calculate every possible combination of 50 numbers?

Started by
12 comments, last by oliii 16 years, 6 months ago
Ok i looked at those links and i can't seem to figure them out

lets say P(Winning Lottery) = ?

I can't figure out what to put there because there are 50 numbers but you have to choose 8 out of the 50 and i need to know how many different combinations of 8 numbers there are from 1-50?
Advertisement
Quote:Original post by hahaha
i need to know how many different combinations of 8 numbers there are from 1-50?
Yes, you said that part already.
SlimDX | Ventspace Blog | Twitter | Diverse teams make better games. I am currently hiring capable C++ engine developers in Baltimore, MD.
Quote:Original post by oliii
so in total that's a chance over 3,221,271,900. 1 over three billion. That's much more acceptable. Do they draw teh jackpot everytime? I doubt they collect 3 billion tickets every draw :)


How did you get that? Your 21 billion number divided by 8! is ~537 million, not 3 billion (order of operations on whatever calculator you used?)

1 in 536,878,650 chance.

Answer = 50 nCr 8

nCr = n! / r!(n-r!)

or

nCr = nPr / r!

Therefore the answer is:

50! / 8! * 42!

which is ~1 in 537 million or roughly 0.000000186% chance of jackpot.

(Permutations and Combinations if your teacher asks ;) this one is a Combination!)

[Edited by - NickHighIQ on October 7, 2007 3:02:25 AM]
Nick Wilson - Junior C# Developer | See my crappy site
yeah, wrong maths somewhere. It's 1 / 536,878,650 chance to win it, which sounds closer to the result.

result = ((50 - 8)! * 8!) / 50! = 1.86262e-7 % chance to win it!

Still wanna play?

Everything is better with Metal.

This topic is closed to new replies.

Advertisement