Sub topic 10
Circular Tracks: First Meeting and Meeting at the Start
This chapter assumes you are comfortable with these points:
- Distance = speed × time, and converting km/h to m/s with the factor 5/18.
- Relative speed: speeds add for opposite directions and subtract for the same direction.
- LCM and HCF, and ratios in lowest terms.
On a circular track, a runner who finishes a lap is back where they began, so meetings repeat. Two questions come up again and again. When do two runners first meet anywhere on the track? When are they first together at the starting point? These have different answers, and mixing them up is the most common error on this topic.
The setup
Let the track length be L. Two runners, A and B, start together from the same point with speeds a and b, where a > b. Every formula below uses one idea: a meeting happens when the runners' relative motion adds up to whole laps.
- Opposite directions: the runners close the gap at a + b. They first meet when together they have covered one full lap, L.
- Same direction: the faster runner gains on the slower at a − b. They first meet when A has gained one full lap on B.
| Situation | Relative speed | Time to first meeting |
|---|---|---|
| Opposite directions | a + b | L / (a + b) |
| Same direction | a − b | L / (a − b) |
After the first meeting, the same relative distance of one lap must be covered again, so meetings repeat at equal intervals. The nth meeting is at n × (first-meeting time), provided both runners started at the same point.
track = 400 # metres
a, b = 5, 3 # m/s
opposite = track / (a + b)
same = track / abs(a - b)
print(opposite, same) # 50.0 200.0Opposite directions give a meeting every 50 s. Same direction gives one every 200 s.
Where the meetings happen
The first-meeting time says nothing about where on the track the runners meet. To find that, reduce the speed ratio a : b to lowest terms m : n.
- Opposite directions: the runners meet at m + n distinct points, equally spaced around the track.
- Same direction: the runners meet at |m − n| distinct points, equally spaced.
For speeds 5 and 3, the ratio is 5 : 3 in lowest terms. Opposite-direction meetings fall at 8 points, and same-direction meetings at 2 points, which are diametrically opposite each other. This is why a question such as "at how many different points on the track do they meet?" needs only the reduced ratio and no arithmetic with L.
The count is a property of the ratio only, so it works even when the track length is not given.
Meeting at the starting point
Meeting anywhere is not the same as meeting at the start. A runner is at the start only at whole numbers of laps.
- Find each runner's lap time: L divided by their speed.
- Take the LCM of the lap times. That is the first time all runners are at the start together.
Lap times are often fractions. The LCM of fractions in lowest terms is the LCM of the numerators divided by the HCF of the denominators.
For L = 400 m, speeds 5 and 3 m/s:
- A's lap time is 80 s, and B's is 400/3 s.
- LCM of the numerators 80 and 400 is 400. HCF of the denominators 1 and 3 is 1.
- They are first together at the start after 400 s. By then A has run 5 laps and B has run 3 laps.
from fractions import Fraction
from math import gcd, lcm
def first_together_at_start(track, speeds):
times = [Fraction(track) / Fraction(s) for s in speeds]
num = lcm(*(t.numerator for t in times))
den = gcd(*(t.denominator for t in times))
return Fraction(num, den)
def meeting_points(a, b):
ratio = Fraction(a) / Fraction(b)
m, n = ratio.numerator, ratio.denominator
return m + n, abs(m - n) # (opposite, same direction)
print(first_together_at_start(400, [5, 3])) # 400
print(meeting_points(5, 3)) # (8, 2)
print(first_together_at_start(600, [10, 15])) # 120
print(meeting_points(10, 15)) # (5, 1)The code needs Python 3.9 or later for lcm and the multi-argument gcd.
Worked example: both questions on one track
A and B start together on a 600 m track at 36 km/h and 54 km/h.
- Convert the speeds: 36 × 5/18 = 10 m/s and 54 × 5/18 = 15 m/s.
- Opposite directions, first meeting: 600 / (10 + 15) = 24 s.
- Same direction, first meeting: 600 / (15 − 10) = 120 s.
- Lap times: A takes 60 s and B takes 40 s. The LCM is 120 s, so both are at the start together at 120 s.
- Meeting points: the ratio is 2 : 3. Opposite directions give 2 + 3 = 5 points. Same direction gives |2 − 3| = 1 point.
The one same-direction meeting point must be the start itself. That is why the first same-direction meeting (120 s) coincides with the first time both are at the start. When the reduced ratio differs by 1, the runners only ever meet at the starting point.
In the opposite-direction case, 120 / 24 = 5 meetings happen before both are back at the start. The fifth is at the start, at 120 s.
Different starting points
If the runners do not start together, the first meeting changes. Later meetings are still one lap of relative distance apart.
- Opposite directions, with a gap g between them measured along the direction of travel: the first meeting is at g / (a + b), and later ones follow every L / (a + b).
- Same direction, with the faster runner a distance g behind the slower: the first meeting is at g / (a − b), and later ones follow every L / (a − b).
On a 400 m track, A (5 m/s) starts 200 m behind B (3 m/s), both running the same way. A must gain 200 m, so they first meet after 200 / 2 = 100 s. After that they meet at 300 s, 500 s, and so on. If they ran in opposite directions from the same positions, the first meeting would be at 200 / 8 = 25 s, then every 50 s.
Three runners
For three runners going the same way, all three are together when every pairwise gap is a whole number of laps. Find the meeting interval for each consecutive pair, then take the LCM of those intervals.
Suppose speeds are 5, 7 and 11 m/s on a 400 m track, all starting together:
- The 7 m/s and 5 m/s runners meet every 400 / 2 = 200 s.
- The 11 m/s and 7 m/s runners meet every 400 / 4 = 100 s.
- All three are together first at LCM(200, 100) = 200 s.
Comparing consecutive speeds is enough. If the faster runner of each pair is a whole number of laps ahead of the slower one, the gaps compose.
Common errors
Other traps to watch for:
- Wrong sign for relative speed. Opposite directions add the speeds. Same direction subtracts them.
- Counting the start twice. Over a window that ends exactly at a meeting, include that meeting once. In 600 s with a meeting every 50 s, there are 12 meetings, not 13.
- Assuming equal spacing from the start. The "n × first-meeting time" rule works when both runners start from the same point. For different starting points, use the gap for the first meeting, then add whole laps of relative distance.
- Forgetting that a runner may reverse the question. "Meet for the first time at the starting point" needs the LCM of lap times. "Meet for the first time" needs the relative-speed formula.
Exercise
A and B start together on a 360 m track, running in opposite directions at 4 m/s and 6 m/s. (a) After how long do they first meet? (b) After how long are they first both at the start together? (c) How many meetings happen up to that time, and at how many distinct points?
Show answer
(a) 360 / (4 + 6) = 36 s. (b) Lap times are 90 s and 60 s, and their LCM is 180 s. (c) 180 / 36 = 5 meetings, and the ratio 4 : 6 reduces to 2 : 3, giving 2 + 3 = 5 distinct points. The fifth meeting is at the start.
Exercise
On a 400 m track, A runs at 18 km/h and B at 12 km/h, both in the same direction from the same point. After how long do they first meet, and is the meeting at the starting point?
Show answer
Convert: 18 km/h = 5 m/s and 12 km/h = 10/3 m/s. The relative speed is 5 − 10/3 = 5/3 m/s, so the first meeting is at 400 / (5/3) = 240 s. The lap times are 80 s and 120 s, with LCM 240 s, so the meeting is at the start. This agrees with the ratio 3 : 2, which differs by 1, so the only meeting point is the start.
Exercise
Three runners start together on a 600 m track and run the same way at 4, 6 and 10 m/s. After how long are all three first together?
Show answer
The 6 m/s and 4 m/s runners meet every 600 / 2 = 300 s. The 10 m/s and 6 m/s runners meet every 600 / 4 = 150 s. The LCM of 300 and 150 is 300, so all three are first together after 300 s.