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

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

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

逐題詳解

19%

Ben works as a computer operator at National Sun Yat-sen University. One evening he finds that fifteen computer programs have been submitted earlier that day for batch processing. In how many ways can Ben order the processing of these programs if

(a) [3%] there are no restrictions?

(b) [3%] he considers five of the programs higher in priority than the others and wants to process those five first?

(c) [3%] he first separates the programs into four of top priority, eight of lesser priority, and three of least priority, and he wishes to process the fifteen programs in such a way that the top-priority programs are processed first and the three programs of least priority are processed last?

(a) 15 個相異程式排順序

\(15!=1{,}307{,}674{,}368{,}000\)

(b) 前 5 個位置排高優先的 5 個:\(5!\);後 10 個位置排其餘:\(10!\)

\(5!\cdot10!=120\cdot3{,}628{,}800=435{,}456{,}000\)

(c) 前 4 個位置 \(4!\),中間 8 個 \(8!\),最後 3 個 \(3!\)

\(4!\cdot8!\cdot3!=24\cdot40320\cdot6=5{,}806{,}080\)

212%

A computer science professor has thirteen different programming books on a bookshelf. Six of the books deal with C++, the others with Java. In how many ways can the professor arrange these books on the shelf

(a) [3%] if there are no restrictions?

(b) [3%] if the languages should alternate?

(c) [3%] if all the Java books must be next to each other?

(d) [3%] if all the C++ books must be next to each other and all the Java books must be next to each other?

Java 有 \(13-6=7\) 本

(a) \(13!=6{,}227{,}020{,}800\)

(b) 7 本 Java 比 6 本 C++ 多 1 本,只能 J C J C … J:Java 排 7 個奇數位 \(7!\),C++ 排 6 個偶數位 \(6!\)

\(7!\cdot6!=5040\cdot720=3{,}628{,}800\)

(c) 7 本 Java 綁成一塊,與 6 本 C++ 共 7 個物件排列 \(7!\),塊內 \(7!\)

\(7!\cdot7!=25{,}401{,}600\)

(d) 兩塊的左右順序 \(2!\),C++ 塊內 \(6!\),Java 塊內 \(7!\)

\(2\cdot6!\cdot7!=7{,}257{,}600\)

312%

Four hundred coins numbered 1 to 400 are put in a row across the top of a cafeteria table. Four hundred students are assigned numbers (from 1 to 400) and are asked to turn over certain coins. The student assigned number 1 is supposed to turn over all the coins. The student assigned number 2 is supposed to turn over every other coin, starting with the second coin. In general, the student assigned the number n, for each 1 ≤ n ≤ 400, is supposed to turn over every nth coin, starting with the nth coin.

(a) [4%] How many times will the 400th coin be turned over?

(b) [4%] Which coin(s) will be turned over as many times as the 400th coin?

(c) [4%] Please show two coins that will be turned over more than 18 times?

第 \(k\) 枚被學生 \(n\) 翻,當且僅當 \(n\mid k\) → 翻面次數 \(=d(k)\)(正因數個數)

(a) \(400=2^4\cdot5^2\),\(d(400)=(4+1)(2+1)\)

15 次

(b) 要 \(d(k)=15\):\(15=15\) 或 \(5\times3\),型式為 \(p^{14}\) 或 \(p^4q^2\)

\(p^{14}\ge2^{14}\gt400\);\(p^4q^2\le400\):\(2^4\cdot3^2=144\)、\(2^4\cdot5^2=400\)、\(3^4\cdot2^2=324\)(\(2^4\cdot7^2=784\)、\(3^4\cdot5^2=2025\) 太大)

第 144、324 枚(與第 400 枚本身)

(c) \(240=2^4\cdot3\cdot5\):\(d=5\cdot2\cdot2=20\)

\(360=2^3\cdot3^2\cdot5\):\(d=4\cdot3\cdot2=24\)

第 240 枚(20 次)、第 360 枚(24 次)

1~400 中 \(d(k)\gt18\) 的只有 240、336、360。

415%

Consider parking motorcycles and compact cars in a row of spaces where each cycle requires one space and each compact needs two. Find and solve a recurrence relation for the number of ways to park motorcycles and compact cars in a row of n spaces

(a) [5%] if all cycles are identical in appearance, as are the cars, and we want to use up all the n spaces.

(b) [5%] if the motorcycles come in two distinct models and the compact cars come in three different colors, and we want to use up all the n spaces.

(c) [5%] if all cycles are identical in appearance and the compact cars come in three different colors, and empty spaces are allowed.

看最左邊的位置放什麼

(a) 放 motorcycle:剩 \(n-1\) 格;放 car:剩 \(n-2\) 格

\(a_n=a_{n-1}+a_{n-2}\),\(a_0=1\),\(a_1=1\)

\(r^2-r-1=0\),\(r=\dfrac{1\pm\sqrt5}{2}\)

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

即 Fibonacci:\(a_n=F_{n+1}\),\(1,1,2,3,5,8,\dots\)

(b) motorcycle 2 種、car 3 種

\(b_n=2b_{n-1}+3b_{n-2}\),\(b_0=1\),\(b_1=2\)

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

\(A+B=1\),\(3A-B=2\) → \(A=\tfrac34\),\(B=\tfrac14\)

\(b_n=\dfrac{3^{n+1}+(-1)^n}{4}\)

\(b_2=2\cdot2+3=7=\dfrac{27+1}{4}\)

(c) 最左格三種:放 motorcycle(\(n-1\) 格)、留空(\(n-1\) 格)、放 car(3 色,\(n-2\) 格)

\(c_n=2c_{n-1}+3c_{n-2}\),\(c_0=1\),\(c_1=2\)(空或 motorcycle)

與 (b) 同一遞迴式、同一初值

\(c_n=\dfrac{3^{n+1}+(-1)^n}{4}\)

512%

Consider the equation \(c_1+c_2+c_3+c_4=23\) where \(-3\le c_1\), \(-2\le c_2\), \(-2\le c_3\le0\), and \(2\le c_4\).

(a) [4%] Find the generating function for the number of integer solutions to the equation.

(b) [3%] The number of integer solutions to the above equation equals to the coefficient of \(x^n\) of the above generating function. What is \(n\)?

(c) [5%] Please find the coefficient of \(x^{100}\) in the above generating function.

(a) 各變數一個因式(指數就是該變數的值)

\(c_1:\ x^{-3}+x^{-2}+\cdots=\dfrac{x^{-3}}{1-x}\)  \(c_2:\ \dfrac{x^{-2}}{1-x}\)

\(c_3:\ x^{-2}+x^{-1}+1\)  \(c_4:\ x^2+x^3+\cdots=\dfrac{x^2}{1-x}\)

\(f(x)=\dfrac{x^{-3}}{1-x}\cdot\dfrac{x^{-2}}{1-x}\cdot(x^{-2}+x^{-1}+1)\cdot\dfrac{x^{2}}{1-x}=x^{-5}\,(1+x+x^2)\,(1-x)^{-3}\)

(b) 乘出的次方就是 \(c_1+c_2+c_3+c_4\)

\(n=23\)

(c) \([x^{100}]f(x)=[x^{105}]\,(1+x+x^2)(1-x)^{-3}\)

\((1-x)^{-3}=\sum_k\binom{k+2}{2}x^k\),取 \(k=105,104,103\)

\(\binom{107}{2}+\binom{106}{2}+\binom{105}{2}=5671+5565+5460\)

16696

若令 \(y_1=c_1+3,\ y_2=c_2+2,\ y_3=c_3+2,\ y_4=c_4-2\ge0\) 改用非負變數,生成函數是 \((1+x+x^2)(1-x)^{-3}\),解數對應 \(x^{28}\);本題照 \(c_i\) 原值寫,\(n=23\)。

69%

Determine the sequence generated by each of the following exponential generating functions. (a) [3%] \(f(x)=2e^{2x}\) (b) [3%] \(f(x)=5e^{3x}-3e^{2x}\) (c) [3%] \(f(x)=1/(1-x)-x^2\).

EGF:\(f(x)=\sum a_n\dfrac{x^n}{n!}\),\(e^{cx}=\sum c^n\dfrac{x^n}{n!}\)

(a) \(2e^{2x}=\sum 2\cdot2^n\dfrac{x^n}{n!}\)

\(a_n=2^{n+1}\) (2, 4, 8, 16, …)

(b) \(5e^{3x}-3e^{2x}=\sum(5\cdot3^n-3\cdot2^n)\dfrac{x^n}{n!}\)

\(a_n=5\cdot3^n-3\cdot2^n\) (2, 9, 33, 111, …)

(c) \(\dfrac{1}{1-x}=\sum x^n=\sum n!\,\dfrac{x^n}{n!}\);\(x^2=2!\cdot\dfrac{x^2}{2!}\) 只減掉 \(n=2\) 那項

\(a_n=n!\ (n\ne2)\),\(a_2=2!-2!=0\) (1, 1, 0, 6, 24, …)

710%

For \(n\ge1\), let \(X_n=\{1,2,3,\dots,n\}\). \(P(X_n)\) denotes the power set of \(X_n\).

(a) [8%] Let \(e_n\) be the number of edges in the Hasse diagram for the partial order \((P(X_n),\subseteq)\). Please find a recurrence relation for \(e_n\) and then solve the recurrence relation to get \(e_n\).

(b) [2%] Please find \(v_n\), the number of vertices of the diagram in (a).

(a) \(P(X_n)\) 分成「不含 \(n\)」與「含 \(n\)」兩半

不含 \(n\) 的子集之間:就是 \(P(X_{n-1})\) 的 Hasse diagram,\(e_{n-1}\) 條

含 \(n\) 的子集之間:\(A\subseteq B\iff A\cup\{n\}\subseteq B\cup\{n\}\),同構,\(e_{n-1}\) 條

兩半之間:每個 \(A\in P(X_{n-1})\) 連到 \(A\cup\{n\}\),\(2^{n-1}\) 條

\(e_n=2e_{n-1}+2^{n-1}\),\(e_1=1\)

兩邊除以 \(2^n\):\(\dfrac{e_n}{2^n}=\dfrac{e_{n-1}}{2^{n-1}}+\dfrac12\),\(\dfrac{e_1}{2}=\dfrac12\)

\(\dfrac{e_n}{2^n}=\dfrac n2\)

\(e_n=n\cdot2^{n-1}\)

\(e_2=2\cdot2+2=4\):\(\{1,2\}\) 向下連 \(\{1\},\{2\}\),兩者再連 \(\varnothing\),共 4 條。

(b) 頂點是 \(X_n\) 的所有子集

\(v_n=2^n\)

811%

(a) [4%] Find all generators of the cyclic group \((\mathbb Z_8,+)\).

(b) [4%] Find all generators of the cyclic group \((\mathbb Z_5-\{0\},*)\).

(c) [3%] If \(G\) is a cyclic group of order \(n\), how many distinct generators does it have?

(a) \(a\) 生成 \(\mathbb Z_n\) ⇔ \(\gcd(a,n)=1\);\(n=8\)

1, 3, 5, 7

(b) 群的階為 4

\(2:\ 2,4,3,1\) (order 4)  \(3:\ 3,4,2,1\) (order 4)

\(4^2=1\)(order 2)、\(1\)(order 1)

2, 3

(c) \(G=\langle g\rangle\),\(|g^k|=\dfrac{n}{\gcd(k,n)}\);generator ⇔ \(\gcd(k,n)=1\)

\(\varphi(n)\) 個

910%

Please find an encryption function \(E:\{1,2,3,\dots,26\}\to\mathbb Z\) such that \(E(m_1)+E(m_2)=E(m_1+m_2)\) for every \(m_1,m_2\) in \(\{1,2,3,\dots,26\}\) and please also find the decryption function corresponding to \(E\).

\(m\) 拆成 \(m\) 個 1 相加,反覆用加法性質:\(E(m)=m\,E(1)\)

令 \(k=E(1)\):\(E(m)=km\),確實滿足 \(km_1+km_2=k(m_1+m_2)\)

要能解密,\(E\) 必須一對一 → \(k\ne0\)

\(E(m)=km\)(\(k\) 為非零整數),\(D(c)=c/k\)

例:\(k=3\),\(E(m)=3m\),\(D(c)=c/3\),\(E(5)=15\)、\(D(15)=5\)。式中 \(m_1+m_2\) 以在 1~26 內的和為準。

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

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

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

其他年度與考科

同一年的其他科

同一科的其他年度

聯絡我們

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

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

william.chou.123123@gmail.com