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

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

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

逐題詳解

115%

Show that for any positive integer n, there exists a positive integer m such that n divides m (namely, m = kn for some integer k), and the decimal digits of m are only 0 and 1. For example, n = 7, m = 1001. In addition to show that this is true in general, use n = 7 and n = 12 to show how to find such m.

令 \(a_k=\underbrace{11\cdots1}_{k\text{ 個 }1}\),取 \(a_1,a_2,\dots,a_{n+1}\) 共 \(n+1\) 個數

除以 \(n\) 的餘數只有 \(0,1,\dots,n-1\) 共 \(n\) 種 → 鴿籠原理:有 \(i\lt j\) 使 \(a_i\equiv a_j\pmod n\)

\(a_j-a_i=\underbrace{11\cdots1}_{j-i}\underbrace{00\cdots0}_{i}\) 被 \(n\) 整除,且只含數字 0、1,取 \(m=a_j-a_i\) (若某個 \(a_k\equiv0\),直接取 \(m=a_k\))

得證

\(n=7\):\(a_k\bmod7\):\(a_1=1,\ a_2=11\to4,\ a_3=111\to6,\ a_4=1111\to5,\ a_5=11111\to2,\ a_6=111111\to0\)

\(m=111111=7\times15873\)

\(1001=7\times143\) 也可。\(a_7\equiv1\equiv a_1\),\(a_7-a_1=1111110=7\times158730\)。

\(n=12\):\(a_k\bmod12\):\(1,\ 11,\ 3,\ 7,\ 11,\dots\);\(a_2\equiv a_5\equiv11\)

\(a_5-a_2=11111-11=11100\)

\(m=11100=12\times925\)

215%

Let \(\mathbb N\) be the set of all positive integers, and \(S=\mathbb N\times\mathbb N\), (namely, \(S=\{(x,y)\mid x,y\in\mathbb N\}\)). Show that there is a bijection (one-one and onto) function \(f:S\to\mathbb N\), or show that no such function exists.

存在。令 \(f(x,y)=2^{x-1}(2y-1)\)

每個正整數可唯一寫成「2 的冪 \(\times\) 奇數」

one-to-one:\(2^{x_1-1}(2y_1-1)=2^{x_2-1}(2y_2-1)\),比較 2 的次方 → \(x_1=x_2\);消去後 \(y_1=y_2\)

onto:任取 \(n\in\mathbb N\),寫成 \(n=2^a\cdot b\)(\(b\) 奇數),取 \(x=a+1\)、\(y=(b+1)/2\),皆為正整數且 \(f(x,y)=n\)

得證

315%

Let \(m\gt1\) and \(n\gt1\) be two positive integers. Let \(r(m,n)\) denotes the maximum number of rectangles defined by \(m\) horizontal lines and \(n\) vertical lines in a plane. Derive a formula for \(r(m,n)\), and justify your answer. Note that rectangles may overlap. For example, let \(m=2\) and \(n=3\), \(r(2,3)=3\), not 2.

矩形由「上下兩條水平邊」與「左右兩條垂直邊」唯一決定

反過來,任選 2 條水平線、2 條垂直線,四條線必圍出一個矩形,不同選法圍出不同矩形(邊所在的線不同)

矩形與「2 條水平線+2 條垂直線」的選法一一對應

\(r(m,n)=\dbinom m2\dbinom n2=\dfrac{m(m-1)\,n(n-1)}{4}\)

\(m\) 條水平線兩兩相異、\(n\) 條垂直線兩兩相異時達到;有重合的線只會減少

\(r(2,3)=\binom22\binom32=3\),與題目的例子相符。

415%

A line segment in \(\mathbb R^2\) is a line joining 2 different points in \(\mathbb R^2\). Two lines intersect if they share a common point. Show that in any 6 line segments in \(\mathbb R^2\), either there are 3 line segments in which any pair of them intersect or there are 3 line segments in which no pair of them intersect.

6 條線段當成 6 個頂點;兩條線段相交 → 連紅邊,不相交 → 連藍邊(完全圖 \(K_6\) 的 2-著色)

要證:必有單色三角形(紅三角形 \(=\) 三條兩兩相交,藍三角形 \(=\) 三條兩兩不相交)

取任一頂點 \(v\),它有 5 條邊;鴿籠原理:至少 \(\lceil5/2\rceil=3\) 條同色,設 \(va,vb,vc\) 皆為紅

若 \(ab,bc,ca\) 中有紅邊(例 \(ab\)),則 \(v,a,b\) 是紅三角形

否則 \(ab,bc,ca\) 全藍,\(a,b,c\) 是藍三角形

(\(va,vb,vc\) 皆藍時同理,顏色對調)

兩種情形都有單色三角形

得證

510%

Let the sequence of numbers \(g_0,g_1,\dots,g_n,\dots\) be defined by \(g_0=0\), \(g_1=1\), and, for every \(n\gt1\), \(g_n=g_{n-1}+g_{n-2}\). Solve \(g_n\), in terms of \(n\), by the method of generating functions.

令 \(G(x)=\sum_{n\ge0}g_nx^n\);遞迴乘 \(x^n\) 對 \(n\ge2\) 相加:

\(G(x)-g_0-g_1x=x\,(G(x)-g_0)+x^2G(x)\)

\(G(x)-x=xG(x)+x^2G(x)\) → \(G(x)=\dfrac{x}{1-x-x^2}\)

\(1-x-x^2=(1-\alpha x)(1-\beta x)\),\(\alpha=\dfrac{1+\sqrt5}2\),\(\beta=\dfrac{1-\sqrt5}2\),\(\alpha-\beta=\sqrt5\)

部分分式:\(G(x)=\dfrac1{\sqrt5}\left(\dfrac1{1-\alpha x}-\dfrac1{1-\beta x}\right)=\dfrac1{\sqrt5}\sum_{n\ge0}(\alpha^n-\beta^n)x^n\)

\(g_n=\dfrac{1}{\sqrt5}\left[\left(\dfrac{1+\sqrt5}2\right)^n-\left(\dfrac{1-\sqrt5}2\right)^n\right]\)

\(g_2=(\alpha^2-\beta^2)/\sqrt5=\alpha+\beta=1\),與 \(g_2=g_1+g_0=1\) 相符。

615%

The girth of a graph \(G\) is the length of the shortest cycle in \(G\). Let \(G\) be a simple graph with \(\nu\) vertices, \(\epsilon\) edges, and girth \(g\). It is known that if \(G\) is planar, then \(\epsilon\le\dfrac{g}{g-2}(\nu-2)\). Let \(K_5\) be a complete graph with 5 vertices, and \(K_{3,3}\) be a complete bipartite graph with 3 vertices in each partition. Draw \(K_5\) and \(K_{3,3}\), and show that they are not planar.

ABCDE  u₁u₂u₃v₁v₂v₃

若 \(G\) 是 planar,則 \(\epsilon\le\dfrac g{g-2}(\nu-2)\);只要算出的 \(\nu,\epsilon,g\) 使不等式不成立,\(G\) 就不是 planar

\(K_5\):\(\nu=5\),\(\epsilon=\binom52=10\);任三點互相相鄰,有三角形,\(g=3\)

\(\dfrac{3}{3-2}(5-2)=9\lt10=\epsilon\) → 不等式不成立

\(K_5\) 不是 planar

\(K_{3,3}\):\(\nu=6\),\(\epsilon=3\cdot3=9\);二分圖沒有奇數長度的 cycle,最短 cycle 是 \(u_1v_1u_2v_2u_1\),\(g=4\)

\(\dfrac{4}{4-2}(6-2)=8\lt9=\epsilon\) → 不等式不成立

\(K_{3,3}\) 不是 planar

715%

Let \(L\) be the set of binary strings whose values are multiple of 7, (namely, \(L=\{0,111,1110,10101,\dots\}\)). Design a finite state machine \(M=(Q,\Sigma,\delta,q_0,F)\) to recognize the language \(L\). Although no formal proof is required, you should explain why your machine \(M\) accepts only strings in \(L\), and every binary string in \(L\) is accepted by \(M\).

二進位字串由左讀到右:已讀部分的值為 \(v\),再讀一個 bit \(b\) 後變成 \(2v+b\)

取餘數:\((2v+b)\bmod7\) 只與 \(v\bmod7\) 和 \(b\) 有關 → 狀態只需記「已讀部分的值 mod 7」

\(Q=\{q_0,\dots,q_6\}\)(\(q_i\):餘數 \(i\)),\(\Sigma=\{0,1\}\),\(F=\{q_0\}\),起始 \(q_0\)

\(\delta(q_i,b)=q_{(2i+b)\bmod7}\)

前導 0 允許(值不變);空字串值為 0,也停在 \(q_0\);若要排除空字串,另加一個非接受的起始狀態。

狀態讀 0讀 1
\(q_0\)\(q_0\)\(q_1\)
\(q_1\)\(q_2\)\(q_3\)
\(q_2\)\(q_4\)\(q_5\)
\(q_3\)\(q_6\)\(q_0\)
\(q_4\)\(q_1\)\(q_2\)
\(q_5\)\(q_3\)\(q_4\)
\(q_6\)\(q_5\)\(q_6\)

q0q1q2q3q4q5q601010101010101

不變量:讀完字串 \(w\) 後,\(M\) 停在 \(q_{\,\mathrm{value}(w)\bmod7}\)(對 \(w\) 的長度歸納:空字串值 0,停在 \(q_0\);讀進 \(b\) 依 \(\delta\) 得 \((2v+b)\bmod7\))

所以 \(M\) 接受 \(w\) ⇔ 停在 \(q_0\) ⇔ \(\mathrm{value}(w)\equiv0\pmod7\) ⇔ \(w\in L\):只接受 \(L\) 的字串,\(L\) 的每個字串都被接受

檢查:

0:\(q_0\xrightarrow{0}q_0\) 接受

111:\(q_0\xrightarrow{1}q_1\xrightarrow{1}q_3\xrightarrow{1}q_0\) 接受

1110:\(q_0\to q_1\to q_3\to q_0\xrightarrow{0}q_0\) 接受

10101:\(q_0\xrightarrow{1}q_1\xrightarrow{0}q_2\xrightarrow{1}q_5\xrightarrow{0}q_3\xrightarrow{1}q_0\) 接受

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

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

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

其他年度與考科

同一年的其他科

同一科的其他年度

聯絡我們

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

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

william.chou.123123@gmail.com