Project Euler: Problem 26: Reciprocal Cycles