Source: https://www.math93.com/gestclasse/classes/troisieme/td/TD-factorisation_canonique.pdf