knowledgeisatreasure wrote:Hi,
Thank you for your explanation. What I'm not getting though is why did you use the number "2". I'm referring specifically to the "2"raised to the power of 3, then to the power of 4 and to the power of 2 in the following:
The ways of choosing at least one cocoa=(2^3)-1=7
The ways of choosing at least one apple (2^4)-1=15
and for orange (2^2)-1=3
So total number of ways is 7*15*3=315
My question is how did you come up with the 2 while the question is asking to choose one of each type of fruit.
I appreciate the clarification. Thank you.
Lemme explain choosing one case, say cocoa, that will do the rest of the job.
Three cocoas are there.
U need to choose at least one cocoa. That means u can take one cocoa, or two cocoa or three cocoa. That means number of ways: 3C1+3C2+3C3
Now U need to know (for fast solving) there is a formula in general,
nC0+nC1+nC2+...............nCn=2^n
or nC1+nC2+...............nCn=2^n-nC0=2^n-1
Now please look at the above expression i.e. 3C1+3C2+3C3 and apply the above formula; we get 3C1+3C2+3C3 = (2^3)-1=7
similarly u can proceed for the other terms..
Should u need any further explanation please tell me.