I'm stuck in figuring out a problem, and I can't quite figure out a way out right now. any suggestion is highly appreciated.
we have a 10bit number(made up of 1s and 0s), and we do not know the number. what is the probability of having even number of 1s? So, what i did:
-0 ones
-2 ones
-4 ones
-6 ones
-8 ones
-10 ones
I started to look at each case. The first and the last can only be one number, I also found that the second has $90$ numbers possibilities of construction. When we have $4$ ones, i calculated we get 10*9*8*7 numbers etc. I'm getting really weird numbers though at the final step of adding it all in.
Is there an easy way to go about this counting problem? I feel my solution is very error-prone and tedious. :/