Source: https://lavc.edu/math/library/math125/Worksheets/factgcfquad.pdf