1.How many triangles are determined by the vertices of a regular polygon of n sides?How many if no side of the polygon is to be a side of any triangle?
A:C(n,3)-n(use two sides of the n-gon)-n(n-4)(use only one side)
2.In how many ways can we select five coins from a collection of 10 consisting of five distinct coins, and five identical coins?
A:2^5
3.Frannie tosses a coin 12 times and gets five heads and seven tails. In how many ways can these tosses result in (a) two runs of heads and one run of tails (b) three runs
A:
(a)X1+X2+X3 = 12, X1,X3>0, X2=7, X1+X3=5 ,C(4,3) = 4
(b)W1+W2+W3 = 12, W1,W3>0, W2=5, C(6,5) = 6
4.For n>=4, consider the strings made up of n bits-that is, a total of n 0's and 1's. In particular, consider those strings where there are two occurrences of 01. For example, if n=6 we want to include strings such as 010010 and 100101, but not 101111 or 010101. How many such strings are there?
A:X1+X2+X3+X4+X5+X6 = n, X1,X6>=0, X2,X3,X4,X5>0,C(n+1,5)
以上雖然都有答案,但都想不通為什麼這麼算
麻煩高手幫忙解釋一下,感謝