Source: https://www.lyceedadultes.fr/sitepedagogique/documents/math/math2S/jerome_herbaut/algorithmes/toscane.pdf