Source: https://clg-leodate-volmar.eta.ac-guyane.fr/IMG/pdf/tp1_cours_exercices_chaines_d_e_nergie_et_information.pdf