Emzini weCodeUmhlahlandlelaMathematics 10.6 · Sequences and Patterns NoticesAll books

Chapter 10/10.6Foundationabout 8 min

Special sequences

Try this first

Arrange dots in triangles: 1 dot, then rows of 1 and 2 (3 dots), then rows of 1, 2 and 3 (6 dots). How many dots are in the 10th triangle? Now put the 3rd and 4th triangles together. What shape can you make?

The 10th triangle has 1 + 2 + ... + 10 = 55 dots. The 3rd and 4th triangles, 6 and 10 dots, fit together into a 4 by 4 square of 16 dots.

Definition

triangular number A triangular number is the number of dots in a triangle with rows of 1, 2, 3, ..., n dots. The triangular numbers are 1, 3, 6, 10, 15, 21, ..., and the nth is Tn = n(n + 1)/2.

The letter T is reused here: in work on triangular numbers, Tn always means the nth triangular number. The formula is Gauss's pairing again: two copies of the triangle make a rectangle n by n + 1, as you saw in Chapter 1.

Triangular numbers, and two that make a squareEach triangle is the one before with a new row, one counter longer.1THE FIRST FOUR TRIANGULAR NUMBERS1T13T26T310T4+2+3+4Rows of 1, 2, 3, ..., n counters2THE 3rd AND 4th TOGETHER: A 4 BY 4 SQUAREcut along the staircasepull apartthe 4th triangle: 10the 3rd triangle: 66 + 10 = 16 = 4 × 4
Figure 10.3 The triangular numbers. A 4 by 4 square cut along a staircase gives the triangles for 6 and 10.
Key fact

Two consecutive triangular numbers make a square. For every n, Tn + Tn + 1 = (n + 1)2.

Proof

The picture is a proof: draw a square of (n + 1) by (n + 1) dots and cut it along a staircase line along the diagonal. One piece is a triangle with rows 1 to n + 1, the other is a triangle with rows 1 to n. With algebra: n(n + 1)/2 + (n + 1)(n + 2)/2 = (n + 1)(n + n + 2)/2 = (n + 1) × 2(n + 1)/2 = (n + 1)2.

Squares and cubes. The square numbers 1, 4, 9, 16, ... and the cube numbers 1, 8, 27, 64, ... come from Chapter 6. In Chapter 1 you proved that the sum of the first n odd numbers is n2. Cubes hide a pattern too: 13 = 1, 13 + 23 = 9, 13 + 23 + 33 = 36, and 36 is 62 = (1 + 2 + 3)2. Is the sum of the first n cubes always the square of a triangular number? It is, and the Olympiad corner will show you why.

Fibonacci numbers. In Chapter 5 you met Leonardo of Pisa and his sequence 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, ..., in which each term is the sum of the two before. Write Fn for the nth term. It is full of patterns. In Chapter 5 you proved that every third term is even. Here is another.

Worked example 10.6

Add the first few Fibonacci numbers: 1, 1 + 1, 1 + 1 + 2, .... Find a pattern and prove it.

The sums are 1, 2, 4, 7, 12, 20, 33.
Each is 1 less than a Fibonacci number: 2 = 3 − 1, 4 = 5 − 1, 7 = 8 − 1, 12 = 13 − 1.
The conjecture is F1 + F2 + ... + Fn = Fn + 2 − 1.
Proof: the Fibonacci rule says Fk = Fk + 2 − Fk + 1 for every k.
Write each term of the sum this way: (F3 − F2) + (F4 − F3) + ... + (Fn + 2 − Fn + 1).
Every term except two cancels, leaving Fn + 2 − F2 = Fn + 2 − 1.
A sum in which neighbouring terms cancel like this is called telescoping, after a pocket telescope that slides shut.

Now try one yourself

Solving the last digit problem. Return to the last digits of the Fibonacci numbers. Each new digit depends only on the two digits before it. So the sequence is completely decided by any pair of neighbouring digits. There are only 10 × 10 = 100 possible pairs. Among the first 101 pairs (first and second digit, second and third, and so on), some pair must therefore appear twice. This is an example of a simple but powerful idea.

Key fact

The pigeonhole principle. If more than n objects are put into n boxes, at least one box contains more than one object.

Once a pair repeats, everything after it repeats too, so the sequence becomes periodic. But will it return to 1, 1 at the very start? Yes, because the rule also works backwards: from two neighbouring digits you can find the digit before them, by taking the first from the second, and adding 10 if the answer is negative. So if the pair in positions i, i + 1 equals the pair in positions j, j + 1, the pairs just before them are equal too, and stepping back again and again we reach the start. The pair 1, 1 must come back. Writing it out shows that it first returns after 60 terms: the last digits repeat in a cycle of length 60. The pigeonhole principle told us it must happen before we knew when.

Check your understanding 10.6

  1. Find the 20th triangular number. Is 210 a triangular number?
    Show answerHide answer
    T20 = 210. Yes.
  2. Check that T7 + T8 = 64 by working out both.
    Show answerHide answer
    28 + 36 = 64 = 82.
  3. Write the Fibonacci numbers up to F15 and use them to find F1 + F2 + ... + F13 without adding.
    Show answerHide answer
    1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610. The sum is F15 − 1 = 609.
  4. A drawer has red, blue and black socks. How many must you take out in the dark to be sure of a matching pair? Explain with the pigeonhole principle.
    Show answerHide answer
    Four. There are 3 colours (boxes). With 4 socks, two must share a colour. Three socks could all differ.