110 年 國立臺灣聯合大學系統(清華、政治、陽明交通、中央四校聯招)研究所電機類《離散數學》

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

第 1 題21 分

  1. True or False? [21 points] Please provide one or two sentences to justify your answer.
    (a) [3 points] If ax=ay(modn)ax = ay \pmod{n}, then x=y(modn)x = y \pmod{n}.
    (b) [3 points] If x=y(modn)x = y \pmod{n}, then ax=ay(modn)ax = ay \pmod{n}.
    (c) [3 points] The set of integers and the set of prime numbers have the same cardinality.
    (d) [3 points] If a relation is symmetric and transitive, then the relation is reflexive.
    (e) [3 points] {{∅}}={∅,{∅}}\{\{\emptyset\}\} = \{\emptyset, \{\emptyset\}\}.
    (f) [3 points] 55 divides n5−nn^5 - n whenever nn is a positive integer.
    (g) [3 points] Given a,b∈N+a, b \in \mathbb{N}^+ and gcd⁡(a,b)≠1\gcd(a, b) \neq 1, we cannot find an inverse of aa modulo bb in some cases.

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

這一題的完整詳解

核心觀念

本題為國立臺灣聯合大學系統(清華、政治、陽明交通、中央)電機類研究所離散數學考古題,綜合考察離散數學四大核心主題:

  1. 數論與模運算 (Modular Arithmetic & Number Theory):
    • 同餘運算的消去律 (Cancellation Law):ax≡ay(modn)  ⟹  x≡y(modngcd⁡(a,n))ax \equiv ay \pmod{n} \implies x \equiv y \pmod{\frac{n}{\gcd(a,n)}}。消去律 x≡y(modn)x \equiv y \pmod{n} 成立的充要條件為 gcd⁡(a,n)=1\gcd(a, n) = 1。
    • 乘法模逆元 (Modular Multiplicative Inverse):aa 在模 bb 下存在模逆元 a−1(modb)a^{-1} \pmod{b} 的充要條件為 gcd⁡(a,b)=1\gcd(a, b) = 1。若 gcd⁡(a,b)>1\gcd(a, b) > 1,則絕對不存在模逆元。
    • 費馬小定理 (Fermat's Little Theorem):若 pp 為質數,則對任意整數 nn,均滿足 np≡n(modp)n^p \equiv n \pmod{p},即 p∣(np−n)p \mid (n^p - n)。
  2. 集合論與基數 (Set Theory & Cardinality):
    • 可數無限集 (Countably Infinite Set):基數為 ℵ0\aleph_0。整數集 Z\mathbb{Z} 與質數集 PP 均為可數無限集,故兩者基數相同(∣Z∣=∣P∣=ℵ0|\mathbb{Z}| = |P| = \aleph_0)。
    • 集合相等定義與元素個數:兩集合相等當且僅當兩者包含完全相同的元素。基數不同則集合必不相等。
  3. 二元關係性質 (Binary Relation Properties):
    • 自反性 (Reflexive)、對稱性 (Symmetric) 與 遞移性 (Transitive) 的嚴格邏輯定義。自反性要求定義域集合中的每一個元素均需滿足 (x,x)∈R(x, x) \in R。

解題方法

此類是非題(True or False)伴隨簡答理由(1-2 句話說明),切入點如下:

  • 判斷為 False 者:最迅速且精準的證明方式為舉出明確反例 (Counterexample)。
  • 判斷為 True 者:直接引用離散數學知名定理(如費馬小定理、歐幾里得質數無限定理)​或邏輯直接推導。
  • 寫作時先給出明確的判斷結果(True / False),接著列出精煉的 1~2 句英文答題示範(符合考題規範),最後給出詳細的繁體中文推導說明。

選項分析

(a) If ax=ay(modn)ax = ay \pmod{n}, then x=y(modn)x = y \pmod{n}.

  • 判斷:False
  • 推導與解析:
    在模運算中,消去律成立的前提為 aa 與模數 nn 互質(即 gcd⁡(a,n)=1\gcd(a, n) = 1)。一般的消去律公式為 ax≡ay(modn)  ⟹  x≡y(modngcd⁡(a,n))ax \equiv ay \pmod{n} \implies x \equiv y \pmod{\frac{n}{\gcd(a, n)}}。當 gcd⁡(a,n)>1\gcd(a, n) > 1 時,無法直接消去 aa。
  • 反例驗證:
    取 a=2,x=1,y=4,n=6a = 2, x = 1, y = 4, n = 6。
    此時 ax=2⋅1=2ax = 2 \cdot 1 = 2,且 ay=2⋅4=8≡2(mod6)ay = 2 \cdot 4 = 8 \equiv 2 \pmod{6},滿足 ax≡ay(modn)ax \equiv ay \pmod{n}。
    然而 x=1≢4=y(mod6)x = 1 \not\equiv 4 = y \pmod{6},故命題不成立。
  • 考試英文答題示範:
    False. The cancellation law holds only when gcd⁡(a,n)=1\gcd(a, n) = 1. For example, 2⋅1≡2⋅4(mod6)2 \cdot 1 \equiv 2 \cdot 4 \pmod{6}, but 1≢4(mod6)1 \not\equiv 4 \pmod{6}.

(b) If x=y(modn)x = y \pmod{n}, then ax=ay(modn)ax = ay \pmod{n}.

  • 判斷:True
  • 推導與解析:
    同餘關係對整數乘法具備封閉性。依同餘定義:
    x≡y(modn)  ⟺  n∣(x−y)  ⟺  x−y=kn(k∈Z)x \equiv y \pmod{n} \iff n \mid (x - y) \iff x - y = kn \quad (k \in \mathbb{Z})
    等式兩邊同乘以整數 aa:
    a(x−y)=a(kn)  ⟺  ax−ay=(ak)na(x - y) = a(kn) \iff ax - ay = (ak)n
    因為 ak∈Zak \in \mathbb{Z},故 n∣(ax−ay)n \mid (ax - ay),即 ax≡ay(modn)ax \equiv ay \pmod{n} 對任意整數 aa 恆成立。
  • 考試英文答題示範:
    True. If x≡y(modn)x \equiv y \pmod{n}, then n∣(x−y)n \mid (x - y), which implies n∣a(x−y)=ax−ayn \mid a(x - y) = ax - ay, so ax≡ay(modn)ax \equiv ay \pmod{n}.

(c) The set of integers and the set of prime numbers have the same cardinality.

  • 判斷:True
  • 推導與解析:
    整數集合 Z\mathbb{Z} 為可數無限集,其基數為 ∣Z∣=ℵ0|\mathbb{Z}| = \aleph_0。由歐幾里得定理可知質數有無限多個,故質數集合 P={2,3,5,7,11,… }P = \{2, 3, 5, 7, 11, \dots\} 亦為可數無限集,基數為 ∣P∣=ℵ0|P| = \aleph_0。兩集合基數相同,皆與自然數集 N\mathbb{N} 一一對應。
  • 考試英文答題示範:
    True. Both the set of integers Z\mathbb{Z} and the set of prime numbers are countably infinite, so they both have cardinality ℵ0\aleph_0.

(d) If a relation is symmetric and transitive, then the relation is reflexive.

  • 判斷:False
  • 推導與解析:
    自反性定義為:對集合 AA 中的每一個元素 x∈Ax \in A,皆必須滿足 (x,x)∈R(x, x) \in R。
    若集合 AA 中存在某個「孤立元素」xx(不與集合中的任何元素建立關係),則對稱性與遞移性會在邏輯上空洞成立(vacuously true),但自反性因 (x,x)∉R(x, x) \notin R 而失敗。
  • 反例驗證:
    設集合 A={1,2}A = \{1, 2\},定義域上的二元關係 R={(1,1)}R = \{(1, 1)\}。
    • 對稱性:若 (x,y)∈R  ⟹  (y,x)∈R(x, y) \in R \implies (y, x) \in R,滿足。
    • 遞移性:若 (x,y)∈R∧(y,z)∈R  ⟹  (x,z)∈R(x, y) \in R \land (y, z) \in R \implies (x, z) \in R,滿足。
    • 自反性:2∈A2 \in A,但 (2,2)∉R(2, 2) \notin R,故不滿足自反性。
  • 考試英文答題示範:
    False. If an element x∈Ax \in A is not related to any element in AA, then symmetry and transitivity hold vacuously, but reflexivity fails. Counterexample: A={1,2}A = \{1, 2\} and R={(1,1)}R = \{(1, 1)\}.

(e) {{∅}}={∅,{∅}}\{\{\emptyset\}\} = \{\emptyset, \{\emptyset\}\}.

  • 判斷:False
  • 推導與解析:
    檢視兩集合的元素與基數:
    • 左式 L={{∅}}L = \{\{\emptyset\}\} 僅包含 11 個元素(該元素為集合 {∅}\{\emptyset\}),故基數 ∣L∣=1|L| = 1。
    • 右式 R={∅,{∅}}R = \{\emptyset, \{\emptyset\}\} 包含 22 個不同的元素(空集 ∅\emptyset 與單元素集 {∅}\{\emptyset\}),故基數 ∣R∣=2|R| = 2。
      兩集合基數不同(1≠21 \neq 2),故兩集合必不相等。
  • 考試英文答題示範:
🔒

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

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

免費註冊

第 2 題12 分

  1. Independence is the key to a good research! [12 points] An independent set in a graph is defined as a set of vertices with no edges connecting them, i.e., no two of which are adjacent. Let G be a graph with nn vertices and m=⌊nd/2⌋m = \lfloor nd/2 \rfloor edges (d>1d > 1). Here, we conduct the following probabilistic experiment for finding an independent set in G: delete each vertex of G with all its incident edges independently with probability 1−1/d1 - 1/d.

(a) [6 points] Compute the expected number of vertices and edges that remain after the deletion process.
(b) [6 points] Based on (a), try to infer that for any graph with nn vertices with m=⌊nd/2⌋m = \lfloor nd/2 \rfloor edges, there is an independent set with at least n/(2d)n/(2d) vertices.

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

這一題的完整詳解

(a) 計算期望值

1. 剩餘頂點數之期望值 E[X]\mathbb{E}[X]

設頂點集為 VV,∣V∣=n|V| = n。定義指示隨機變數 XiX_i 為頂點 viv_i 在刪除過程後留下的指示函數(留下來為 1,被刪除為 0)。

每個頂點保留的機率為:
p=1−(1−1d)=1dp = 1 - \left(1 - \frac{1}{d}\right) = \frac{1}{d}

由期望值的線性性質(Linearity of Expectation),剩餘頂點數 X=∑i=1nXiX = \sum_{i=1}^n X_i 的期望值為:
E[X]=∑i=1nE[Xi]=n⋅p=nd\mathbb{E}[X] = \sum_{i=1}^n \mathbb{E}[X_i] = n \cdot p = \frac{n}{d}

2. 剩餘邊數之期望值 E[Y]\mathbb{E}[Y]

設邊集為 EE,∣E∣=m=⌊nd/2⌋|E| = m = \lfloor nd/2 \rfloor。一條邊 e=(u,v)e = (u, v) 會在過程結束後保留,若且唯若其兩個端點 uu 與 vv 同時被保留。

由於各頂點獨立刪除,該邊保留的機率為:
pe=p⋅p=1d⋅1d=1d2p_e = p \cdot p = \frac{1}{d} \cdot \frac{1}{d} = \frac{1}{d^2}

定義指示隨機變數 YjY_j 為邊 eje_j 保留的指示函數,剩餘邊數 Y=∑j=1mYjY = \sum_{j=1}^m Y_j 的期望值為:
E[Y]=∑j=1mE[Yj]=m⋅1d2=⌊nd/2⌋⋅1d2\mathbb{E}[Y] = \sum_{j=1}^m \mathbb{E}[Y_j] = m \cdot \frac{1}{d^2} = \lfloor nd/2 \rfloor \cdot \frac{1}{d^2}

若取 upper bound 忽略取整數符號(⌊nd/2⌋≤nd/2\lfloor nd/2 \rfloor \le nd/2),則:
E[Y]≤nd2d2=n2d\mathbb{E}[Y] \le \frac{nd}{2d^2} = \frac{n}{2d}


(b) 證明獨立集的大小下界

利用機率方法(Probabilistic Method)中的改變結構法(Alteration Method):

  1. 經過隨機刪除後,剩餘的子圖包含 XX 個頂點與 YY 條邊。
  2. 對剩餘子圖中的每一條邊,任意從其兩個端點中刪除一個頂點(同時移除該邊)。此操作最多刪除 YY 個頂點,且保證消除所有的邊,剩餘的頂點集即構成一個獨立集(Independent Set)。
🔒

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

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

免費註冊

第 3 題10 分

  1. A tree is a seed that never gave up on its dream to flourish. [10 points] Let T be a spanning tree of a graph G with an edge cost function c. T is defined to have the cycle property if for any edge e′∉Te' \notin T, c(e′)≥c(e)c(e') \ge c(e) for all ee in the cycle generated by adding e′e' to T. Also, T is defined to have the cut property if for any edge e∈Te \in T, c(e)≤c(e′)c(e) \le c(e') for all e′e' in the cut defined by ee. Show that the following three statements are equivalent:
  2. T has the cycle property.
  3. T has the cut property.
  4. T is a minimum cost spanning tree.

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

這一題的完整詳解

核心觀念

本題考查圖論(Graph Theory)中生成樹(Spanning Tree)​與最小生成樹(Minimum Cost Spanning Tree, MST)​的經典結構性質及其等價性定理。

設連通賦權圖為 G=(V,E)G = (V, E),其邊權重函數為 c:E→Rc: E \to \mathbb{R},T=(V,ET)T = (V, E_T) 為 GG 的一個生成樹。

  1. 基本環路(Fundamental Cycle)與環路性質(Cycle Property):
    對於任意非樹邊 e′∉Te' \notin T,將 e′e' 加入 TT 中會形成唯一的簡單環路,稱為由 e′e' 誘發的基本環路 C(T,e′)C(T, e')。若對該環路上所有的邊 e∈C(T,e′)e \in C(T, e'),皆滿足 c(e′)≥c(e)c(e') \ge c(e),則稱 TT 具備環路性質。
    (意即:任何非樹邊 e′e' 都是其所產生的基本環路中權重最大者之一。)

  2. 基本割集(Fundamental Cutset)與割集性質(Cut Property):
    對於任意樹邊 e∈Te \in T,將 ee 自 TT 中刪除會使 TT 分裂為兩個獨立的連通元件,進而誘發點集劃分 (V1,V2)(V_1, V_2)。由該劃分所決定的割集為 D(T,e)={(u,v)∈E∣u∈V1,v∈V2}D(T, e) = \{ (u, v) \in E \mid u \in V_1, v \in V_2 \}。若對該割集中所有的邊 e′∈D(T,e)e' \in D(T, e),皆滿足 c(e)≤c(e′)c(e) \le c(e'),則稱 TT 具備割集性質。
    (意即:任何樹邊 ee 都是其所產生的基本割集中權重最小者之一。)

  3. 最小生成樹(Minimum Cost Spanning Tree, MST):
    生成樹 TT 的所有邊權重總和 ∑e∈Tc(e)\sum_{e \in T} c(e) 在 GG 的所有可能生成樹中達到全域最小值。

為了證明三者等價(1⇔2⇔31 \Leftrightarrow 2 \Leftrightarrow 3),最簡潔嚴謹的方法是採取環狀推導法(Circular Proof):分別證明 (1)⇒(2)(1) \Rightarrow (2)、(2)⇒(3)(2) \Rightarrow (3) 與 (3)⇒(1)(3) \Rightarrow (1)。


解題方法

步驟一:證明 (1)⇒(2)(1) \Rightarrow (2) (環路性質 ⇒\Rightarrow 割集性質)

  • 假設:TT 具備環路性質。
  • 目標:證明 TT 亦具備割集性質。
  • 證明推導:
    1. 任取一條樹邊 e=(u,v)∈Te = (u, v) \in T。刪除邊 ee 後,TT 分裂為兩個不相交的頂點子集 V1V_1 與 V2V_2,其中 u∈V1,v∈V2u \in V_1, v \in V_2。
    2. 由 ee 誘發的基本割集為 D(T,e)={(x,y)∈E∣x∈V1,y∈V2}D(T, e) = \{ (x, y) \in E \mid x \in V_1, y \in V_2 \}。
    3. 對於割集 D(T,e)D(T, e) 中的任意邊 e′e':
      • 若 e′=ee' = e,顯然 c(e)≤c(e′)c(e) \le c(e') 恆成立。
      • 若 e′≠ee' \neq e,則必有 e′∉Te' \notin T。將 e′e' 加入 TT 中會形成唯一的簡單基本環路 C(T,e′)C(T, e')。
      • 由於 e′e' 的兩端點分別位於 V1V_1 與 V2V_2,在生成樹 TT 中連接這兩端點的唯一簡單路徑必然跨越割集 (V1,V2)(V_1, V_2)。而在 TT 中跨越此割集的邊僅有 ee 自身。
      • 因此,樹邊 ee 必定落在基本環路 C(T,e′)C(T, e') 上,即 e∈C(T,e′)e \in C(T, e')。
      • 根據假設,TT 具備環路性質,故對環路 C(T,e′)C(T, e') 上的所有邊 ee,均滿足 c(e′)≥c(e)c(e') \ge c(e),即 c(e)≤c(e′)c(e) \le c(e')。
    4. 由於對所有 e′∈D(T,e)e' \in D(T, e) 皆滿足 c(e)≤c(e′)c(e) \le c(e'),故 TT 具備割集性質。 ■\blacksquare

步驟二:證明 (2)⇒(3)(2) \Rightarrow (3) (割集性質 ⇒\Rightarrow 最小生成樹)

  • 假設:TT 具備割集性質。
  • 目標:證明 TT 為最小生成樹(MST)。
  • 證明推導(採用替換論證法 Exchange Argument 與反證法):
    1. 假設 TT 不是最小生成樹。設 T∗T^* 為圖 GG 的某個最小生成樹,且 T∗T^* 滿足「與 TT 擁有最多相同邊」的條件。
    2. 若 T≠T∗T \neq T^*,則必存在至少一條樹邊 e∈T∖T∗e \in T \setminus T^*。
    3. 從 TT 中刪除邊 ee 將點集 VV 切割為 V1V_1 與 V2V_2,對應的基本割集為 D(T,e)D(T, e)。
    4. 因為 T∗T^* 是連通的生成樹,在 T∗T^* 中必定存在至少一條邊 e′∈T∗e' \in T^* 跨越割集 (V1,V2)(V_1, V_2),即 e′∈D(T,e)e' \in D(T, e)。注意此時 e′∉Te' \notin T(因為 TT 中跨越該割集的邊只有 ee)。
    5. 根據假設 TT 具備割集性質,對於割集 D(T,e)D(T, e) 中的邊 e′e',必有 c(e)≤c(e′)c(e) \le c(e')。
    6. 構造一個新的生成樹 T′′=(T∗∖{e′})∪{e}T'' = (T^* \setminus \{e'\}) \cup \{e\}:
      • T′′T'' 的總權重為:
        c(T′′)=c(T∗)−c(e′)+c(e)c(T'') = c(T^*) - c(e') + c(e)
      • 因為 c(e)≤c(e′)c(e) \le c(e'),可得 c(T′′)≤c(T∗)c(T'') \le c(T^*)。
      • 由於 T∗T^* 已是最小生成樹,權重不可能高於 T′′T'',因此必有 c(T′′)=c(T∗)c(T'') = c(T^*),意即 T′′T'' 亦為最小生成樹。
    7. 然而,T′′T'' 與 TT 的共同邊集合為 (T∗∩T)∪{e}(T^* \cap T) \cup \{e\},其共同邊數量比 T∗T^* 與 TT 的共同邊數量多出一條,這與「T∗T^* 是與 TT 擁有最多相同邊之 MST」的假設矛盾。
    8. 故假設不成立,TT 必然是最小生成樹(MST)。 ■\blacksquare

步驟三:證明 (3)⇒(1)(3) \Rightarrow (1) (最小生成樹 ⇒\Rightarrow 環路性質)

  • 假設:TT 為最小生成樹(MST)。
  • 目標:證明 TT 具備環路性質。
  • 證明推導(採用反證法):
    1. 任取一條非樹邊 e′∉Te' \notin T。將 e′e' 加入 TT 中形成基本環路 C(T,e′)C(T, e')。
    2. 任取該基本環路上的任意樹邊 e∈C(T,e′)e \in C(T, e')。
    3. 若將邊 ee 從 TT 中移除並替換為邊 e′e',可建構出一個新的生成樹 T′=(T∖{e})∪{e′}T' = (T \setminus \{e\}) \cup \{e'\}。
    4. 新生成樹 T′T' 的邊權重總和為:
      c(T′)=c(T)−c(e)+c(e′)c(T') = c(T) - c(e) + c(e')
🔒

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

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

免費註冊

第 4 題8 分

  1. Respect for the ancients. [8 points] Find an integer x such that x≡1(mod3)x \equiv 1 \pmod{3}, x≡3(mod7)x \equiv 3 \pmod{7} and x≡9(mod11)x \equiv 9 \pmod{11}.

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

這一題的完整詳解

核心觀念

本題考查中國剩餘定理(Chinese Remainder Theorem, CRT)​與聯立同餘方程組(System of Linear Congruences)​的求解。

中國剩餘定理 (CRT):
設 m1,m2,…,mnm_1, m_2, \dots, m_n 為兩兩互質(relatively prime)的正整數,且總模數 M=∏i=1nmiM = \prod_{i=1}^n m_i。對於任意整數 a1,a2,…,ana_1, a_2, \dots, a_n,聯立同餘方程組:
x≡ai(modmi),i=1,2,…,nx \equiv a_i \pmod{m_i}, \quad i = 1, 2, \dots, n
在模 MM 下存在唯一解,表示為:
x≡(∑i=1naiMiyi)(modM)x \equiv \left( \sum_{i=1}^n a_i M_i y_i \right) \pmod M
其中 Mi=MmiM_i = \frac{M}{m_i},且 yiy_i 為 MiM_i 對模數 mim_i 的乘法反元素(乘法逆元),即滿足 Miyi≡1(modmi)M_i y_i \equiv 1 \pmod{m_i}。


解題方法

本題給定之同餘方程組為:
{x≡1(mod3)x≡3(mod7)x≡9(mod11)\begin{cases} x \equiv 1 \pmod{3} \\ x \equiv 3 \pmod{7} \\ x \equiv 9 \pmod{11} \end{cases}

步驟一:確認條件與計算總模數

模數分別為 m1=3,m2=7,m3=11m_1 = 3, m_2 = 7, m_3 = 11。
由於 gcd⁡(3,7)=gcd⁡(7,11)=gcd⁡(3,11)=1\gcd(3,7) = \gcd(7,11) = \gcd(3,11) = 1,滿足兩兩互質條件。
總模數 M=3×7×11=231M = 3 \times 7 \times 11 = 231。

步驟二:計算各項的 MiM_i 與乘法反元素 yiy_i

  1. 針對 m1=3m_1 = 3:
    M1=2313=77M_1 = \frac{231}{3} = 77
    求解 77y1≡1(mod3)77 y_1 \equiv 1 \pmod 3:
    77≡2(mod3)  ⟹  2y1≡1(mod3)  ⟹  y1≡2(mod3)77 \equiv 2 \pmod 3 \implies 2 y_1 \equiv 1 \pmod 3 \implies y_1 \equiv 2 \pmod 3

  2. 針對 m2=7m_2 = 7:
    M2=2317=33M_2 = \frac{231}{7} = 33
    求解 33y2≡1(mod7)33 y_2 \equiv 1 \pmod 7:
    33≡5(mod7)  ⟹  5y2≡1(mod7)  ⟹  −2y2≡1(mod7)  ⟹  y2≡3(mod7)33 \equiv 5 \pmod 7 \implies 5 y_2 \equiv 1 \pmod 7 \implies -2 y_2 \equiv 1 \pmod 7 \implies y_2 \equiv 3 \pmod 7

  3. 針對 m3=11m_3 = 11:
    M3=23111=21M_3 = \frac{231}{11} = 21
    求解 21y3≡1(mod11)21 y_3 \equiv 1 \pmod{11}:
    21≡10≡−1(mod11)  ⟹  −y3≡1(mod11)  ⟹  y3≡10(mod11)21 \equiv 10 \equiv -1 \pmod{11} \implies -y_3 \equiv 1 \pmod{11} \implies y_3 \equiv 10 \pmod{11}

步驟三:代入 CRT 公式合成解答

已知 a1=1,a2=3,a3=9a_1 = 1, a_2 = 3, a_3 = 9,構造特解 XX:
X=a1M1y1+a2M2y2+a3M3y3X = a_1 M_1 y_1 + a_2 M_2 y_2 + a_3 M_3 y_3
X=1×77×2+3×33×3+9×21×10X = 1 \times 77 \times 2 + 3 \times 33 \times 3 + 9 \times 21 \times 10
X=154+297+1890=2341X = 154 + 297 + 1890 = 2341

將特解對總模數 M=231M = 231 取餘數:
2341=231×10+312341 = 231 \times 10 + 31
x≡2341≡31(mod231)x \equiv 2341 \equiv 31 \pmod{231}

因此,整數解的通解形式為 x=231k+31x = 231k + 31(k∈Zk \in \mathbb{Z}),最小正整數解為 3131。


選項分析

🔒

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

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

免費註冊

第 5 題10 分

  1. Show time! [10 points] Prove that for every positive integer n, there are n consecutive composite integers. In other words, prove that we can find n consecutive composite integers for any n.

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

這一題的完整詳解

核心觀念

  1. 合數(Composite Number)的定義:
    正整數 m>1m > 1 若除了 11 與自身之外,還存在其他正整數因數,即稱為合數。換言之,若存在整數 kk 滿足 1<k<m1 < k < m 且 k∣mk \mid m,則 mm 必為合數。

  2. 階乘(Factorial)的整除性質:
    對於任意正整數 mm,階乘 m!=1×2×3×⋯×mm! = 1 \times 2 \times 3 \times \dots \times m 必能被 2,3,…,m2, 3, \dots, m 當中的任意整數整除。

  3. 數論整除的線性組合性質:
    若整數 d∣ad \mid a 且 d∣bd \mid b,則 d∣(a+b)d \mid (a + b)。


解題方法

本題要求證明對任意正整數 nn,皆存在 nn 個連續的合數。最直接且嚴密的證明方式為顯式構造法(Explicit Construction)。

完整推導與證明步驟:

  1. 構造目標數列:
    對任意給定的正整數 nn,構造以下 nn 個連續整數:
    ak=(n+1)!+k,其中 k=2,3,4,…,n+1a_k = (n+1)! + k, \quad \text{其中 } k = 2, 3, 4, \dots, n+1

  2. 驗證項數與連續性:
    數列從 k=2k = 2 開始至 k=n+1k = n+1 結束,其項數為:
    (n+1)−2+1=n(n+1) - 2 + 1 = n
    且各項相差 11,故此 nn 個數為連續正整數。

  3. 證明每一項皆為合數:
    對於數列中的任意一項 ak=(n+1)!+ka_k = (n+1)! + k(其中 2≤k≤n+12 \le k \le n+1):

    • 因為 2≤k≤n+12 \le k \le n+1,在連乘積 (n+1)!=1×2×⋯×k⋯×(n+1)(n+1)! = 1 \times 2 \times \dots \times k \dots \times (n+1) 中必然包含因子 kk,故 k∣(n+1)!k \mid (n+1)!。
    • 顯然 k∣kk \mid k。
    • 根據整除的可加性,可得 k∣((n+1)!+k)k \mid \left( (n+1)! + k \right)。
    • 又因為 k≥2k \ge 2,且 (n+1)!≥2(n+1)! \ge 2,可知 (n+1)!+k>k(n+1)! + k > k。

    綜合上述,整數 (n+1)!+k(n+1)! + k 擁有一個大於 11 且小於自身的真因數(Proper Divisor)kk,因此 (n+1)!+k(n+1)! + k 必為合數。

  4. 結論:
    對任意正整數 nn,數列 (n+1)!+2,(n+1)!+3,…,(n+1)!+(n+1)(n+1)! + 2, (n+1)! + 3, \dots, (n+1)! + (n+1) 即為 nn 個連續的合數。命題得證。


選項分析

本題為非選擇題(證明題)。針對證明構造的關鍵細節分析如下:

  • 邊界選擇:為何從 +2+2 開始,而不是 +1+1?
    若考慮 (n+1)!+1(n+1)! + 1,因為 11 整除任何整數,無法提供大於 11 的真因數證明。事實上 (n+1)!+1(n+1)! + 1 可能是質數(例如 n=2n=2 時,(2+1)!+1=7(2+1)! + 1 = 7 為質數),因此加數必須從 22 開始。
🔒

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

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

免費註冊

第 6 題13 分

  1. I want to play a game! [13 points] Now we want to play a famous game called "Sprouts", which is a two-player game and can be played with paper and pencil. First, several dots are drawn on the paper. Afterward, the players take turns, each doing the following process.
    • Drawing a line that connects two dots or connects a dot to itself but does not touch or cross any other line.
    • Putting a new dot on this new line, thus separating it into two lines.
    If no dot can have more than three lines attached to it, the last player that can make a legal move wins.

(a) [6 points] Prove that any Sprouts game consists of a finite number of moves before someone loses. In other words, the game will terminate eventually.
(b) [7 points] Show a tight upper bound on the worst-case number of moves in a Sprouts game that starts with n dots, and prove your answer.

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

這一題的完整詳解

(a) 證明:Sprouts 遊戲必在有限次移動內結束

令遊戲起始點數為 nn。

  1. 初始狀態:

    • 每個點最多能連接 33 條邊,稱點的剩餘連接度(Degree capacity)總和為「可用點度數」(Lives)。
    • 初始狀態下,每個點有 33 個 Lives,故初始總 Lives 為 3n3n。
  2. 每一步移動對 Lives 的變動:

    • 連接兩個舊點(或同一個點的兩端)消耗 22 個 Lives。
    • 在新畫的線上新增 11 個新點,該點連接剛剛畫出的 22 條新邊,故該新點消耗 22 個 Lives,剩餘 3−2=13 - 2 = 1 個 Life。
    • 因此,每次移動淨消耗的 Lives 數為:2−1=12 - 1 = 1 個 Life。
  3. 結論:

    • 遊戲過程中的總 Lives 數從 3n3n 開始,每移動一次恰好減少 11。
    • 因為總 Lives 數恆為非負整數(≥0\ge 0),所以總移動次數不可能超過 3n3n 次。
    • 因此,任何 Sprouts 遊戲必在有限次移動內終止。

(b) 求解並證明初始 nn 個點的極限最大移動次數(Tight Upper Bound)

【答案】
最壞情況下的最大移動次數緊緻上界為 3n−13n - 1 次。

證明:

  1. 點與邊的動態數量關係:

    • 設經歷 mm 次移動後,遊戲中的總點數為 VV,總邊數為 EE。
    • 初始時 V=nV = n,E=0E = 0。
    • 每次移動增加 11 個點與 22 條邊,故 mm 次移動後:
      V=n+mV = n + m
      E=2mE = 2m
  2. Lives 與孤立區域的關係:

    • 當遊戲無法再進行時(終局),每個點若還有 11 個剩餘的 Life,它必須被封閉在某個區域內,使得沒有其他擁有剩餘 Life 的點與其在同一區域內(否則兩點即可連線繼續遊戲)。
🔒

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

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

免費註冊

第 7 題12 分

  1. Act together, we go far. [12 points] Suppose we have two isomorphic graphs G₁ and H₁, as well as two isomorphic graphs G₂ and H₂. Prove or disprove that G₁UG₂ and H₁UH₂ are also isomorphic.

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

這一題的完整詳解

【試題】 7. Act together, we go far. [12 points] Suppose we have two isomorphic graphs G1G_1 and H1H_1, as well as two isomorphic graphs G2G_2 and H2H_2. Prove or disprove that G1∪G2G_1 \cup G_2 and H1∪H2H_1 \cup H_2 are also isomorphic.


破題觀念

  1. 圖聯集(Graph Union)定義:G1∪G2=(V(G1)∪V(G2),E(G1)∪E(G2))G_1 \cup G_2 = (V(G_1) \cup V(G_2), E(G_1) \cup E(G_2))。
  2. 同構關鍵:同構的充分必要條件是頂點集合間存在一個保持邊對應關係的一對一且映射(Bijective)映射函數。若頂點集交集結構(重疊方式)不同,聯集後的結構可能改變。
  3. 反例證明法:若要否定(Disprove)一個命題,只需舉出一個具體反例。

詳細證明與反例

本命題為不成立(Disprove)。

反例構造:

取四個頂點皆為 {1,2,3}\{1, 2, 3\} 的圖:

  • 令 G1=(V1,E1)G_1 = (V_1, E_1),其中 V1={1,2,3}V_1 = \{1, 2, 3\}, E1={(1,2)}E_1 = \{(1, 2)\} (單條邊圖)。
  • 令 H1=(V1′,E1′)H_1 = (V_1', E_1'),其中 V1′={1,2,3}V_1' = \{1, 2, 3\}, E1′={(1,2)}E_1' = \{(1, 2)\} (單條邊圖)。
  • 令 G2=(V2,E2)G_2 = (V_2, E_2),其中 V2={1,2,3}V_2 = \{1, 2, 3\}, E2={(2,3)}E_2 = \{(2, 3)\} (單條邊圖)。
  • 令 H2=(V2′,E2′)H_2 = (V_2', E_2'),其中 V2′={1,2,3}V_2' = \{1, 2, 3\}, E2′={(1,2)}E_2' = \{(1, 2)\} (單條邊圖)。

驗證同構與聯集結果:

  1. 已知條件成立:
    • G1≅H1G_1 \cong H_1(皆為含有 1 條邊與 3 個頂點的圖)。
    • G2≅H2G_2 \cong H_2(皆為含有 1 條邊與 3 個頂點的圖)。
🔒

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

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

免費註冊

第 8 題14 分

  1. Simplicity is the keynote of all true elegance. [14 points]
    (a) [7 points] Use the recurrence tree method to solve the time complexity of recurrence T(n)=3T(⌊n/4⌋)+Θ(n2)T(n) = 3T(\lfloor n/4 \rfloor) + \Theta(n^2) in the Θ\Theta-notation.
    (b) [7 points] Solve the time complexity of recurrence T(n)=2T(⌊n/2⌋+n)+n/4T(n) = 2T(\lfloor n/2 \rfloor + \sqrt{n}) + \sqrt{n}/4 in the Θ\Theta-notation without using Master method.

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

這一題的完整詳解

8(a)

【觀念要點】
畫出遞迴樹(Recurrence Tree),統計各層成本(Cost)後求和。

【關鍵步驟】

  1. 樹的結構分析:

    • 頂點(第 00 層)成本為 c⋅n2c \cdot n^2。
    • 每層一個節點分裂為 33 個子節點,子問題規模為原本的 ⌊n/4⌋\lfloor n/4 \rfloor。
    • 第 ii 層的節點數為 3i3^i,每個節點成本為 c⋅(n4i)2=c⋅n2⋅(116)ic \cdot \left(\frac{n}{4^i}\right)^2 = c \cdot n^2 \cdot \left(\frac{1}{16}\right)^i。
  2. 每層成本總和:
    Costi=3i⋅c⋅n2⋅(116)i=c⋅n2(316)iCost_i = 3^i \cdot c \cdot n^2 \cdot \left(\frac{1}{16}\right)^i = c \cdot n^2 \left(\frac{3}{16}\right)^i

  3. 遞迴樹深度:
    最底層深度為 k=log⁡4nk = \log_4 n。
    葉節點數量為 3k=3log⁡4n=nlog⁡433^k = 3^{\log_4 n} = n^{\log_4 3},葉節點總成本為 Θ(nlog⁡43)\Theta(n^{\log_4 3})。

  4. 總成本求和:
    T(n)=∑i=0log⁡4n−1c⋅n2(316)i+Θ(nlog⁡43)T(n) = \sum_{i=0}^{\log_4 n - 1} c \cdot n^2 \left(\frac{3}{16}\right)^i + \Theta(n^{\log_4 3})
    由於無窮等比級數 ∑i=0∞(316)i=11−3/16=1613\sum_{i=0}^{\infty} \left(\frac{3}{16}\right)^i = \frac{1}{1 - 3/16} = \frac{16}{13} 收斂為常數:
    T(n)≤c⋅n2∑i=0∞(316)i+Θ(nlog⁡43)=1613c⋅n2+Θ(nlog⁡43)=Θ(n2)T(n) \le c \cdot n^2 \sum_{i=0}^{\infty} \left(\frac{3}{16}\right)^i + \Theta(n^{\log_4 3}) = \frac{16}{13} c \cdot n^2 + \Theta(n^{\log_4 3}) = \Theta(n^2)

【答案】T(n)=Θ(n2)T(n) = \Theta(n^2)


8(b)

【觀念要點】
利用變數代換法(Substitution via Variable Change)簡化遞迴式,將其轉化為標準形狀後求解。

【關鍵步驟】

  1. 簡化遞迴式與界定:
    忽略高階微小項與取整函數(底限函數對漸進複雜度無影響),將遞迴式寫為:
    T(n)=2T(n/2+n)+n4T(n) = 2T(n/2 + \sqrt{n}) + \frac{\sqrt{n}}{4}
    設 m=log⁡2nm = \log_2 n(即 n=2mn = 2^m),當 nn 足夠大時,n/2+n≈n/2=2m−1n/2 + \sqrt{n} \approx n/2 = 2^{m-1}。
    (嚴謹寫法可利用代入法/數學歸納法證明,其高次方項不影響漸進上界與下界)。
🔒

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

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

免費註冊

第 None 題

注意:背面有試題

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

這一題的完整詳解

本題原始試題內文僅標示「注意:背面有試題」,缺乏具體的試題敘述與選項內容。以下在合理假設下,補充台聯大電機類離散數學高頻考題「二階非齊次線性遞迴關係」進行完整解析。

題目內容(合理假設)
已知遞迴關係式 an−5an−1+6an−2=4na_n - 5a_{n-1} + 6a_{n-2} = 4^n (其中 n≥2n \ge 2),且初始條件為 a0=2,a1=7a_0 = 2, a_1 = 7。試判斷下列選項何者正確:
(A) 齊次解之特徵根為 r=1,6r = 1, 6
(B) 特解的形式可設為 an(p)=C⋅4na_n^{(p)} = C \cdot 4^n
(C) 特解常數為 C=8C = 8
(D) 通解為 an=2n+3n+4n+1a_n = 2^n + 3^n + 4^{n+1}
(E) a2=37a_2 = 37


核心觀念

本題考查常係數線性非齊次遞迴關係(Linear Non-homogeneous Recurrence Relation with Constant Coefficients)​的求解步驟:

  1. 齊次解 an(h)a_n^{(h)}:考慮對應的齊次方程式 an−5an−1+6an−2=0a_n - 5a_{n-1} + 6a_{n-2} = 0,求解特徵方程式(Characteristic Equation) r2−5r+6=0r^2 - 5r + 6 = 0 得到特徵根 r1,r2r_1, r_2。齊次解形式為 an(h)=c1r1n+c2r2na_n^{(h)} = c_1 r_1^n + c_2 r_2^n。
  2. 特解 an(p)a_n^{(p)}:根據非齊次項 F(n)=4nF(n) = 4^n 的形式,利用待定係數法(Method of Undetermined Coefficients)假設特解形式。若 F(n)=d⋅knF(n) = d \cdot k^n 且 kk 不是特徵根,則設 an(p)=C⋅kna_n^{(p)} = C \cdot k^n。
  3. 通解與初始條件:將齊次解與特解相加得到通解 an=an(h)+an(p)a_n = a_n^{(h)} + a_n^{(p)},再代入初始條件 a0,a1a_0, a_1 聯立求解未定常數 c1,c2c_1, c_2。

解題方法

第一步:求解齊次解 an(h)a_n^{(h)}

考慮齊次方程式:
an−5an−1+6an−2=0a_n - 5a_{n-1} + 6a_{n-2} = 0

寫出特徵方程式:
r2−5r+6=0r^2 - 5r + 6 = 0

因式分解得:
(r−2)(r−3)=0  ⟹  r1=2,r2=3(r - 2)(r - 3) = 0 \implies r_1 = 2, r_2 = 3

因此齊次解為:
an(h)=c1⋅2n+c2⋅3na_n^{(h)} = c_1 \cdot 2^n + c_2 \cdot 3^n

第二步:求解特解 an(p)a_n^{(p)}

非齊次項為 F(n)=4nF(n) = 4^n。因為底數 44 不等於任何特徵根(22 與 33),故假設特解為:
an(p)=C⋅4na_n^{(p)} = C \cdot 4^n

將特解代入原遞迴關係式:
C⋅4n−5C⋅4n−1+6C⋅4n−2=4nC \cdot 4^n - 5 C \cdot 4^{n-1} + 6 C \cdot 4^{n-2} = 4^n

兩邊同除以 4n−24^{n-2}:
16C−20C+6C=1616C - 20C + 6C = 16

同類項合併:
2C=16  ⟹  C=82C = 16 \implies C = 8

故特解為:
an(p)=8⋅4na_n^{(p)} = 8 \cdot 4^n

第三步:求通解並結合初始條件

將齊次解與特解相加得到通解:
an=c1⋅2n+c2⋅3n+8⋅4na_n = c_1 \cdot 2^n + c_2 \cdot 3^n + 8 \cdot 4^n

利用初始條件 a0=2,a1=7a_0 = 2, a_1 = 7:

  • 當 n=0n = 0 時:
    a0=c1⋅20+c2⋅30+8⋅40=c1+c2+8=2  ⟹  c1+c2=−6— (1)a_0 = c_1 \cdot 2^0 + c_2 \cdot 3^0 + 8 \cdot 4^0 = c_1 + c_2 + 8 = 2 \implies c_1 + c_2 = -6 \quad \text{--- (1)}
  • 當 n=1n = 1 時:
    a1=c1⋅21+c2⋅31+8⋅41=2c1+3c2+32=7  ⟹  2c1+3c2=−25— (2)a_1 = c_1 \cdot 2^1 + c_2 \cdot 3^1 + 8 \cdot 4^1 = 2c_1 + 3c_2 + 32 = 7 \implies 2c_1 + 3c_2 = -25 \quad \text{--- (2)}

聯立方程式 (1) 與 (2):
將 (1) 式乘以 2 得 2c1+2c2=−122c_1 + 2c_2 = -12,用 (2) 式減去此式:
c2=−25−(−12)=−13c_2 = -25 - (-12) = -13

再代回 (1) 式求得 c1c_1:
c1=−6−(−13)=7c_1 = -6 - (-13) = 7

🔒

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

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

免費註冊

其他考古題