Source: https://avram.perso.univ-pau.fr/proc/Chaines/lf1.pdf