In mathematics, the JacobiâÂÂPerron algorithm is a generalization of the Euclidean algorithm to n-tuples of real numbers, which addresses Hermite's problem. It was defined by C. G. J. Jacobi for n = 2 and Oskar Perron for n âÂÂ¥ 2.