Source: http://www.columbia.edu/itc/chemistry/chem-c2407/hw/boltzmann.pdf