Fermi gas is a system of fermions, so, most likely, you meant proton, not photon, since photons are bosons. The equation is