posted by Matt on .
A pack of Jillybeans contains seven different flavors: Apricot, Banana, Coconut, Date, Eggplant, Fig and Grape. You can make each flavor indivdually or come up with some crazy combinations. How many flavor combinations are possible with these seven flavors alone or mixed?
start with no flavour (which does not apply here), each time we add a flavour, we double the number of flavours.
So there are 2^7 flavour combinations for 7 flavours, including the no flavour at all "combination".
So there are 2^7-1 flavour combinations in total.
0 2^0 combination (no flavour at all, to be subtracted at the end)
A 2^1 combinations
AB 2^2 combinations
ABC 2^3 combinations
ABCD 2^4 combinations