Source: https://eclass.upatras.gr/modules/document/file.php/CEID1130/Συμπληρωματικό Υλικό/Rosen - Discrete Mathematics 8th edition.pdf