In a series LR circuit XL = R and power factor of the circuit is P1. When capacitor with capacitance C such that XL = XC is put in series, the power factor becomes P2. The ratio \(\frac{P_1}{P_2}\) is
(A) \(\frac 12\)
(B) \(\frac 1{\sqrt 2}\)
(C) \(\frac{\sqrt3}{\sqrt 2}\)
(D) 2:1