Skip to content

naming each number in a list

foundations

the puzzle

A seedling is measured each Monday at 4, 6, 9, 13 and 18 cm. Each time it has grown 1 cm more than the time before. How do you say "this reading" and "the reading before" in symbols?

a worked example

Give the list a letter, hh for height, and name each number by its reading.

  1. The 1st reading is h1=4h_1 = 4, the 2nd is h2=6h_2 = 6, and so on to h5=18h_5 = 18. The small number only says where in the list; it does no arithmetic.
  2. Reading nn is any reading, so its height is hnh_n. The reading before is reading n−1n - 1, so its height is hn−1h_{n - 1}.
  3. At n=2n = 2, hn=h2=6h_n = h_2 = 6 and hn−1=h1=4h_{n - 1} = h_1 = 4. The reading after is reading n+1n + 1, so at n=2n = 2 it is h3=9h_3 = 9.
  4. Reading nn grew nn cm since the reading before (2 at reading 2, 3 at reading 3), so hn=hn−1+nh_n = h_{n - 1} + n. Check at reading 5. h5=h4+5=13+5=18h_5 = h_4 + 5 = 13 + 5 = 18.
reading12345
height in cm4691318
its nameh1h_1h2h_2h3h_3h4h_4h5h_5
grew by2345
Each height is named by its reading, and each growth is the reading's own number.

how it works

A list in order, with a place for each number, is a sequence. The small number under its letter, the subscript, says which place. Lesson 1.4 met subscripts naming places, and tn+1t_{n + 1} as the place after tnt_n; here a place can also be counted back, as hn−1h_{n - 1}.

at n=3n = 3hn−1h_{n - 1}hnh_nhn+1h_{n + 1}
place234
height6913
Taking 1 from nn steps back one place, and adding 1 steps on one.

hn−1h_{n - 1} is the number one place before hnh_n, and hn+1h_{n + 1} the one after. Two places back is hn−2h_{n - 2}; at n=3n = 3 it is h1=4h_1 = 4.

A rule like hn=hn−1+nh_n = h_{n - 1} + n makes each number from place 2 on, so it needs a start too, here h1=4h_1 = 4, or there is nothing to build on.

in symbols

ana_n is the number in place nn of a list named aa. Another list takes another letter: tnt_n, cnc_n.

nn is the one place a question asks about. Later lessons add ii, a counter that steps through the places one by one: i=1i = 1 picks out h1h_1, then i=2i = 2 picks out h2h_2, then i=3i = 3 picks out h3h_3.

Code, the instructions a computer follows, often numbers a list from 0, as lesson 3.5 did. Then place nn sits at code number n−1n - 1, so h4h_4 sits at code number 3.

place12345
numbered from 001234
height4691318
Numbered from 0, every place's number is one less.

your turn

Work each one out. Where there is a box, type your answer and check it. Each exercise's worked answer opens under it.

exercise 1

A runner's lap times, in seconds, are 61, 58, 60, 57, 55 and 59, named t1t_1 to t6t_6.

Which name holds 55?

worked answer
  1. Count along the list. 61 is place 1, 58 place 2, 60 place 3, 57 place 4, and 55 place 5.
  2. So 55 is t5t_5.

Check it another way: The subscript is the place, not the number held there, so it is not t55t_{55}.

exercise 2

A list of 8 heights, h1h_1 to h8h_8, is kept in code numbered from 0.

A number, like 13, 9.5 or 19/2.

A number, like 13, 9.5 or 19/2.

worked answer
  1. Numbered from 0, place nn is code number n−1n - 1. So h6h_6 is number 6−1=56 - 1 = 5.
  2. The last height is h8h_8, number 8−1=78 - 1 = 7.

Check it another way: Count them. Numbers 0 to 7 are 8 numbers, one for each height.

exercise 3

Use the runner's lap times again, 61, 58, 60, 57, 55 and 59, with n=5n = 5.

Numbers in order with commas between them, like 3, 6, 9.

worked answer
  1. tn−2=t5−2=t3=60t_{n - 2} = t_{5 - 2} = t_3 = 60, two places before.
  2. tn+1=t5+1=t6=59t_{n + 1} = t_{5 + 1} = t_6 = 59, one place after.

Check it another way: From t5=55t_5 = 55, count back two places, 57 then 60. From 55 again, count on one place, 59.

exercise 4

A list starts at c1=6c_1 = 6, and each number is the one before doubled, take away 3. It runs 6, 9, 15, 27.

Its rule is:

A number, like 13, 9.5 or 19/2.

worked answer
  1. Each number is the one before, cn−1c_{n - 1}, doubled, take away 3. So cn=2cn−1−3c_n = 2c_{n - 1} - 3.
  2. c5=2c4−3=2×27−3=51c_5 = 2c_4 - 3 = 2 \times 27 - 3 = 51.

Check it another way: The rule on the numbers given. c2=2×6−3=9c_2 = 2 \times 6 - 3 = 9 and c3=2×9−3=15c_3 = 2 \times 9 - 3 = 15.