The last little train in the station had a moon painted on its nose. It had crossed the model viaduct every evening for a hundred shows. Tonight its souvenir ticket came out of the press with three empty spaces.

Pip “I’ve found the number for the first space! It’s … oh. The timetable stops at the fifth display. The ticket wants the twentieth.”
Bea read the surviving clues. Count the lamps on display twenty. Find the number that went into the ticket press to make that count. Set the locker dial to the value of its mystery ticket. Inside the locker was the silver destination board that the Patternline Express wore on its last trip home to the roundhouse.
Help the Comic Club fill the three spaces. A pencil and a few strips of scrap paper are enough. If letters are new to you, start by drawing boxes. If you already solve equations, try jumping to a distant term and comparing two fares before opening the answers.
The platform signs · What makes a sequence?
A sequence is a list in a particular order. Each number is a term and each place in the list has a position. In this station the positions start at 1. On the first five displays Bea counts 7, 11, 15, 19, 23 lamps. The fourth term is 19. The position number 4 tells you where to look and 19 tells you what you find.
Write the gaps in the spaces between the numbers. Subtract each term from the one after it. Here 11 − 7, 15 − 11 and 19 − 15 all give 4. The station plan says each new display gains four lamps, so adding 4 again gives 27. A sequence with a constant difference is called arithmetic. Its difference may be negative or zero. For 12, 9, 6, 3, 0, −3 the step is −3 every time.

A constant difference is just one kind of rule. Try these other routes.
- Multiply by a fixed number. With “double each term”, 3, 6, 12, 24 continues with 48. Each new term is twice the last. This is a geometric sequence. A multiplier can also shrink a sequence. Starting at 80 and multiplying by one half gives 40, 20, 10, 5.
- Use the position. The square numbers 1, 4, 9, 16, 25 come from squaring positions 1, 2, 3, 4, 5. Their gaps go 3, 5, 7, 9. The next gap is 11, taking 25 to 36.
- Use the last two terms. Begin with 2 and 3. If each new number is the sum of the previous two, you get 5, 8, 13, then 21. You need both starting numbers to rebuild this Fibonacci-type sequence.
- Look for alternating moves. The sign painter repeats “add 3, then subtract 1”. Starting at 4 gives 4, 7, 6, 9, 8, 11. Read every other sign and you see 4, 6, 8 on one track and 7, 9, 11 on the other.
A few terms supply clues. The start 2, 4, 6 fits “add 2 each time”. It also fits “add 2 twice, then double, and repeat those three moves”. The next term could be 8 or 12 under those two rules. Look for the instruction, diagram or story that tells you which pattern keeps going. When you propose a rule, say what you assumed.
Stretch · A changing gap can have its own pattern
For the growing-square rule, the terms 1, 4, 9, 16, 25 have first differences 3, 5, 7, 9. The differences between those differences are all 2. If you know the rule is quadratic, a constant non-zero second difference is its signature at equally spaced positions. Use the next first difference, 11, to predict 36. For the pictured square pattern there is also a direct check, 6 × 6 = 36.
Jump to the twentieth display · The nth term
“Add four” is a term-to-term rule. It gets you from where you are to the next display. A position-to-term rule takes a position straight to its lamp count. Mathematicians often call the position n. The nth term is the term in position n.

Method 1 · Count the jumps. The first display already has 7 lamps. Display 2 needs one jump of 4. Display 20 needs 19 jumps. So it has 7 + 19 × 4 = 7 + 76 = 83 lamps. Counting twenty jumps would take you one display too far.
Method 2 · Borrow a times table. The 4 times table goes 4, 8, 12, 16. The station numbers 7, 11, 15, 19 are always three higher. The rule is 4n + 3. In algebra, 4n means 4 × n. Put n = 20 into the rule to get 80 + 3 = 83. The first space on the ticket is filled.
A reusable shortcut. For an arithmetic sequence with first term a and common difference d, term n is a + (n − 1)d. It works going down as well. Start at 30 and subtract 3 each time. Term 12 is 30 + 11 × (−3) = −3. Check the landmark on the way. Term 11 is zero.
Detective test · Could 85 be on this line?
Work backwards from the value. For a term of 4n + 3, subtract 3 and divide by 4. Starting at 83 gives n = 20, a positive whole position. Starting at 85 gives n = 20.5. The displays are numbered 1, 2, 3, …, so none has exactly 85 lamps.

Add twenty terms without nineteen additions. The first and last displays hold 7 + 83 = 90 lamps. The second and second-last hold 11 + 79 = 90. Twenty displays make ten pairs, so the whole row has 900 lamps. For any finite arithmetic sequence, the average of the first and last values is also the average of all the terms. Multiply that average by the number of terms. Here (7 + 83) ÷ 2 × 20 = 900. This version also works with an odd number of terms, when the middle term stands alone.
The carriage workshop · Build a rule you can see
The modeller lays out a row of square carriage windows with craft sticks. The first window uses four. Its neighbour uses the right side of the first window as its own left side. Each extra window needs just three new sticks.

Count the first four models. One, two, three and four adjacent windows use 4, 7, 10 and 13 sticks. Now build a carriage with any number n of windows in your head. There are n top sticks, n bottom sticks and n + 1 upright sticks. That makes n + n + (n + 1) = 3n + 1.
Two checks are better than one. At n = 1, the rule gives 4 sticks. At n = 4, it gives 13. For 30 windows, skip straight to 3 × 30 + 1 = 91 sticks. If the box holds 64 sticks, work back. Remove the extra 1, then divide by 3. You can build 21 windows using every stick. Windows made separately before being put side by side would use different materials. The shared edges are what make this rule work.
The broken signboard · Missing numbers in any position
The next board reads 14, □, □, 35 and promises equal jumps. Pip wants to divide the change by two because two signs are blank. Bea runs her finger from sign to sign. She makes three journeys.

Count gaps, then divide. The total change is 35 − 14 = 21. Three gaps of equal size make 21, so one gap is 7. The signs say 14, 21, 28, 35. More generally, if positions 3 and 8 are known, there are 8 − 3 = 5 equal steps between them. For a single missing middle term in an arithmetic run, average its two neighbours. Between 1.5 and 2.5 the middle value is (1.5 + 2.5) ÷ 2 = 2.
Missing numbers in calculations. Read the whole number sentence before choosing an inverse. In □ − 8 = 19, put the 8 back to get 27. In 40 − □ = 19, ask how much was taken away from 40 to leave 19. The answer is 21. Check 40 − 21 = 19. For 72 ÷ □ = 9, write the related multiplication 9 × □ = 72. The missing divisor is 8. The sentence □ ÷ 9 = 8 asks for the original amount, 72.
Fast route · Rebuild a timetable from just two signs
In an arithmetic sequence, term 4 is 17 and term 10 is 41. Six jumps gain 24, so each jump adds 4. Back up three jumps from term 4 to get 17 − 12 = 5 at position 1. The rule is 5 + 4(n − 1), or 4n + 1. Check it at both given positions.
Bea “Read the equals sign as ‘has the same value as’. You can read the sentence from either end.”
Try 8 + 7 = □ + 9. The left makes 15, so the box is 6. Or use compensation. The 9 on the right is 2 more than 7 on the left, so the other addend must be 2 less than 8. Both routes keep the total unchanged.
The ticket office · Substitution without losing a sign
The fare clerk’s note reads T = 4a + 3c. In this note a counts adult tickets, c counts child tickets and T gives the total in pounds. Each adult ticket costs £4 and each child ticket costs £3. To substitute, replace each letter with its given value, keeping all the operations in place.

For 2 adults and 5 children, T = 4 × 2 + 3 × 5 = 8 + 15 = £23. A quick sense check is to price all seven tickets as child tickets for £21, then add the extra £1 for each of the two adults. Another £2 gives the same £23.
Know what the writing means. An expression such as 4a + 3c describes a value. A formula such as T = 4a + 3c gives a relationship between quantities. An equation states that two expressions have equal value. Substitution starts with known values and works out an expression. Solving an equation starts with a condition and asks which values make it true.
Put a negative replacement in brackets. For x = −3, the expression x² + 2x becomes (−3)² + 2 × (−3) = 9 − 6 = 3. First do brackets and powers, then multiplication and division, then addition and subtraction. Within the same level work left to right. Compare (−3)² = 9 with −(3²) = −9. In the first, the negative number is squared. In the second, the minus is applied after the squaring.
Fast substitution · Choose a friendly neighbour
To evaluate 6n − 5 at n = 49, use 6 × 50 − 6 − 5 = 289. The extra one in the input added six to the product, so remove six before subtracting five. Check by doing 6 × 49 = 294, then 294 − 5 = 289.
The ticket press · Follow a function forwards

Sami finds a press with two numbered wheels. The first triples the input. The second adds 2. A function gives exactly one output for each allowed input. Here the rule in words is multiply by 3, then add 2. In symbols it is output = 3n + 2. You can also write f(n) = 3n + 2, read “f of n”. The letter f names this function.

Feed in 4. First 4 × 3 = 12. Then 12 + 2 = 14. For −2, the wheels give −6 and then −4. Zero is a useful test input. The multiplication gives zero, leaving the fixed addition of 2. Here n can be a negative input. Earlier, n counted positions starting at 1. The story tells you which values a letter can take.

Swapping the wheels changes the rule. Compare “triple, then add 2” with “add 2, then triple”. Starting at 4, the second route makes (4 + 2) × 3 = 18. Its expression is 3(n + 2). Opening the bracket means multiplying everything inside by 3, giving 3n + 6. That is always four more than 3n + 2 for the same input. At n = 100, you can call the two outputs without a written calculation. They are 302 and 306.
Link a function to a sequence. Feed the positive whole numbers 1, 2, 3, 4, … into 3n + 2. The outputs are 5, 8, 11, 14, … . Each new input increases by 1 and its output increases by 3. So the very same rule can be a machine’s instruction and the nth-term rule for its output sequence.
The return slot · Recover a missing input
On the next ticket only the output, 29, survives. The last thing the outward press did was add 2, so undo that first. From 29 subtract 2 to reach 27. Then undo the tripling by dividing by 3. The input was 9. Feed it forwards again. 9 × 3 + 2 = 29.

Walk backwards through the operations in reverse order. Addition and subtraction undo each other. Multiplication and division by the same non-zero number undo each other. Here if the output is y, the input is (y − 2) ÷ 3. The brackets ensure the subtraction happens before the division.
Now try the number from the twentieth lamp display. Which input makes 83? Undo +2 to get 81 and undo ×3 to get 27. The second ticket space is 27. Pip trots towards locker 27 with his little brass pencil ready.
An advanced return ticket · Can every machine be reversed?
A machine that squares its input gives 16 for both 4 and −4. If any real input is allowed, the output 16 alone cannot tell you which of those two went in. If the ticket only permits non-negative inputs, the original number must be 4. Check what inputs are allowed before promising a unique return trip.
The locker dial · Keep an equation balanced
The lock plate shows 3x + 5 = 26. Each of three identical mystery tickets is worth x points. Five loose points sit beside them. Together they match 26 points. The equals sign says the totals on the two sides match. The goal is to leave x on its own while keeping that match true.

Undo one layer at a time. Subtract 5 from both sides to get 3x = 21. Divide both sides by 3 to get x = 7. Check your answer in the original equation. Three sevens plus five gives 21 + 5 = 26. Reading backwards through a function and balancing this equation tell the same story in two ways.
Build up from one-step problems. For x + 8 = 19, subtract 8 from both sides to get 11. For x ÷ 4 = 6, multiply both sides by 4 to get 24. Fractions and negative answers can be valid too. For 2x + 3 = 10, subtract 3, then divide by 2 to get x = 3.5. For 3x + 4 = −8, subtract 4 to get 3x = −12, then divide by 3 to get x = −4. Both pass when you put the value back.
Bea writes the three answers on the souvenir ticket. 83 lamps · input 27 · dial 7. The locker opens. There is the silver board, wrapped in last year’s timetable. Before the night train can collect it, there is time for a challenge from the fare clerk.
The fare clerk’s challenge · When two rules agree
“My two fares charge differently,” says the clerk. “Can you tell me when they cost the same?” The Teal ticket charges £2 to start and £3 per ride. The Plum ticket charges £8 to start and £2 per ride. Let n count rides. Teal costs 3n + 2 pounds and Plum costs 2n + 8 pounds. An equal price gives the equation 3n + 2 = 2n + 8.

Use the difference. Plum starts £6 higher. Each ride on Teal costs £1 more than a ride on Plum. That closes the gap by £1 each ride. It takes 6 rides to close £6. At six rides, Teal costs 3 × 6 + 2 = £20 and Plum costs 2 × 6 + 8 = £20. At seven, Teal has overtaken Plum by £1.
Use the balance. Starting with 3n + 2 = 2n + 8, subtract 2n from both sides. That leaves n + 2 = 8. Subtract 2 to get n = 6. You have just solved an equation with a letter on both sides. Removing the smaller group of letters first often keeps the numbers friendly.

Try 4x + 3 = 2x + 17. Subtract 2x from both sides to get 2x + 3 = 17. Subtract 3, then halve 14. That gives x = 7, so both sides have value 31. For 3(x + 2) = 21, spot the equal groups before opening the bracket. Divide both sides by 3 to get x + 2 = 7, then subtract 2. This time x = 5. Each equation sets its own condition, even when the letter looks familiar.
Spot an impossible or always-true equation
If both sides have the identical letter part, subtract it first. From 2x + 3 = 2x + 7 you get 3 = 7, so no value works. From 2(x + 3) = 2x + 6 you get the same expression on both sides, so every allowed value works.
The unmarked press · Find a rule from a table
One final press has lost its label. The clerk promises it uses a constant multiplier followed by a fixed addition. Read its surviving test tickets. First predict the output for input 10, then see how the crew decoded it.
| Input | Output |
|---|---|
| 0 | 5 |
| 2 | 9 |
| 5 | 15 |
| 10 | Predict it |
Find the change per one input. Inputs 0 and 2 are two apart. Their outputs 5 and 9 are four apart. Each extra unit of input therefore adds 4 ÷ 2 = 2 to the output. Check the longer gap. From input 2 to 5 the increase is 3, while the output increase is 6. That agrees. At input zero the output is 5, so the rule is double, then add 5, or 2n + 5. At 10 it gives 25.
Keep the two kinds of gaps separate. Output values can jump by different amounts simply because the test inputs are unevenly spaced. Divide the output change by the input change before identifying the multiplier. The clerk’s promise matters here. Without a rule family or more context, a few test tickets cannot prove which rule will be used everywhere.

The station clock chimed. In the last golden window of the Patternline Express, Pip saw the reflection of a little purple passenger holding up a ticket. It was his own reflection. He waved anyway. The train slipped across the viaduct with its silver board in place.
The return journey · Eight puzzles to try
Give each answer with its rule or a quick substitution check. Open the working after you have made your prediction.
1 · A cold platform. The temperature display starts at 6 and changes by −4 each stop. What are the next three readings?
Reveal the working for puzzle 1
Start with 6. Subtract 4 repeatedly to get 2, −2 and −6. Crossing zero keeps the same step.
2 · Two missing signs. Complete 8, □, □, 32 using equal jumps. What would a fifth sign show?
Reveal the working for puzzle 2
From 8 to 32 is a change of 24 across three gaps. The step is 8. The complete row is 8, 16, 24, 32 and the fifth sign is 40.
3 · Thirty carriages. The badge sequence is 6, 11, 16, 21 and continues by adding 5. Find the 30th term. Could 153 be a term?
Reveal the working for puzzle 3
The rule is 5n + 1. Term 30 is 151. For 153, subtract 1 to get 152. It is not a multiple of 5, so there is no positive whole position that gives 153.
4 · A hidden sign. With r = −4 and s = 3, what is r² − 2s?
Reveal the working for puzzle 4
(−4)² − 2 × 3 = 16 − 6 = 10. Brackets keep the sign with the number you square.
5 · The ticket bundle. Four identical tickets plus three points are worth 39 points. What is one ticket worth?
Reveal the working for puzzle 5
Write 4t + 3 = 39. Remove 3 points to leave 36. Divide by 4 to get t = 9. The original total is 4 × 9 + 3 = 39.
6 · The reverse punch. A press doubles its input and subtracts 7. Its output is 19. What went in?
Reveal the working for puzzle 6
Put the 7 back to reach 26. Undo the doubling to get 13. Check 2 × 13 − 7 = 19.
7 · A different order. Compare “subtract 3 then double” and “double then subtract 3” at input 8. Which always gives the larger result?
Reveal the working for puzzle 7
The first gives (8 − 3) × 2 = 10 and the second gives 16 − 3 = 13. Written with n they are 2n − 6 and 2n − 3. The second always gives 3 more.
8 · The last lamp row. A row of displays follows 9, 13, 17, … with step 4. Which display has 69 lamps? What is the total on every display up to and including it?
Reveal the working for puzzle 8
The rule is 4n + 5. Solve 4n + 5 = 69 to get n = 16. There are 16 terms whose first and last sum to 9 + 69 = 78. Eight pairs of 78 give 624 lamps.
Make a puzzle for another conductor. Write a two-step machine on one slip of paper and hide it in an envelope. Give a friend three input–output pairs, including a zero input. Tell them the machine uses multiplication by a non-zero number followed by an addition. Ask them to predict a fourth output and run one ticket backwards. Open the envelope to compare rules and test both on the new input.
Travel on with the Comic Club. Solve The Mystery of the Missing Ink for a first introduction to algebra · Visit the Midnight Multiplication Machine · Turn a machine rule into a table and graph in The Mechanical Menagerie · Browse Online Learning Guides.
For families and teachers
For a first visit, build four carriage windows and let a child point to the three extra sticks. On a second visit, ask which parts of the model represent the 3n and the 1. Older readers can use the same reasoning to generalise a fare, compare two expressions and test whether a target value can be a term. Further practice is available in NCETM’s algebra lessons and Oak National Academy’s lesson on calculating any term.