Project Euler #108: Diophantine reciprocals I