一、單選題
1. (5%) The probability of each summand is a multiple of 3 in all compositions of 18 is
(A) 1/311.
(B) 1/312.
(C) 1/211.
(D) 1/212.
(E) None of the above.
參考解答:D
2. (5%) Which statement is NOT correct?
(A) The coefficient of x5 in (1 – 2x)^{-7} is (32) \binom{11}{5}.
(B) \sum_{k=0}^{20} (-1)^k \binom{20}{20-k} (20 – k)^{15} = 0
(C) If |A| = |B| = 6, there are 6! functions f:A \rightarrow B are invertible.
(D) The sequence generated by f(x) = \dfrac{1}{3-x} is (- \dfrac{1}{3}), \, (- \dfrac{1}{3})^2, \, (- \dfrac{1}{3})^3, \, (- \dfrac{1}{3})^4, …
(E) None of the above.
參考解答:D
3. (10%) Suppose S(n) is a predicate on natural numbers, n, and suppose \forall k \in \mathbb{N}, S(k) \rightarrow S(k+2) hold. Which one following statements NEVER hold?
(A) \forall n \geq 0 \, S(n).
(B) \forall n \geq 0 \, \neg S(n).
(C) [\exists n \, S(2n)] \rightarrow \forall n \, S(2n+2).
(D) (\forall n \leq 100 \, \neg S(n)) \wedge (\forall n > 100 \, S(n)).
(E) None of the above.
參考解答:E
二、計算題
1. (15%) Let \sum = \{0, \, 1, \, 2, \, 3, \, 4\}. For n \geq 1, let a_n count the number of string in \sum^n containing an odd number of 1’s. Find and solve a recurrence relation for a_n.
參考解答:a_n = 3a_{n-1} + 5^{n-1} = \dfrac{1}{2} (5^n – 3^n)
2. (15%) Find the number of ways to arrange the letters in LAPTOP so that none of the letters L, A, T, O is in its original position and the letter P is not in the third or sixth position.
參考解答:84
試題(pdf):連結
有任何問題,或想要完整解釋的,歡迎在下方留言唷!
K
你好,請問計算第一題的遞迴式是怎麼推得的?
mt
這題的話我們可以先假設b_n為containing an even number of 1’s的字串,就可以得到:
a_n = 4a_{n-1} + b_{n-1}
又因為a_n + b_n = 5^n
可以得到a_n = 3a_{n-1} + 5^{n-1}。
K
了解!感謝用心答覆
Nelson
你好,關於計算題第2題,我自己算是算168。
然後我用電腦爆搜6!後的結果也是168。跟答案剛好差了2倍
mt
算出168會不會是你沒有除以2,因為有兩個一樣的P,像是這樣:
AP_1LOP_2T
AP_2LOP_1T
就會被算兩次~
jim
可以請問一下計算題第2題解法嗎?
自己用了城堡多項式弄了好久還是兜不出來..
mt
這題可以用排容原理喔!
假設第一個P為P_1第二個P為P_2,則在D_6中P_1不會出現在第三個位置,P_2不會出現在第六個位置。
所以我們只要再排除P_1在第六個位置及P_2在第三個位置的情況就好了!
設c_1表示P_1在第六個位置的情況,c_2表示P_2在第三個位置的情況,則N(\overline{c_1} \overline{c_2})=N-N(c_1)-N(c_2)+N(c_1c_2)=D_6-2(D_4+D_5)+D_4
最後再除以2!就是答案囉!
242ca
請問為什麼N(c1) = (D4 + D5)
mt
因為算N(c_1)的時候要考慮P_2是不是被放在第三個位置,如果P_2在第三個位置那就是D_4,不然就是D_5。