Source: https://math.berkeley.edu/~gmelvin/polya.pdf