Source: http://www.math.ucdenver.edu/~esulliva/Math3000/InjSurjBijFunctions_PracticeWS.pdf