Answer:
(a) 210
(b) 21
(c) 86
Explanation:
(a)
We need to find how many 10-bit strings there are with only 4 bits = 1.
As the order does not matter, this number is a combination of 10 bits taken 4 at a time (those that are equal to 1)
![\binom{10}{4}=(10!)/((10-4)!4!)=(10!)/(6!4!)=(10.9.8.7.6!)/(6!4!)=(10.9.8.7)/(4.3.2)=210](https://img.qammunity.org/2020/formulas/mathematics/college/m4djcse7d6g67jn7b88n4zl7jyvaqsgejj.png)
So, there are 210 10-bit strings of weight 4
(b)
As the 10-bit strings start with 101, we need a 7-bit tail with only 2 bits =1.
The order does not matter, so this a combination of 7 taken 2 at a time
![\binom{7}{2}=(7!)/((7-2)!2!)=(7!)/(5!2!)=(7.6.5!)/(5!2!)=(7.6)/(2)=(42)/(2)=21](https://img.qammunity.org/2020/formulas/mathematics/college/8yu5e5ozrgch6j447bvfpwghnrv6uvx7c1.png)
And there are 21 10-bit strings of weight 4 starting with 101
(c)
Let's compute first the number of 10-bit strings starting with 101 and having weight 5.
In this case, we need a 7-bit tail with only 3 bits =1.
![\binom{7}{3}=(7!)/((7-3)!3!)=(7!)/(4!3!)=(7.6.5.4!)/(4!3!)=(7.6.5)/(3.2)=7.5=35](https://img.qammunity.org/2020/formulas/mathematics/college/9r2c15y1nk7eqjca8xgsg33bx5bjbn84lu.png)
Now, the 10-bit strings ending with 11. In this case, we need a 8-bit string with only 3 bits =1.
![\binom{8}{3}=(8!)/((8-3)!3!)=(8!)/(5!3!)=(8.7.6.5!)/(5!3!)=(8.7.6)/(3.2)=8.7=56](https://img.qammunity.org/2020/formulas/mathematics/college/fx7b4y0rst4r8ubmsberzw3dimf0u3txt0.png)
The number of 10-bit strings of weight 5 starting with 101 or ending with 11, would be 35+56 subtracting the strings starting with 101 and ending with 11, which were counted twice.
But these are 5-bit strings with only 1 bit =1, and there are 5.
So, the number of 10-bit strings of weight 5 starting with 101 or ending with 11 or both is
35+56-5 = 86.