The Boltzmann formula shows the relationship between entropy and the number of ways the atoms or molecules can be arranged.

The equation is as follows:
S = k ln ( W )

Where S is the entropy, K is Boltzmann's constant and W is the number of arrangements of the atoms or molecules.