nikhilkatira wrote:tpr-becky wrote:It is best using basic probability - decide how many items you are choosing - here we have 5 digits. Then write a want/total formula for each 1 - then if you want the probability of one thing AND another multiply
There are 5 numbers that fulfil the criteria and so the want/total is 5/10 for each one (assuming we can repeat numbers) we want them all to be prime or zero so we multiply
5/10 * 5/10 *5/10 * 5/10 * 5/10 = 1/32 answer is A.
thanks Becky...
But I want to know whether this problem can be solved using formula nCr ( combination) ?
Number available 0 to 9 . total = 10 numbers .
The code is of 5 numbers _ _ _ _ _ .
first number can be selected in 10c1 ways . Since the numbers are not unique and repetition is allowed we can select the second number in 10c1 ways and so on .
So total possible ways in which this code can be made is (10c1)(10c1)(10c1)(10c1)(10c1)
Now the possibility of finding the code with only odd numbers and zero .
So total numbers to select from 0,2,3,5,7 . Total numbers 5 .
The first number can be selected in 5c1 ways again repetition allowed so second number can be selected in 5c1 ways and so on .
So numbers of ways in which the code with odd numbers is selected is
(5c1)(5c1)(5c1)(5c1)(5c1) .
Probability = (number of required outcomes )/ (total possible outcomes)
= (5c1)(5c1)(5c1)(5c1)(5c1) / (10c1)(10c1)(10c1)(10c1)(10c1)
= 1/32 .
"Know thyself" and "Nothing in excess"