免費詳解 / 中山 / 數學 / 103

103 中山資工所考古題解答|數學逐題詳解

103 中山資工所數學考古題的逐題詳解,共 8 題,免費公開。

逐題詳解

110%

(a) [2%] What is the Well-Ordering Principle? (b) [2%] What is the Principle of Mathematical Induction? (c) [6%] Please use the Well-Ordering Principle to prove that the Principle of Mathematical Induction is true?

(a) Well-Ordering Principle:正整數的任一非空子集都有最小元素

(b) Principle of Mathematical Induction:若 \(P(1)\) 成立,且對每個 \(k\ge1\),\(P(k)\Rightarrow P(k+1)\),則 \(P(n)\) 對所有正整數 \(n\) 成立

(c) 設 \(P(1)\) 成立且 \(P(k)\Rightarrow P(k+1)\) 恆成立

反設有 \(n\) 使 \(P(n)\) 不成立,令 \(S=\{n\in\mathbb Z^+:P(n)\text{ 不成立}\}\ne\varnothing\)

由 Well-Ordering,\(S\) 有最小元素 \(m\)

\(P(1)\) 成立 → \(m\ne1\) → \(m-1\ge1\),且 \(m-1\notin S\)(\(m\) 最小) → \(P(m-1)\) 成立

由歸納步驟 \(P(m-1)\Rightarrow P(m)\) → \(P(m)\) 成立,與 \(m\in S\) 矛盾

故 \(S=\varnothing\)

得證

215%

Let \(X=\{x_1,x_2,\dots,x_m\}\) and \(Y=\{y_1,y_2,\dots,y_n\}\) with \(|X|=m\) and \(|Y|=n\).

(a) [3%] How many functions \(f:X\to Y\) satisfy \(f(x_1)=f(x_m)=y_n\)?

(b) [3%] Let \(m\le n\). How many functions \(f:X\to Y\) are one-to-one?

(c) [3%] Let \(m=n\). How many bijective functions \(f:X\to Y\) satisfy \(f(x_1)\ne y_1\)?

(d) [3%] How many relations are there from \(X\) to \(Y\)?

(e) [3%] How many relations \(R\) from \(X\) to \(Y\) satisfy \(x_1Ry_1\) and \(x_2Ry_2\)?

(a) \(x_1,x_m\)(\(m\ge2\))的像固定為 \(y_n\),其餘 \(m-2\) 個各有 \(n\) 種

\(n^{m-2}\)

(b) \(x_1\) 有 \(n\) 種,\(x_2\) 有 \(n-1\) 種,…,\(x_m\) 有 \(n-m+1\) 種

\(P(n,m)=\dfrac{n!}{(n-m)!}\)

(c) 全部 \(n!\),扣掉 \(f(x_1)=y_1\) 的(其餘 \(n-1\) 個做 bijection)\((n-1)!\)

\(n!-(n-1)!=(n-1)\cdot(n-1)!\)

(d) relation 就是 \(X\times Y\) 的子集,\(|X\times Y|=mn\)

\(2^{mn}\)

(e) \((x_1,y_1)\)、\((x_2,y_2)\) 兩個序對必在 \(R\) 內(\(m,n\ge2\) 時兩者相異),其餘 \(mn-2\) 個序對各可放可不放

\(2^{mn-2}\)

315%

Solve the following recurrence relations:

(a) [5%] \(a_n+3a_{n-1}+2a_{n-2}=0\), \(n\ge2\), \(a_0=1\), \(a_1=4\)

(b) [5%] \(a_n-10a_{n-1}+25a_{n-2}=0\), \(n\ge2\), \(a_0=1\), \(a_1=0\)

(c) [5%] \(3a_n+5a_{n-1}+2a_{n-2}=10n+11\), \(n\ge2\), \(a_0=10\), \(a_1=-10/3\)

(a) \(r^2+3r+2=0\),\(r=-1,-2\) → \(a_n=A(-1)^n+B(-2)^n\)

\(A+B=1\),\(-A-2B=4\) → \(B=-5\),\(A=6\)

\(a_n=6(-1)^n-5(-2)^n\)

\(a_2=-3\cdot4-2\cdot1=-14=6-20\)

(b) \(r^2-10r+25=(r-5)^2\),重根 5 → \(a_n=(A+Bn)5^n\)

\(A=1\);\(a_1=5(1+B)=0\) → \(B=-1\)

\(a_n=(1-n)\,5^n\)

(c) 齊次:\(3r^2+5r+2=0\),\(r=-1,\ -\tfrac23\)

特解設 \(a_n^{(p)}=cn+d\) 代入:\(3(cn+d)+5(c(n-1)+d)+2(c(n-2)+d)=10cn+10d-9c=10n+11\)

\(c=1\),\(10d-9=11\) → \(d=2\)

\(a_n=A(-1)^n+B(-\tfrac23)^n+n+2\)

\(a_0\):\(A+B+2=10\) → \(A+B=8\)

\(a_1\):\(-A-\tfrac23B+3=-\tfrac{10}3\) → \(A+\tfrac23B=\tfrac{19}3\)

相減:\(\tfrac13B=\tfrac53\) → \(B=5\),\(A=3\)

\(a_n=3(-1)^n+5\left(-\dfrac23\right)^n+n+2\)

\(a_2\):原式得 \(3a_2=31+\tfrac{50}{3}-20\),\(a_2=\tfrac{83}{9}\);公式 \(3+\tfrac{20}{9}+4=\tfrac{83}{9}\)。

410%

Let \(I=\{0,1\}\) be the input alphabet and \(O=\{0,1\}\) be the output alphabet of a finite state machine that recognizes all strings in the language \(\{0,1\}^*\{01\}\{0,1\}^+\). Please draw a state diagram for the finite state machine after minimization.

語言 \(=\) 字串中出現 01,且 01 之後至少還有 1 個字元;機器每讀一個符號,輸出 1 表示「目前讀入的字串屬於語言」

需要記的狀態:

A:尚未出現 01,且最後不是 0(或還沒讀) B:尚未出現 01,最後是 0 C:已出現 01

A:0 → B,1 → A,輸出 0  B:0 → B(輸出 0),1 → C(輸出 0,剛湊出 01,後面還沒有字元)

C:讀任何符號都留在 C,輸出 1

ABC0 / 01 / 01 / 00 / 00 / 1 ,1 / 1

邊上標示「輸入 / 輸出」,起始狀態 A

最小性:A、B 不等價,輸入 10 時 A 輸出 00、B 輸出 01;C 讀一個符號就輸出 1,與 A、B 都不同

若用輸出附在狀態上(Moore/DFA),剛湊出 01 與其後再讀字元要分成兩個狀態,共 4 個。

512%

Find the coefficient of \(x^n\) in each of the following formulas:

(a) [2%] \((2+3x)^{1000}\) (b) [4%] \((x^7+x^8+x^9+\cdots)^9\) (c) [6%] \(\dfrac{4}{x^2-8x+15}\).

(a) 二項式定理

\(\dbinom{1000}{n}\,3^n\,2^{1000-n}\) (\(0\le n\le1000\),其餘為 0)

(b) \((x^7+x^8+\cdots)^9=\left(\dfrac{x^7}{1-x}\right)^9=x^{63}(1-x)^{-9}\)

\(x^n\) 的係數 \(=\) \((1-x)^{-9}\) 中 \(x^{n-63}\) 的係數 \(=\dbinom{n-63+8}{8}\)

\(\dbinom{n-55}{8}\) (\(n\ge63\),其餘為 0)

(c) \(x^2-8x+15=(x-3)(x-5)\)

\(\dfrac{4}{(x-3)(x-5)}=\dfrac{2}{x-5}-\dfrac{2}{x-3}=\dfrac{2}{3-x}-\dfrac{2}{5-x}\)

\(\dfrac{2}{3-x}=\dfrac23\cdot\dfrac{1}{1-x/3}=\sum\dfrac{2}{3^{n+1}}x^n\),\(\dfrac{2}{5-x}=\sum\dfrac{2}{5^{n+1}}x^n\)

\(\dfrac{2}{3^{n+1}}-\dfrac{2}{5^{n+1}}\)

\(n=0\):\(\tfrac23-\tfrac25=\tfrac4{15}\),與 \(x=0\) 代入 \(\tfrac4{15}\) 相符。

68%

Consider the number of the partitions of a positive integer into positive summands without regard to order. For example, 4 = 1+1+1+1 = 1+1+2 = 2+2 = 1+3, so the integer 4 has five partitions. Find the generating function for the number of the partitions of a positive integer n into positive summands where each summand appears at most twice in each of the partitions. Please express your generating function in a closed form and indicate how to find the number of the partitions of n from your generating function.

summand \(k\) 只能用 0、1、2 次,貢獻因式 \(1+x^k+x^{2k}\)

\(f(x)=\prod_{k=1}^{\infty}(1+x^k+x^{2k})=\prod_{k=1}^{\infty}\dfrac{1-x^{3k}}{1-x^k}\)

\(1+x^k+x^{2k}=\dfrac{1-x^{3k}}{1-x^k}\)

\(n\) 的 partition 個數 \(=f(x)\) 展開後 \(x^n\) 的係數

\(n=4\):4、1+3、2+2、1+1+2 共 4 個(1+1+1+1 用了 4 次 1,不算),\(f(x)\) 的 \(x^4\) 係數為 4。

710%

Please compute \(w=(995^{1010}\bmod 97)\), \(x=(3866^{2402}\bmod 385)\), and \(y=((w-x)\bmod17)\), and then output \((w,x,y)\).

\(w\):\(995=97\cdot10+25\),\(995\equiv25=5^2\pmod{97}\),\(w\equiv5^{2020}\)

97 是質數,\(5^{96}\equiv1\);\(2020=96\cdot21+4\)

\(w\equiv5^4=625=97\cdot6+43\)

\(w=43\)

\(x\):\(385=5\cdot7\cdot11\);\(3866=385\cdot10+16\),\(x\equiv16^{2402}\pmod{385}\)

\(\gcd(16,385)=1\),\(16^{60}\equiv1\)(\(\operatorname{lcm}(4,6,10)=60\));\(2402=60\cdot40+2\)

\(x\equiv16^2=256\)

\(x=256\)

逐質因數:mod 5 為 \(1^{2402}=1\)、mod 7 為 \(2^{2402}=2^{2402\bmod3}=2^2=4\)、mod 11 為 \(5^{2402}=5^{2}=25\equiv3\);\(256\bmod5,7,11=1,4,3\) 相符。

\(y\):\(w-x=43-256=-213\),\(17\cdot13=221\);\(-213+221=8\)

\(y=8\)

\((w,x,y)=(43,\ 256,\ 8)\)

820%

Let \(p\) and \(q\) be two distinct prime numbers and \(n=p*q\) be the product of \(p\) and \(q\). For any \(u_1,u_2\) in \(\mathbb Z_p^*\) and any \(v_1,v_2\) in \(\mathbb Z_q^*\), define \((u_1,v_1)*(u_2,v_2)=(u_1*u_2\bmod p,\ v_1*v_2\bmod q)\). (a) [5%] Please show that \((\mathbb Z_p^*\times\mathbb Z_q^*,*)\) is a commutative group. (b) [15%] Prove that \((\mathbb Z_p^*\times\mathbb Z_q^*,*)\) is isomorphic to \((\mathbb Z_n^*,*)\).

(a) 運算逐分量進行,\(\mathbb Z_p^*=\{1,\dots,p-1\}\) 對 mod \(p\) 乘法為群(\(p\) 是質數),\(\mathbb Z_q^*\) 同理

closure:\(u_1,u_2\) 與 \(p\) 互質 → \(u_1u_2\bmod p\) 與 \(p\) 互質,仍在 \(\mathbb Z_p^*\);第二分量同理

associativity:兩個分量的模乘法各自 associative

identity:\((1,1)\)

inverse:\(\gcd(u,p)=1\) → \(u^{-1}\bmod p\) 存在;\(v^{-1}\bmod q\) 存在;\((u,v)^{-1}=(u^{-1},v^{-1})\)

commutativity:模乘法可交換,逐分量也可交換

得證

(b) 定義 \(\varphi:\mathbb Z_n^*\to\mathbb Z_p^*\times\mathbb Z_q^*\),\(\varphi(a)=(a\bmod p,\ a\bmod q)\)

well-defined:\(\gcd(a,n)=1\iff\gcd(a,p)=\gcd(a,q)=1\),兩個分量都不為 0

homomorphism:\(p\mid n\),所以 \((ab\bmod n)\bmod p=ab\bmod p\),\(q\) 同理 → \(\varphi(ab)=\varphi(a)*\varphi(b)\)

injective:\(\varphi(a)=\varphi(a')\) → \(p\mid a-a'\) 且 \(q\mid a-a'\);\(p\ne q\) 皆為質數 → \(pq=n\mid a-a'\) → \(a=a'\)

surjective:\(|\mathbb Z_n^*|=\varphi(n)=(p-1)(q-1)=|\mathbb Z_p^*|\cdot|\mathbb Z_q^*|\),兩邊元素一樣多,injective 即 surjective

也可用 Chinese Remainder Theorem:任給 \((u,v)\),\(a\equiv u\ (p)\)、\(a\equiv v\ (q)\) 在 mod \(n\) 有唯一解。

\(\varphi\) 是 isomorphism

得證

109–115 的詳解也是這樣寫的。

國立中山大學 109–115 的詳解收錄在付費版;106–115 全年度完整詳解共 236 頁,逐題推導。

購買 · NT$ 850 看中山其他免費詳解

其他年度與考科

同一年的其他科

同一科的其他年度

聯絡我們

題目有錯、詳解看不懂,都歡迎來信

想許願補哪一份、對購買有疑問也可以,收到後會盡快回覆。

william.chou.123123@gmail.com