Source: http://jp.spriet.free.fr/docs_2nde/_fonctions/fonction_paires_impaires.pdf