Math, cycle-finding