The Setup
A Synchronized Dance of Lights
Imagine driving down a long, perfectly straight highway. Every s=1.00 km, there is a traffic signal. These aren't just random lights; they follow a strict, synchronized rhythm. Each signal stays green for τ=30 s, then switches to red for the next τ=30 s.
But here is the brilliant catch: adjacent signals are perfectly out of phase. When signal 1 is green, signal 2 is red. When signal 2 turns green, signal 1 turns red. It is a continuous, alternating dance of lights. Our mission is to find the "magic speeds" that allow a vehicle to cruise down this highway indefinitely without ever touching the brakes.
The Space-Time Graph
Visualizing the Journey
To truly understand this problem, we must step out of the driver's seat and look at the journey from a bird's-eye view using a space-time (x−t) graph.
If we plot distance on the horizontal axis and time on the vertical axis, the traffic signals appear as vertical bands of alternating green and red. A vehicle moving at a constant speed v traces a straight, diagonal line on this graph. The slope of this line is determined by the speed. For a non-stop journey, this straight line must thread its way exclusively through the green bands, never once intersecting a red band.
The Condition for a Non-Stop Drive
Let's assume we cross the very first signal right in the middle of its green phase. To avoid stopping at the second signal (which is 1 km away), we must arrive exactly when it is green.
However, remember that the second signal started in the opposite state (red). Since the signals flip every τ=30 s, the second signal will only be green after an odd number of flips. If our travel time between signals is an even multiple of τ (like 60 s), the signal will have flipped twice, returning to its original red state, and we would be forced to stop.
Therefore, the time Δt taken to travel the distance s between two consecutive signals must be an odd multiple of τ. Mathematically, we write this as:
where n is any non-negative integer (n=0,1,2,…).
Calculating the Magic Speeds
We know from basic kinematics that the travel time is simply distance divided by speed, so Δt=vs. Equating our two expressions for Δt, we get our master equation:
Rearranging to solve for our constant speed v:
Now, let's plug in the given values. The distance is s=1 km, and the time interval is τ=30 s. To get our speed in standard units of km/h, we convert τ into hours: τ=360030 h=1201 h.
Let's test different values of n:
For n=0:
v1=1×(1/120)1=120 km/h
This is the fastest possible speed to surf the green wave. You reach the next signal just as it completes its first flip to green.
For n=1:
v2=3×(1/120)1=40 km/h
Here, you drive slower. You let the next signal flip three times (red
→ green
→ red
→ green) before you arrive.
For n=2:
v3=5×(1/120)1=24 km/h
Conclusion
By continuing this pattern, we generate an infinite sequence of possible constant speeds: 120 km/h,40 km/h,24 km/h,…
As long as you lock your cruise control to any of these exact speeds, the alternating traffic lights will perfectly align with your arrival, allowing you to drive forever without a single stop.