Candies: john has 1 dollar, with which he can buy green, red and yellow candies. each candy costs 50 cents. john will spend all the money he has on candies. how many different combinations of green, red and yellow candies can he buy?
Answers
Answered by
6
1 dollar = 100 cents
So, its obvious that at a time John could buy only 2 candies. Out of three choices he have to choose two.
One thing to note here is that, the order of chocolate never matters. i.e getting a green chocolate and then a red one is similar to getting a red first then a green chocolate. So, one thing we are sure is 'permutation' won't work here. So we need to solve it with combination formula
according to combination formula:
C (n,r) = n! / [r! (n-r)!].
(where n is choice available and r is selection)
So, C (3,2) = 3! / [2!.1!] =3
Hence John can make 3 different choices for his candies.
So, its obvious that at a time John could buy only 2 candies. Out of three choices he have to choose two.
One thing to note here is that, the order of chocolate never matters. i.e getting a green chocolate and then a red one is similar to getting a red first then a green chocolate. So, one thing we are sure is 'permutation' won't work here. So we need to solve it with combination formula
according to combination formula:
C (n,r) = n! / [r! (n-r)!].
(where n is choice available and r is selection)
So, C (3,2) = 3! / [2!.1!] =3
Hence John can make 3 different choices for his candies.
Similar questions