Exercise7:
find the number of bit strings of lenght 15 that have exactly three 1s.
1
s.
exercise 8:
the goal of this exercise is to find the number of integer solutions of the equation x1 + x2 + x3 + x4 = 12 such that xi ? 0, i = 1, 2, 3 and 4. suppose that you have 12 marbles to place in 4 boxes (x1 is the number of marbles put in box 1, x2 is the number of marbles put in box one way to do this is, as shown in the picture, x1 = 1,x2 = 3, x3 = 4 and x4 = 4
now, if we denote the marbles of the picture by zeros delimited by ones in a bit string of length 15 , we get:
0 1 000 1 1
use your solution of exercise 7 to solve the equation x1+x2+x3+x4= 12 where xi? n? {0}
exercise 9
.how many integer solutions of the equation x1+x2+x3= 12 such that xi? 1,? i? {1,2,3}.