The surface temperature of the sun is and it is at average distance d from a planet. The radius of the sun is R. The temperature at which planet radiates the energy is
r = Radius of planet
Energy received by planet =
Energy radiated by planet =
For thermal equilibrium,