In Statistical Mechanics, the Partition Function is the sum of all the Boltzmann Factors of a set of particles, which are in turn, values directly related to the count of particles in a given Quantum State. Dividing a Boltzmann factor by the partition function gives the fraction of the particles with that quantum state. Lacking the partition function, Boltzmann factors are still useful in determining the relative percents or counts of particles at two quantum states. Statistical mechanics (and astrophysics) uses it to help model the properties of gases based upon the actions of the individual molecules.
For a classical discrete system, a Boltzmann Factor is:
and the partition function (Z) is the sum:
Z = Σ e-βEi i
Mathematics also uses the term Partition Function for other functions. In probability, it is a generalization of the above. In number theory, it is the number of sets of non-zero positive integers that add up to a particular integer.