Source: http://www.panamaths.net/Documents/INFORMATIQUE/Recursivite_EXOS_CORRIGE.pdf