Derive a formula for the ratio of energy densities carried by the photons and by the gas in a star, assuming an ideal gas and photons with a Planck distribution. Estimate this ratio for the Sun using a representative interior temperature. From Table 2.2 most main sequence stars have an average density $\rho \sim 1 \mathrm{gcm}^{-3}$. Assuming this density, and that one can continue to treat the radiation and gas independently as above, at what temperature would the energy density of the radiation become equal to that of the gas?