Average power dissipated in an alternating RLC circuit Pavg=VrmsIrms cosϕ
where, Vrms and Irms is the rams values of voltage and current in the RLC circuit and cosϕ is the power factor of the circuit.
Also we know cosϕ=RZ
where R is the resistance and Z is the impedance of circuit.
And Vrms=IrmsZ
⟹ Pavg=I2rmsR