A capacitor of capacitance C has charge Q. It is connected to an identical capacitor through a resistance. The heat produced in the resistance is