Project Euler #110: Diophantine reciprocals II