handwritten continued fraction arithmetic