A semi classical fundamental equation of quantum gravitation is applied to a flat Friedmann universe containing a photon gas. The mean energy of a photon is determined by the method of canonical partition and the classical one-particle state function for the ideal photon gas. For very high temperatures, there is a deviation from the classical equipartition theorem