I have a system containing n variables. That is, the variables are $x_1$, $x_2$, ... , $x_n$. For all $x_i$, $x_i$ $\in$ {0,1}. How many different ways can one assign values to each $x_i$?
For example, one way is: 0, 0, ... , 0.
Another is 1, 1, ... , 1.
Another is 1, 0, 1, 0, ... , 1, 0.
My intuition says there are $2^n$ ways to assign these values, but I'm not quite sure why. Can someone help me out here?
Now let's take this a step further. Say I want to find out how many cases there are in which either one $x_i$ is 0, two $x_i$s are 0 or three $x_i$s are 0. Does that make sense? Any idea how to think on that?