Can someone pls explain why did we do -1 in the end?

Can someone pls explain why did we do -1 in the end?

Greg said this 2^10 includes the possibility of choosing zero flavors but as per the question we need to have at least one flavor. Hence we need to remove that possibility of zero flavors which can happen only one way .Hence reduce 1 from the total

So let’s say you have 3 flavors (2^3=8), strawberry, mint, and chocolate. You can have the following combinations.

  • S + C + M
  • S + C + nothing
  • S + nothing + M
  • nothing + C + M
  • S + nothing + nothing
  • nothing + C + nothing
  • nothing + nothing + M

(eighth combination is nothing + nothing + nothing, which is to be ignored)

Similarly, for 10 flavors you get 1024 including no flavors at all. So minus 1.

1 Like