MathLabs

Problem 5

Larry and Rob are two robots travelling in one car from Argovia to Zillis. Both robots have control over the steering and steer according to this algorithm: Larry makes a 90° left turn after every ℓ\ell kilometer driving from the start; Rob makes a 90° right turn after every rr kilometer driving from the start, where ℓ\ell and rr are relatively prime positive integers. If both turns occur simultaneously, the car keeps going without changing direction. Assume the ground is flat and the car can move in any direction. The car starts from Argovia facing towards Zillis. For which pairs (ℓ,r)(\ell,r) is the car guaranteed to reach Zillis, regardless of how far it is from Argovia?
Step 5 of 6: Compute the displacement for residue 3
∑k=0ℓr−1mk=∑a=0ℓ−1ia∑b=0r−1(−i)b=1(ℓ≡r≡3(mod4))\sum_{k=0}^{\ell r-1}m_k=\sum_{a=0}^{\ell-1}i^a\sum_{b=0}^{r-1}(-i)^b=1\quad(\ell\equiv r\equiv3\pmod4)
Detailed analysis

For ell≡r≡3 modulo 4, the same CRT factorization gives a geometric sum i and a geometric sum −i; their product is again 1. Thus each section also displaces the car exactly 1 kilometer east.