How many different ways to fill 100 boxes in a line with black or white balls. (One box can only contain one ball at a time.)
My attempt :
Different ways to fill 1 st box = 2 Different ways to fill 2 nd box = 2 Different ways to fill 3 rd box = 2 ' ' ' ' ' Different ways to fill 99th box = 2 Different ways to fill 100th box = 2
SO by method of counting the answer is $2^{100}$.
This is same as number of subsets a set of 100 elements has?
What is the connection this type of questions and $2^n$ has?