Okay, I'm going to make this easy to see and list all possibilities for a number of switches so you can see how this works.
1 = Switch Set, 2 = Switch Cleared
One Switch.
0, 1
Two Switches..
00, 01, 10, 11
Three Switches...
000, 001, 010, 011
100, 110, 111, 101
Four Switches....
0000, 0001, 0010, 0011
0100, 0110, 0111, 0101
1000, 1001, 1010, 1011
1100, 1110, 1111, 1101
Five Switches.....
00000, 00001, 00010, 00011
00100, 00110, 00111, 00101
01000, 01001, 01010, 01011
01100, 01110, 01111, 01101
10000, 10001, 10010, 10011
10100, 10110, 10111, 10101
11000, 11001, 11010, 11011
11100, 11110, 11111, 11101
If you didn't notice I started copy/pasting after three. Just pasted them twice and add a "0" at the start to half of them, and a "1" at the start of the other half. You can see the amount doubling each time. Using that method you could spell out all possibilities of 256 Switches, but that would take a long time.
