Reduced representatives

This program takes an linear combination of lens spaces, and outputs the unique reduced representative.

In a few seconds an example will automatically start; change the values and press the "Update" button. All inputs must be greater than 1 in absolute value, and separated by a comma.