Source: https://mathematiques.ac-bordeaux.fr/elv/clubs/mej/mej2000/nombres_parfaits.pdf