A billiard ball fired at 45° in an a×b rectangle bounces until it reaches a corner. The path encodes deep number theory:
The number of bounces off horizontal walls is a−1, vertical walls is b−1. Total = a+b−2.