← Back to course

Math — Mechina

Sequences and induction

Summary

Arithmetic sequence: each term exceeds the previous by a constant difference dd. Geometric sequence: each term is the previous one times a constant ratio qq.

  • Arithmetic: an=a1+(n−1)da_n=a_1+(n-1)d, Sn=n(a1+an)2S_n=\frac{n(a_1+a_n)}{2}.
  • Geometric: an=a1qn−1a_n=a_1q^{n-1}, Sn=a1(qn−1)q−1S_n=\frac{a_1(q^n-1)}{q-1} (for q≠1q\neq1).
  • Infinite geometric series with ∣q∣<1|q|<1: S=a11−qS=\frac{a_1}{1-q}.
  • Induction: check for n=1n=1, assume for n=kn=k, and prove for n=k+1n=k+1.
12345675101520253035nya_nb_n(1, 3)(2, 7)(3, 11)(4, 15)(1, 1)(2, 2)(3, 4)(4, 8)(5, 16)(6, 32)
Arithmetic (d=4d=4) grows in a straight line; geometric (q=2q=2) grows faster and faster and overtakes it.

How to tell which sequence it is

Check three consecutive terms. If the difference an+1−ana_{n+1}-a_n is constant — arithmetic. If the ratio an+1an\frac{a_{n+1}}{a_n} is constant — geometric. Examples: 5, 8, 11, 145,\,8,\,11,\,14 — arithmetic with d=3d=3; 3, 6, 12, 243,\,6,\,12,\,24 — geometric with q=2q=2; 1, 4, 9, 161,\,4,\,9,\,16 — neither (squares). A handy test for three terms a, b, ca,\,b,\,c: arithmetic if 2b=a+c2b=a+c, geometric if b2=acb^2=ac.

Where the sum formula comes from

The well-known story about Gauss: write 1+2+…+1001+2+\ldots+100 twice, once forwards and once backwards. Each pair of numbers one above the other gives 101101, and there are 100100 pairs — so 2S=100⋅1012S=100\cdot101 and S=5050S=5050. That is exactly how Sn=n(a1+an)2S_n=\frac{n(a_1+a_n)}2 arises: the number of terms times the average of the first and last.

For a geometric sequence, multiply the sum by qq and subtract: qSn−Sn=a1qn−a1qS_n-S_n=a_1q^n-a_1, because all the middle terms cancel. Hence Sn=a1(qn−1)q−1S_n=\frac{a_1(q^n-1)}{q-1}. When ∣q∣<1|q|<1 the power qnq^n tends to zero, so the infinite sum is finite: S=a11−qS=\frac{a_1}{1-q}. Example: 1+12+14+…=11−12=21+\frac12+\frac14+\ldots=\frac1{1-\frac12}=2.

Problems with two unknowns

Almost every question ends in two equations in a1a_1 and dd (or a1a_1 and qq). Example: in an arithmetic sequence a3=7a_3=7 and a8=22a_8=22. Between these terms there are 55 differences, so 5d=155d=15, d=3d=3, and from a3=a1+2da_3=a_1+2d we get a1=1a_1=1. In a geometric sequence divide one equation by the other: if a2=6a_2=6 and a5=48a_5=48, then q3=8q^3=8, q=2q=2, a1=3a_1=3.

Induction — why it works

Induction is like a row of dominoes: if the first falls and every falling domino knocks over the next, they all fall. In the base step show the statement holds for n=1n=1. In the inductive step assume it holds for n=kn=k (that is the assumption, not what you prove) and use the assumption to show it holds for n=k+1n=k+1. The common mistake: not using the assumption at all, or proving only examples.

How to approach a problem

  1. Identify the type of sequence (constant difference or constant ratio).
  2. Write each given fact as an equation in a1a_1 and dd or qq.
  3. Solve: for arithmetic subtract the equations, for geometric divide them.
  4. Find what is asked: a term, a sum, or the number of terms nn.
  5. Check by writing out the first few terms.

Common mistakes

  • The number of terms from ama_m to ana_n inclusive is n−m+1n-m+1, not n−mn-m.
  • Writing qnq^n instead of qn−1q^{n-1} in an=a1qn−1a_n=a_1q^{n-1}.
  • Using the infinite sum when ∣q∣≥1|q|\geq1 — then the sum is not finite.
  • Dividing by q−1q-1 when q=1q=1: then all terms are equal and Sn=na1S_n=na_1.
  • Forgetting the possibility of a negative qq when a geometric problem gives q2q^2.

Question types

1

Arithmetic sequence

A constant difference between consecutive terms.

Worked example

In an arithmetic sequence a5=17a_5=17 and a9=33a_9=33. Find dd and a1a_1.

Solution

IdeaBetween a5a_5 and a9a_9 there are 44 differences.
  1. 4d=164d=16, d=4d=4.
  2. a1=17−4⋅4=1a_1=17-4\cdot4=1.
Checka9=1+8⋅4=33a_9=1+8\cdot4=33 ✓.
Common mistaked=169−1d=\frac{16}{9-1} or dividing by 55.

Variants of this type · 1

1.1Which term equals a given number

Worked example

In the sequence 2,5,8,…2,5,8,\dots — which term equals 5050?

Solution

Idea2+3(n−1)=502+3(n-1)=50.
  1. n−1=16n-1=16, n=17n=17.
Check2+48=502+48=50 ✓.
Common mistaken=16n=16.
2

Geometric sequence

A constant ratio between consecutive terms.

Worked example

In a geometric sequence a2=6a_2=6 and a5=48a_5=48. Find qq and a1a_1.

Solution

Ideaa5a2=q3\frac{a_5}{a_2}=q^3.
  1. q3=8q^3=8, q=2q=2.
  2. a1=62=3a_1=\frac62=3.
Check3⋅24=483\cdot2^4=48 ✓.
Common mistakeq=486=8q=\frac{48}{6}=8.

Variants of this type · 1

2.1Fractional ratio

Worked example

a1=81a_1=81, q=13q=\frac13. What is a5a_5?

Solution

Idea81⋅(13)481\cdot\left(\frac13\right)^4.
  1. 8181=1\frac{81}{81}=1.
Check81,27,9,3,181,27,9,3,1 ✓.
Common mistakePower 55 instead of 44.
3

Sum of a sequence

Adding the first nn terms, or an infinite geometric series.

Worked example

Compute 1+2+3+⋯+1001+2+3+\dots+100.

Solution

IdeaArithmetic sequence: n=100n=100, a1=1a_1=1, an=100a_n=100.
  1. S=100⋅1012=5050S=\frac{100\cdot101}{2}=5050.
Check5050 pairs each summing to 101101 ✓.
Common mistake100⋅1002\frac{100\cdot100}{2}.

Variants of this type · 2

3.1Geometric sum

Worked example

1+2+4+⋯+321+2+4+\dots+32.

Solution

Idea66 terms, q=2q=2.
  1. S=26−12−1=63S=\frac{2^6-1}{2-1}=63.
CheckThe next term minus 11 ✓.
Common mistake25−12^5-1.
3.2Infinite sum

Worked example

8+4+2+1+…8+4+2+1+\dots

Solution

Idea∣q∣=12<1|q|=\frac12<1.
  1. S=81−12=16S=\frac{8}{1-\frac12}=16.
CheckThe partial sums 8,12,14,15,…8,12,14,15,\dots approach 1616 ✓.
Common mistake"Infinity".
4

Recurrence and induction

A sequence defined through the previous term, or proving a formula for every natural nn.

Worked example

Prove by induction: 1+3+5+⋯+(2n−1)=n21+3+5+\dots+(2n-1)=n^2.

Solution

IdeaBase, hypothesis, step.
  1. n=1n=1: 1=121=1^2 ✓.
  2. Hypothesis: 1+3+⋯+(2k−1)=k21+3+\dots+(2k-1)=k^2.
  3. Step: add the next term 2k+12k+1: k2+2k+1=(k+1)2k^2+2k+1=(k+1)^2.

    Why: This is exactly the claim for n=k+1n=k+1.

Check1+3+5+7=16=421+3+5+7=16=4^2 ✓.
Common mistakeChecking a few values of nn and calling it a proof.

Variants of this type · 1

4.1Recurrence formula

Worked example

a1=2a_1=2, an+1=2an+1a_{n+1}=2a_n+1. What is a4a_4?

Solution

IdeaCompute step by step.
  1. a2=5a_2=5, a3=11a_3=11, a4=23a_4=23.
Check✓.
Common mistakea4=2⋅4+1a_4=2\cdot4+1.

Exam-style problems

One problem with several parts on the same data, as on the exam. Each part adds something to the drawing.

Practice · 20

Test yourself with problems and full solutions.

Go to practice