- Practice
- About 13 min
- 5 practice questions
Bouncing markers: back-and-forth movement along a line
Follow a marker that moves along a row of positions, turns round at the ends and comes back, and find its position in any figure with the period 2(k minus 1).
If something looks wrong, please tell us.
A marker that goes round a square wraps from the last corner to the first. A different kind of marker moves along a line of positions, hits the end and turns back, like a ball bouncing between two walls. It never jumps; it reverses. The pattern still repeats, and a small formula finds the position in any figure.
How a bouncing marker moves
Take a row of 5 positions numbered 1 to 5 from left to right. A marker starts at position 1 and moves one place right at every step. At position 5 it turns and moves left. The positions in successive figures are:
| Figure | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
|---|---|---|---|---|---|---|---|---|---|---|
| Position | 1 | 2 | 3 | 4 | 5 | 4 | 3 | 2 | 1 | 2 |
Figure 9 is the same as figure 1, and the marker is again moving right. So the pattern repeats every 8 figures. For a row of k positions, one full trip out and back takes 2 times (k minus 1) steps, so the period is 2(k minus 1). For k = 5 that is 8, and for k = 4 it is 6.
Finding the position in figure n
- Let m be the remainder when n minus 1 is divided by the period 2(k minus 1).
- If m is at most k minus 1, the position is m plus 1 (the marker is on its way out).
- Otherwise the position is 2k minus 1 minus m (the marker is on its way back).
Worked examples
Example 1. Five positions, start at 1 moving right. Where is the marker in figure 20? Working: the period is 8. 19 divided by 8 leaves m = 3. Since 3 is at most 4, the position is 3 + 1 = 4. Check from the table: figure 12 is the same as figure 4, and figure 20 the same as figure 12, so figure 20 is at position 4.
Example 2. Four positions, start at 1 moving right. Where is the marker in figure 30? Working: the period is 6. 29 divided by 6 leaves m = 5. Since 5 is more than 3 (which is k minus 1), the position is 2 times 4 minus 1 minus 5 = 7 minus 5 = 2. The list is 1, 2, 3, 4, 3, 2, then 1 again, and figure 6 is also at position 2, which agrees.
Example 3. Five positions, but the marker starts in the middle, at position 3, moving right. Where is it in figure 15? Working: starting at 3 moving right is the same as the usual start, but 2 figures later (the marker is at 3 in figure 3 of the usual run). So figure 15 of this series is figure 17 of the usual one. 16 divided by 8 leaves m = 0, so the position is 1. Listing confirms it: 3, 4, 5, 4, 3, 2, 1, 2, 3, 4, 5, 4, 3, 2, 1.
Example 4. For six positions the period is 10. Where is the marker in figure 24 if it starts at 1 moving right? Working: 23 divided by 10 leaves m = 3. Since 3 is at most 5, the position is 4.
Period of a bounce along k positions = 2(k minus 1). Remainder m = (n minus 1) mod period. Out: m plus 1. Back: 2k minus 1 minus m.
Key takeaways
- The marker reverses at the ends and does not jump or wrap round.
- The period is 2(k minus 1), not 2k.
- Use the remainder, then decide whether the marker is going out or coming back.
- If the start is not at the end, shift the figure number to the usual start.
Check your understanding
-
1. Five positions, marker starts at 1 and moves right, bouncing at the ends. Where is it in figure 20?
- Position 2
- Position 1
- Position 4
- Position 5
Show answer
Answer: C. The period is 8. 19 divided by 8 leaves 3, and 3 is at most 4, so the position is 3 + 1 = 4.
-
2. Four positions, marker starts at 1 and moves right, bouncing at the ends. Where is it in figure 30?
- Position 4
- Position 1
- Position 3
- Position 2
Show answer
Answer: D. The period is 6. 29 divided by 6 leaves 5, which is more than 3, so the position is 7 minus 5 = 2.
-
3. A marker bounces along 5 positions. After how many figures does the whole pattern repeat?
- 10
- 8
- 5
- 4
Show answer
Answer: B. The period is 2 times (5 minus 1) = 8: four steps out and four steps back.
-
4. Five positions: the marker starts at position 3 and moves right, bouncing at the ends. Where is it in figure 15?
- Position 1
- Position 3
- Position 5
- Position 2
Show answer
Answer: A. The sequence is 3, 4, 5, 4, 3, 2, 1, 2, 3, 4, 5, 4, 3, 2, 1. Figure 15 is at position 1.
-
5. Six positions, marker starts at 1 and moves right, bouncing at the ends. Where is it in figure 24?
- Position 5
- Position 3
- Position 4
- Position 6
Show answer
Answer: C. The period is 10. 23 divided by 10 leaves 3, which is at most 5, so the position is 3 + 1 = 4.
Sign in to keep track of the lessons you finish.