Whenever a recurrence unrolls into "add one more term each step," the closed form is almost always an arithmetic (or similar) series — recognize the pattern early instead of expanding all the way by hand.
(b) Solve an=3an−1+2,a0=1
Step 1: Homogeneous Solution
The homogeneous part an=3an−1 gives an(h)=C⋅3n.
Step 2: Particular Solution
Try a constant an(p)=A: A=3A+2⇒−2A=2⇒A=−1.
Step 3: General Solution and Initial Condition
an=C⋅3n−1
Using a0=1: C⋅1−1=1⇒C=2.
Final Answer
an=2⋅3n−1
Common Mistake
Forgetting to apply the initial condition to the combined homogeneous + particular solution, not to the homogeneous part alone.
(c) Prove (kn+1)=(k−1n)+(kn)
Combinatorial proof.(kn+1) counts the number of k-element subsets of a set of n+1 elements, say {1,2,…,n,n+1}. Split these subsets by whether they contain the element n+1:
Subsets containingn+1: choose the remaining k−1 elements from the other n elements ⇒(k−1n) ways.
Subsets not containingn+1: choose all k elements from the other n elements ⇒(kn) ways.
Every k-subset falls into exactly one of these two disjoint cases, so
(kn+1)=(k−1n)+(kn)■
Quick Revision Point
This is Pascal's identity — the recurrence that builds Pascal's triangle row by row.
(d) Eulerian Triangle up to Row n=4
Eulerian number recurrence
A(n,k)=(n−k)A(n−1,k−1)+(k+1)A(n−1,k),A(1,0)=1,A(n,k)=0 for k<0 or k≥n
Step 1: Row n=2
A(2,0)=(2)A(1,−1)+(1)A(1,0)=0+1=1
A(2,1)=(1)A(1,0)+(2)A(1,1)=1+0=1
Step 2: Row n=3
A(3,0)=3A(2,−1)+1⋅A(2,0)=0+1=1
A(3,1)=2A(2,0)+2A(2,1)=2(1)+2(1)=4
A(3,2)=1⋅A(2,1)+3A(2,2)=1+0=1
Step 3: Row n=4
A(4,0)=4A(3,−1)+1⋅A(3,0)=0+1=1
A(4,1)=3A(3,0)+2A(3,1)=3(1)+2(4)=11
A(4,2)=2A(3,1)+3A(3,2)=2(4)+3(1)=11
A(4,3)=1⋅A(3,2)+4A(3,3)=1+0=1
Eulerian triangle up to row n = 4
n
Row of A(n,k)
1
1
2
1, 1
3
1, 4, 1
4
1, 11, 11, 1
Exam Tip
Each row is symmetric (A(n,k)=A(n,n−1−k)) — use that to check your arithmetic as you build each row.
Question 2 — Summation Techniques
(a) Evaluate k=1∑n(−1)k4k2−1k
Step 1: Partial Fractions
Since 4k2−1=(2k−1)(2k+1), write (2k−1)(2k+1)k=41(2k−11+2k+11).
Let bk=2k−11, so bk+1=2k+11. The sum becomes
∑k=1n(−1)k⋅41(bk+bk+1)
Step 2: Telescope
Each term contributes (−1)kbk+1, which is exactly canceled by the next term's (−1)k+1bk+1 contribution. Only the very first and very last pieces survive:
Definition. The perturbation method finds a closed form for a sum Sn=∑k=0nak by writing Sn+1 two different ways — once by adding the last term to Sn, and once by pulling the first term out of Sn+1 — then equating and solving for Sn.
Example. For Sn=∑k=0nxk:
Sn+1=Sn+xn+1(add last term)
Sn+1=x0+∑k=1n+1xk=1+x∑k=0nxk=1+xSn(pull out first term)
Equating: Sn+xn+1=1+xSn⇒Sn(1−x)=1−xn+1⇒Sn=1−x1−xn+1, the familiar geometric series formula.
Question 3 — Number Theory
(a) Coprime Integers and Relatively Prime Numbers
Coprime integers (equivalently, relatively prime numbers): two integers a,b with gcd(a,b)=1 — they share no common factor other than 1.
Two Key Properties
Bézout's identity: if gcd(a,b)=1, there exist integers s,t with as+bt=1.
If gcd(a,b)=1, then a is invertible modulo b (and vice versa) — coprimality is exactly the condition for modular inverses to exist.
(b) gcd(401,700) via Extended Euclidean Algorithm
Step 1: Euclidean Algorithm (Forward Pass)
Euclidean algorithm reaches remainder 0 at gcd = 1
Step
Equation
1
700=1⋅401+299
2
401=1⋅299+102
3
299=2⋅102+95
4
102=1⋅95+7
5
95=13⋅7+4
6
7=1⋅4+3
7
4=1⋅3+1
8
3=3⋅1+0
So gcd(401,700)=1.
Step 2: Back-Substitution
Working back up from 1=4−1⋅3, repeatedly substituting each remainder:
From the first equation: 0.15q1=0.40q2⇒q1=38q2. Substituting into q1+q2=1:
38q2+q2=1⇒311q2=1⇒q2=113,q1=118
Final Answer
q=[118,113]≈[0.7273,0.2727]
(iii) Interpretation
Regardless of the starting state, in the long run the chain spends about 72.7% of its time in S1 and 27.3% in S2 — the process converges to this fixed distribution.
(d) Home/Office Markov Chain
Home→Office probability =0.7⇒ Home→Home =0.3. Office→Home probability =0.8⇒ Office→Office =0.2.
P(home after 2 days)=0.65,P(office after 3 days)=0.40
Exam Tip
Multiply the row state vector by P on the right each step (x(k+1)=x(k)P) — mixing up the multiplication order is the single most common Markov chain mistake.
Question 5 — Binomial Theorem and Combinatorics
(a) Vandermonde's Identity
Claim:(rm+n)=k=0∑r(r−km)(kn).
Combinatorial proof.(rm+n) counts the ways to choose an r-element subset from a combined pool of m+n objects, split into a group of m "type-M" objects and n "type-N" objects. Any such subset contains some number k of type-N objects (0≤k≤r) and the remaining r−k from type-M. For each fixed k, the number of ways is (r−km)(kn). Summing over all possible k (a partition of the count by the disjoint cases k=0,1,…,r) gives every r-subset exactly once:
(rm+n)=∑k=0r(r−km)(kn)■
(b) Coefficient of x4 in (4−x2)6(3x2−21)
Step 1: General Term of (4−x2)6
(4−x2)6=∑j=06(j6)46−j(−1)jx2j
Step 2: Find Which j Contribute to x4
Multiplying by 3x2: need 2j+2=4⇒j=1. Multiplying by −21: need 2j=4⇒j=2.
Step 3: Compute Each Contribution
j=1 term: (16)45(−1)1=6(1024)(−1)=−6144; times 3 gives −18432.
j=2 term: (26)44(−1)2=15(256)(1)=3840; times −21 gives −1920.
Since n came out non-integer, this expansion only makes sense as the generalized binomial theorem (infinite series), not the finite binomial expansion — a common twist in this style of question.
(d) Coefficient of x−2 in 6x4(3x−x2q)6
Step 1: General Term
(j6)(3x)6−j(−x2q)j=(j6)36−j(−q)jx6−3j
Multiplying by the outer 6x4, the exponent of x becomes 10−3j.
Step 2: Match the Target Exponent
10−3j=−2⇒j=4
Step 3: Coefficient in Terms of q
6(46)32(−q)4=6(15)(9)q4=810q4
Setting this equal to the given value (−540)2=291600:
810q4=291600⇒q4=360⇒q=±4360≈±4.357
Final Answer
q=±4360
Common Mistake
Because j=4 is even, (−q)4=q4≥0 for real q — so the target value must be read as a positive quantity (here (−540)2), not a negative one, for a real solution to exist.
Question 6 — Calculus, Gradient Descent, and Lagrange Multipliers
(a) Derivative from First Principles
Start from the average rate of change of f over [x,x+h]:
Average rate of change=hf(x+h)−f(x)
The instantaneous rate of change — the derivative — is what this average approaches as the interval shrinks to a point, i.e. as h→0:
(c) Constrained Minimization with Lagrange Multipliers
Minimize f(x,y)=x2+4y2 subject to g(x,y)=x+y−1=0.
(i) Lagrangian
L(x,y,λ)=x2+4y2−λ(x+y−1)
(ii) System of Equations
∂x∂L=2x−λ=0,∂y∂L=8y−λ=0,∂λ∂L=−(x+y−1)=0
(iii) Solve for the Critical Point
From the first two equations: λ=2x=8y⇒x=4y. Substituting into x+y=1: 4y+y=1⇒y=51,x=54.
Final Answer
(x∗,y∗)=(54,51)
Exam Tip
The Lagrange condition ∇f=λ∇g literally says "the objective's gradient and the constraint's gradient point in the same direction" at the optimum — that's why you set the partials proportional rather than solving ∇f=0 directly.
Question 7 — Markov Chain Theory and Application
(a) Definition and Types of States
A Markov chain is a stochastic process {Xn} over a discrete state space where the future state depends only on the present state, not on the full history — the Markov property:
P(Xn+1=j∣Xn=i,Xn−1,…,X0)=P(Xn+1=j∣Xn=i)
Types of States
Recurrent: starting from this state, the chain returns to it with probability 1.
Transient: there is a positive probability the chain never returns to this state.
Absorbing: once entered, the chain never leaves (Pii=1).
Periodic: returns to the state only at multiples of some period d>1; aperiodic if d=1.
(b) Transition Probability and Transition Probability Matrix
The transition probabilitypij=P(Xn+1=j∣Xn=i) is the chance of moving from state i to state j in one step. Collecting all pij into a matrix P=[pij] (rows summing to 1) gives the transition probability matrix.
Example: for the home/office chain in part (c), P=(0.30.80.70.2) — row H says "30% stay home, 70% go to office tomorrow."
(c) Home/Office Chain (same setup as Question 4(d))
P(home after 2 days∣home today)=0.65,P(office after 3 days∣office today)=0.40
Question 8 — Sampling, Confidence Intervals, and Hypothesis Testing
(a) Sampling Methods (selecting 100 of 1000 students)
Selecting 100 of 1000 students under three sampling schemes
Method
How the 100 students are chosen
Simple Random Sampling
Assign each of the 1000 students a number and draw 100 numbers using a random-number generator — every student has equal selection probability.
Systematic Sampling
Compute k=1000/100=10, pick a random start between 1 and 10, then take every 10th student on the roll.
Cluster Sampling
Split the 1000 into natural clusters (e.g. 20 classes of 50), randomly select whole clusters (e.g. 2 classes) until about 100 students are covered — every student in a chosen cluster is included.
(b) 95% Confidence Interval for the Mean
Given:n=36,xˉ=70,σ=12.
Step 1: Standard Error
SE=nσ=3612=612=2
Step 2: Critical z-value
From the table, 95%⇒zc=1.96.
Step 3: Confidence Interval
Confidence interval for the mean (known σ)
xˉ±zc⋅SE
70±1.96(2)=70±3.92
Final Answer
95%CI=(66.08,73.92)
(c) Hypothesis Test for μ=75
(i) Hypotheses
H0:μ=75H1:μ=75(two-tailed)
(ii) Test Statistic
z=SExˉ−μ0=270−75=−2.5
(iii) p-value Decision
From the z-table, Φ(2.5)=0.9938, so
p=2(1−Φ(2.5))=2(1−0.9938)=2(0.0062)=0.0124
Since p=0.0124<α=0.05, reject H0.
Final Answer
z=−2.5,p≈0.0124<0.05⇒Reject H0 — the mean is significantly different from 75.
Common Mistake
Forgetting to double the one-tailed area for a two-tailed test — using p=0.0062 instead of p=0.0124 would still reject H0 here, but the halved p-value is the wrong number to report.