I posted a link to a site that explains this stuff really well.
If this is like Lotto numbers - you have 49 unique balls (no repetition), and you're picking 10 of them, and order does not matter - then here is the formula:
C(n,r) = n! / (r! * (n-r)!), where n is the number of things that you are choosing from, and r is the number of items that you are choosing. In this case n=49 and r=10.
49! / (10! * (49-10)!) = 8,217,822,536 {8.2178 Billion}
If this is not the type of problem you are trying to solve (like order matters, etc), then check out the Mathisfun link that I posted.
Although there are infinitely many primes, they become rarer and rarer so that as the number of numbers increases, the probability that picking one of them at random is a prime number tends to zero*. In the first 10 numbers there are 4 primes, so the probability of picking one is 4/10 = 2/5 = 0.4 In the first 100 numbers there are 26 primes, so the probability of picking one is 25/100 = 1/4 = 0.25 In the first 1,000 numbers there are 169 primes, so the probability of picking one is 168/1000 = 0.168 In the first 10,000 numbers there are 1,229 primes, so the probability of picking one is 0.1229 In the first 100,000 numbers there are 9592 primes, so the probability of picking one is 0.09592 In the first 1,000,000 numbers there are 78,498 primes, so the probability of picking one is 0.078498 In the first 10,000,000 numbers there are 664,579 primes, so the probability of picking one is 0.0664579 * Given any small value ε less than 1 and greater than 0, it is possible to find a number n such that the probability of picking a prime at random from the numbers 1-n is less than the given small value ε.
10
One possible combination of three numbers that sum to 24 is 8, 8, and 8. Another example could be 10, 10, and 4. There are many different sets of numbers that can achieve this sum.
The chances of picking a number between 2 to 5 is 4/10 if the numbers to be picked from are 1-10. However, if the numbers to be picked from are 1-100, then the probability drops to 4/100.
There are 10 whole numbers in 10 to 19.
10 * * * * * That is just plain wrong! It depends on how many numbers in each combination but there are 1 combination of 4 numbers out of 4, 4 combinations of 3 numbers out of 4, 6 combinations of 2 numbers out of 4, 4 combinations of 1 number out of 4. A grand total of 15 (= 24-1) combinations.
* 10^10 * = ten billion (US), or * ten thousand million (UK)
26 = 64 combinations, including the null combination - which contains no numbers.
10*10
10 numbers in a billion
If the only numbers to pick from are 1 through 8, how can you get a factor greater than 10?
109