Reverse Euclidean Algorithm Calculator