Spot the arithmetic or number-theory insight that turns brute force into a clean formula or loop.
Solved