Skip to content

the total of a fixed-gap list

foundations

the puzzle

A bookshop's window display has 20 shelves. The top shelf holds 8 books, and each shelf below holds 5 more than the one above it. How many books are on show, without adding 20 numbers?

a worked example

Take the top 5 shelves first, and write their list twice.

  1. The top 5 shelves hold 8, 13, 18, 23 and 28 books, a list with a fixed gap of 5.
  2. Write the list again under itself, backwards. Each column pairs a shelf counted from the top with one counted from the bottom.
  3. Every column adds to 36. Going right, the forwards row gains 5 and the backwards row loses 5, so the total never moves.
  4. The 5 columns hold 5×36=1805 \times 36 = 180 books. That counts every shelf twice, so the 5 shelves hold 180÷2=90180 \div 2 = 90 books.
column12345
forwards813182328
backwards282318138
column total3636363636
The middle column adds 18 to itself and still makes 36, so an odd count of shelves works too.

how it works

A fixed-gap list added up is an arithmetic series. Name its total SnS_n. Put its nn terms in a row, a1a_1 first, and the same nn terms in a row below, ana_n first.

column12…\dotsnn
forwardsa1a_1a1+da_1 + d…\dotsana_n
backwardsana_nan−da_n - d…\dotsa1a_1
column totala1+ana_1 + a_na1+ana_1 + a_n…\dotsa1+ana_1 + a_n
Every column adds to a1+ana_1 + a_n.

In the first column sit a1a_1 and ana_n. One column right, the forwards row gains dd and the backwards row loses dd, so the column still adds to a1+ana_1 + a_n.

With one column for each term, nn of them, the two rows together hold n(a1+an)n(a_1 + a_n), every term counted twice. So 2Sn=n(a1+an)2S_n = n(a_1 + a_n).

Halve both sides, as in lesson 2.1. That gives the first form, Sn=n(a1+an)2S_n = \frac{n(a_1 + a_n)}{2}. Check it on the shelves: 5×(8+28)2=1802=90\frac{5 \times (8 + 28)}{2} = \frac{180}{2} = 90.

in symbols

When the last term is not given, lesson 4.2 gives it: an=a1+(n−1)da_n = a_1 + (n - 1)d. Put that in place of ana_n, and a1+an=a1+a1+(n−1)da_1 + a_n = a_1 + a_1 + (n - 1)d, which gathers to 2a1+(n−1)d2a_1 + (n - 1)d.

So the second form is Sn=n(2a1+(n−1)d)2S_n = \frac{n(2a_1 + (n - 1)d)}{2}.

The window has a1=8a_1 = 8, d=5d = 5 and n=20n = 20, so 2a1=162a_1 = 16 and (n−1)d=19×5=95(n - 1)d = 19 \times 5 = 95. The bracket is 16+95=11116 + 95 = 111, and S20=20×1112=10×111=1110S_{20} = \frac{20 \times 111}{2} = 10 \times 111 = 1110 books.

The counting numbers 1 to nn are the fixed-gap list with d=1d = 1, a1=1a_1 = 1 and an=na_n = n, so the first form gives 1+2+⋯+n=n(n+1)21 + 2 + \dots + n = \frac{n(n + 1)}{2}. The staircases show it: two of them fill nn columns of n+1n + 1.

Two staircases of 1 to 5 squares fill 5 columns of 6, which is 30. One staircase, 1 + 2 + 3 + 4 + 5, is half of it, 15.

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

In a game, round 1 scores 1 point, round 2 scores 2, and each round scores 1 more than the round before.

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

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

worked answer
  1. The rounds score 1 to 80, so S80=80×812=3240S_{80} = \frac{80 \times 81}{2} = 3240.
  2. The first 40 rounds score 40×412=820\frac{40 \times 41}{2} = 820.
  3. Rounds 41 to 80 score 3240−820=24203240 - 820 = 2420.

Check it another way: Rounds 41 to 80 are 40 terms from 41 to 80, and 40×(41+80)2=20×121=2420\frac{40 \times (41 + 80)}{2} = 20 \times 121 = 2420.

exercise 2

A list and its backwards copy are added column by column.

Every column of a fixed-gap list gives the same total because:

For 2, 3, 5, 9, whose gaps grow, the columns:

worked answer
  1. Moving one column right adds dd to the forwards row and takes dd from the backwards row, so the total stays a1+ana_1 + a_n.
  2. For 2, 3, 5, 9 the columns are 2+9=112 + 9 = 11, 3+5=83 + 5 = 8, 5+3=85 + 3 = 8 and 9+2=119 + 2 = 11. They differ, so the trick needs a fixed gap.

Check it another way: The shelves had 5 terms, an odd count, and every column still made 36.

exercise 3

A fixed-gap list has 8 terms, from 13 down to −29-29, each 6 less than the one before.

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

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

worked answer
  1. Here a1=13a_1 = 13, a8=−29a_8 = {-29} and n=8n = 8, so a1+a8=−16a_1 + a_8 = {-16}.
  2. The first form gives S8=8×(−16)2=−64S_8 = \frac{8 \times ({-16})}{2} = {-64}.
  3. The terms run 13, 7, 1, then −5-5, so term 3 is the last above 0.

Check it another way: Pair the ends, 13 and −29-29, 7 and −23-23, 1 and −17-17, −5-5 and −11-11. Each pair adds to −16-16, and 4 pairs make −64-64.

exercise 4

A car park's six levels hold 12, 19, 26, 33, 40 and 47 cars.

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

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

worked answer
  1. The first and last levels add to 12+47=5912 + 47 = 59, and so does every column.
  2. Six columns hold 6×59=3546 \times 59 = 354, which counts every level twice.
  3. So the levels hold 354÷2=177354 \div 2 = 177 cars.

Check it another way: Added one at a time, the running totals are 12, 31, 57, 90, 130, 177.