[math-fun] Continued fraction expansion