https://123dok.net/document/q2np10lr-correction-exo-tp-algorithmes-r-ecursifs.html