108 年 國立臺灣大學電機工程研究所丙組《離散數學(B)》

📄 試題原卷 免費註冊後即可對照原始考卷 PDF免費註冊

第 1 題15 分

For all positive integers n, compute
∑k=0n(nk)(k3−1)C(n,k)\sum_{k=0}^{n} \binom{n}{k} (k^3 - 1) C(n, k)
where C(n,k)C(n, k) is the coefficient of the xkx^k term in the expansion of (1+x)n(1+x)^n.

登入後即可作答並保存紀錄。

這一題的完整詳解

注意:題目中 C(n,k)C(n, k) 即為組合數 (nk)\binom{n}{k},亦即求:
S=∑k=0n(nk)2(k3−1)=∑k=0nk3(nk)2−∑k=0n(nk)2S = \sum_{k=0}^{n} \binom{n}{k}^2 (k^3 - 1) = \sum_{k=0}^{n} k^3 \binom{n}{k}^2 - \sum_{k=0}^{n} \binom{n}{k}^2

利用 Vandermonde's Identity 可得:
∑k=0n(nk)2=(2nn)\sum_{k=0}^{n} \binom{n}{k}^2 = \binom{2n}{n}

針對第一項 ∑k=0nk3(nk)2\sum_{k=0}^{n} k^3 \binom{n}{k}^2,利用恆等式 k(nk)=n(n−1k−1)k \binom{n}{k} = n \binom{n-1}{k-1} 展開 k3=k(k−1)(k−2)+3k(k−1)+kk^3 = k(k-1)(k-2) + 3k(k-1) + k:

  1. 一階項:
    ∑k=0nk(nk)2=n(2n−1n−1)=n2(2nn)\sum_{k=0}^{n} k \binom{n}{k}^2 = n \binom{2n-1}{n-1} = \frac{n}{2} \binom{2n}{n}

  2. 二階項:

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 2 題15 分

Solve the following recurrence:
a1=3a_1 = 3
(1−1n)an=3nan−1+1,for all n≥2\left(1 - \frac{1}{n}\right) a_n = \frac{3}{n} a_{n-1} + 1, \quad \text{for all } n \ge 2

登入後即可作答並保存紀錄。

這一題的完整詳解

將原遞迴關係式兩邊同乘以 nn:
(n−1)an=3an−1+n,for n≥2(n-1)a_n = 3a_{n-1} + n, \quad \text{for } n \ge 2

對 n≥2n \ge 2,兩邊同除以 3n3^n:
(n−1)an3n=an−13n−1+n3n\frac{(n-1)a_n}{3^n} = \frac{a_{n-1}}{3^{n-1}} + \frac{n}{3^n}

令變數變換 bn=(n−1)an3nb_n = \frac{(n-1)a_n}{3^n},則對 n≥2n \ge 2:
bn=bn−1+n3nb_n = b_{n-1} + \frac{n}{3^n}

計算初始條件 b1b_1:
b1=(1−1)a131=0b_1 = \frac{(1-1)a_1}{3^1} = 0

經由累加法(Telescoping sum):
bn=b1+∑k=2nk3k=∑k=2nk3kb_n = b_1 + \sum_{k=2}^{n} \frac{k}{3^k} = \sum_{k=2}^{n} \frac{k}{3^k}

考慮無窮級數/有限和公式:令 Sn=∑k=1nkxkS_n = \sum_{k=1}^{n} k x^k,當 x=13x = \frac{1}{3} 時,

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 3 題10 分

Let nn be a positive integer such that n5+(n+1)5≡0(mod25)n^5 + (n + 1)^5 \equiv 0 \pmod{25}. Find all possible values for (n+2)5(mod10)(n+2)^5 \pmod{10}. Show your derivations. You must briefly justify that no other values are possible.

登入後即可作答並保存紀錄。

這一題的完整詳解

題目解析與推導

步驟一:簡化同餘條件 (mod25)\pmod{25}

已知 n5+(n+1)5≡0(mod25)n^5 + (n + 1)^5 \equiv 0 \pmod{25}。
將 (n+1)5(n+1)^5 依二項式定理展開:
(n+1)5=n5+5n4+10n3+10n2+5n+1(n + 1)^5 = n^5 + 5n^4 + 10n^3 + 10n^2 + 5n + 1
將其代入原式:
n5+(n+1)5=2n5+5n4+10n3+10n2+5n+1≡0(mod25)n^5 + (n + 1)^5 = 2n^5 + 5n^4 + 10n^3 + 10n^2 + 5n + 1 \equiv 0 \pmod{25}

考慮 (mod5)\pmod 5 的情況:
因為 25∣(n5+(n+1)5)25 \mid (n^5 + (n+1)^5),故必有 5∣(n5+(n+1)5)5 \mid (n^5 + (n+1)^5)。
由費馬小定理,對任意整數 kk,皆有 k5≡k(mod5)k^5 \equiv k \pmod 5。因此:
n5+(n+1)5≡n+(n+1)=2n+1≡0(mod5)n^5 + (n + 1)^5 \equiv n + (n + 1) = 2n + 1 \equiv 0 \pmod 5
解得:
2n≡−1≡4(mod5)  ⟹  n≡2(mod5)2n \equiv -1 \equiv 4 \pmod 5 \implies n \equiv 2 \pmod 5

步驟二:確定 n(mod25)n \pmod{25} 的可能性

設 n=5k+2n = 5k + 2(其中 k∈Zk \in \mathbb{Z}),將其代入原式 (mod25)\pmod{25} 進行檢驗。
由於 n≡2(mod5)n \equiv 2 \pmod 5,我們計算 n5(mod25)n^5 \pmod{25}:
由二項式定理 n5=(5k+2)5=25+5⋅24⋅(5k)+O(25)≡32+400k≡7(mod25)n^5 = (5k + 2)^5 = 2^5 + 5 \cdot 2^4 \cdot (5k) + \mathcal{O}(25) \equiv 32 + 400k \equiv 7 \pmod{25}。
同理,(n+1)5=(5k+3)5=35+5⋅34⋅(5k)+O(25)≡243+2025k≡18(mod25)(n+1)^5 = (5k + 3)^5 = 3^5 + 5 \cdot 3^4 \cdot (5k) + \mathcal{O}(25) \equiv 243 + 2025k \equiv 18 \pmod{25}。

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 4 題35 分

For each of the following statements, determine whether it is true of false. No explanation is needed. You get +5 points for every correct answer and -6 points for every incorrect one. (0 points if you do not answer.)

(a) ∃x(∀y(P(y)∧Q(y))  ⟹  P(x))\exists x ( \forall y (P(y) \wedge Q(y)) \implies P(x) )
(b) In propositional logic, {¬,  ⟹  }\{ \neg, \implies \} is a functionally complete set.
(c) Given five propositional logic statements using a single variable pp, there exist two of them which are equivalent to each other.
(d) There exists an injection from Q\mathbb{Q} to R\mathbb{R}.
(e) If AA and BB are two uncountable sets, then ∣A∣=∣B∣|A| = |B|.
(f) If a relation RR is symmetric, then R3R^3 is also symmetric.
(g) If RR is a partial ordering on a finite set AA, then RR has at least one maximal element.

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

  1. 數理邏輯(Mathematical Logic):

    • 一階邏輯量詞(Quantifiers):量詞作用域展開與恆真式(Tautology)推導。
    • 功能完備集(Functionally Complete Set):命題邏輯運算子的表達能力,若一個運算子集合能表達出已知的功能完備集(如 {¬,∨}\{\neg, \lor\} 或 {¬,∧}\{\neg, \land\}),則該集合亦為功能完備集。
    • 命題邏輯等價與鴿籠原理(Pigeonhole Principle):nn 個命題變數共有 2(2n)2^{(2^n)} 種不相等的真值表輸出組合。
  2. 集合論與基數(Sets & Cardinality):

    • 單射(Injection / One-to-One Function):包含映射(Inclusion Map)的定義與性質。
    • 不可數集基數比較(Uncountable Sets):基數的大小關係與康托爾定理(Cantor's Theorem,∣P(S)∣>∣S∣|\mathcal{P}(S)| > |S|)。
  3. 關係與偏序(Relations & Partial Orders):

    • 對稱關係(Symmetric Relation):合成運算(Composition)與逆關係/轉置關係的反轉律定理 (R∘S)−1=S−1∘R−1(R \circ S)^{-1} = S^{-1} \circ R^{-1}。
    • 有限偏序集(Finite Poset)與極大元(Maximal Element):偏序集極值元存在性定理與空集合邊界條件。

解題方法

本題為是非題(True / False),評分機制包含倒扣(答對 +5+5 分,答錯 −6-6 分),答題時需極度嚴謹:

  1. 邏輯式:利用邏輯蘊涵等價律 A  ⟹  B≡¬A∨BA \implies B \equiv \neg A \lor B 與 De Morgan 定律進行式子簡化,並依變數真假值進行分情況討論(Proof by Cases)。
  2. 功能完備集:構造出 ∨\lor 或 ∧\land 的等價表示式。
  3. 語句等價性:算出單一變數 pp 能夠構成的相異真值表總數,再套用鴿籠原理。
  4. 集合映射與基數:使用子集的包含映射構造單射;使用冪集(Power Set)構造不可數集的基數反例。
  5. 關係運算:使用關係矩陣轉置或逆關係代數式驗證對稱性 (R3)−1=R3(R^3)^{-1} = R^3。
  6. 偏序集極值:檢驗極大元定義並檢查論域是否包含空集合(∅\emptyset)等邊界條件。

選項分析

(a) ∃x(∀y(P(y)∧Q(y))  ⟹  P(x))\exists x ( \forall y (P(y) \wedge Q(y)) \implies P(x) )

  • 分析:正確(True)。

  • 推導:
    在標準一階邏輯中,討論論域(Domain)DD 預設為非空集合(Non-empty set)。
    令前件命題 A≡∀y(P(y)∧Q(y))A \equiv \forall y (P(y) \wedge Q(y))。
    原式可表示為 ∃x(A  ⟹  P(x))\exists x ( A \implies P(x) )。
    利用邏輯蘊涵等價律 A  ⟹  B≡¬A∨BA \implies B \equiv \neg A \vee B,原式等價於:
    ∃x(¬(∀y(P(y)∧Q(y)))∨P(x))\exists x ( \neg (\forall y (P(y) \wedge Q(y))) \vee P(x) )
    因為前件 ¬(∀y(P(y)∧Q(y)))\neg (\forall y (P(y) \wedge Q(y))) 不含有變數 xx,可將存在量詞 ∃x\exists x 作用於後件,得:
    ¬(∀y(P(y)∧Q(y)))∨(∃xP(x))\neg (\forall y (P(y) \wedge Q(y))) \vee (\exists x P(x))
    利用 De Morgan 定律展開左式:
    (∃y(¬P(y)∨¬Q(y)))∨(∃xP(x))(\exists y (\neg P(y) \vee \neg Q(y))) \vee (\exists x P(x))
    進行分情況討論:

    • 情況一:若 ∃xP(x)\exists x P(x) 為真,則右式為真,整體命題必為真。
    • 情況二:若 ∃xP(x)\exists x P(x) 為假,代表對論域中任意元素 xx,P(x)P(x) 皆為假。因論域非空,任取一元素 y∈Dy \in D,其 P(y)P(y) 必為假,故 ¬P(y)\neg P(y) 為真,使得左式 ∃y(¬P(y)∨¬Q(y))\exists y (\neg P(y) \vee \neg Q(y)) 為真,整體命題亦為真。

    綜合上述,無論命題函數 P,QP, Q 如何定義,該式在任何非空論域下皆為恆真式(Tautology)。

(b) In propositional logic, {¬,  ⟹  }\{ \neg, \implies \} is a functionally complete set.

  • 分析:正確(True)。
  • 推導:
    已知經典集合 {¬,∨}\{\neg, \lor\} 為功能完備集。若能利用 {¬,  ⟹  }\{\neg, \implies\} 表示出邏輯或(OR, ∨\lor),則 {¬,  ⟹  }\{\neg, \implies\} 亦為功能完備集。
    由蘊涵定義 p  ⟹  q≡¬p∨qp \implies q \equiv \neg p \lor q,若將 pp 替換為 ¬p\neg p,可得:
    (¬p)  ⟹  q≡¬(¬p)∨q≡p∨q(\neg p) \implies q \equiv \neg(\neg p) \lor q \equiv p \lor q
    因此 p∨q≡(¬p)  ⟹  qp \lor q \equiv (\neg p) \implies q。同理,邏輯與(AND, ∧\land)可表示為 p∧q≡¬(p  ⟹  ¬q)p \land q \equiv \neg(p \implies \neg q)。
    故僅需反相器(NOT)與蘊涵門(IMPLY),即可組合出所有布林函數,證得 {¬,  ⟹  }\{\neg, \implies\} 為功能完備集。

(c) Given five propositional logic statements using a single variable pp, there exist two of them which are equivalent to each other.

  • 分析:正確(True)。
  • 推導:
    由單一命題變數 pp 構成的命題,其真值表只有 21=22^1 = 2 列(即 p=Tp=T 與 p=Fp=F)。
    一個真值表輸出的可能組合數為:
    2(21)=22=4 種2^{(2^1)} = 2^2 = 4 \text{ 種}
    這 4 種邏輯不等價的命題類別分別對應:矛盾式(Contradiction, FF)、變數本身(pp)、否定式(¬p\neg p)與恆真式(Tautology, TT)。
🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 5 題15 分

Let G=(V,E)G = (V, E) be a simple planar undirected graph with at least 3 edges. All simple cycles in GG have length at least 5. Is it always true that 3∣E∣≤5∣V∣−103|E| \le 5|V|-10? Prove your answer formally.

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

  1. 平面圖歐拉公式(Euler's Formula for Planar Graphs):
    對於任何包含 kk 個連通分量(connected components)的簡單平面圖 G=(V,E)G = (V, E),設其平面嵌入的區域(面)集合為 FF,則恆滿足歐拉公式不等式:
    ∣V∣−∣E∣+∣F∣=1+k≥2|V| - |E| + |F| = 1 + k \ge 2
    (若 GG 為連通圖,則 k=1k = 1,等式成立為 ∣V∣−∣E∣+∣F∣=2|V| - |E| + |F| = 2)。

  2. 圖的圍長(Girth)與面度(Face Degree)的關係:
    圖 GG 的圍長 g(G)g(G) 為圖中最短簡單環(simple cycle)的長度。若簡單平面圖中包含環,且圍長 g(G)≥5g(G) \ge 5,則該圖嵌入平面後,每個面 f∈Ff \in F 的邊界至少由 5 條邊組成,即面的度數 deg(f)≥5\text{deg}(f) \ge 5。

  3. 面的握手定理(Handshaking Lemma for Faces):
    在平面圖中,所有面的度數總和等於總邊數的兩倍:
    ∑f∈Fdeg(f)=2∣E∣\sum_{f \in F} \text{deg}(f) = 2|E|


解題方法

結論:是的,該敘述永遠成立(It is always true)。

正式證明:

分兩種情況討論圖 GG 是否包含簡單環:

情況一:圖 GG 包含至少一個簡單環(Cycle)

  1. 根據題意,圖 GG 中所有簡單環的長度皆至少為 55,即圍長 g(G)≥5g(G) \ge 5。
  2. 由於每一個面 f∈Ff \in F 的邊界均由簡單環或幾何邊界所構成,故每個面的度數滿足 deg(f)≥5\text{deg}(f) \ge 5。
  3. 由面的握手定理可得:
    2∣E∣=∑f∈Fdeg(f)≥5∣F∣  ⟹  ∣F∣≤25∣E∣2|E| = \sum_{f \in F} \text{deg}(f) \ge 5|F| \implies |F| \le \frac{2}{5}|E|
  4. 將 ∣F∣≤25∣E∣|F| \le \frac{2}{5}|E| 代入平面圖歐拉公式不等式 ∣V∣−∣E∣+∣F∣≥2|V| - |E| + |F| \ge 2:
    ∣V∣−∣E∣+25∣E∣≥∣V∣−∣E∣+∣F∣≥2|V| - |E| + \frac{2}{5}|E| \ge |V| - |E| + |F| \ge 2
    ∣V∣−35∣E∣≥2|V| - \frac{3}{5}|E| \ge 2
  5. 兩邊同乘以 55 並移項整理:
    5∣V∣−3∣E∣≥10  ⟹  3∣E∣≤5∣V∣−105|V| - 3|E| \ge 10 \implies 3|E| \le 5|V| - 10

情況二:圖 GG 不包含任何簡單環(無環圖/森林 Forest)

  1. 若 GG 無環,則 GG 為森林。
🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 6 題10 分

Let GG be a connected undirected graph with 15 vertices. If GG is not planar but removing any edge from GG results in a planar graph, how many edges does GG have? List all possible answers and prove the correctness of your answer.

登入後即可作答並保存紀錄。

這一題的完整詳解

考點:極小非平面圖(Minimal Non-planar Graph / Edge-critical Non-planar Graph)與 Kuratowski 定理

詳解

根據題意,GG 為擁有 15 個頂點的連通無向圖(∣V∣=15|V| = 15)。GG 本身非平面圖(Non-planar),但移除任意邊後皆變成平面圖,故 GG 為極小非平面圖(Minimal non-planar graph)。

依據 Kuratowski 定理與極小非平面圖的結構特性,最簡的極小非平面圖僅由以下兩種基本結構之一加上孤立頂點或細分結構組成:

  1. 完全圖 K5K_5(邊數為 10)
  2. 完全二分圖 K3,3K_{3,3}(邊數為 9)

由於 GG 為連通圖且 ∣V∣=15|V| = 15,可分為以下情況討論:

情況一:GG 由基本極小非平面核心與剩餘頂點構成樹狀/路徑連接

  • 若核心為 K5K_5:頂點數佔 5 個,剩餘 15−5=1015 - 5 = 10 個頂點必須與 K5K_5 連通且不形成額外的環(否則移除該邊後仍包含 K5K_5,失去極小性)。
🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

其他考古題