The order of bits is not important since we are interested in the number of ones, not the order of ones. Thus, we need to use combinations.
C(n,r)=r!(n−r)!n!
n=11. There are more zeros than ones when less than 6 bits have ones.
C(11,5)=6!5!11!=462
C(11,4)=7!4!11!=330
C(11,3)=9!3!11!=165
C(11,2)=9!2!11!=55
C(11,1)=10!1!11!=11
C(11,0)=1
So there are 462+330+165+55+11+1=1024 bit strings of length 11 that have more 0s than 1s.
Answer: 1024
Comments