Final solution to p066 with continued fractions