https://5dok.net/document/qo5p9rp0-on-continued-fraction-algorithms.html