Let \( A = \begin{bmatrix} \frac{1}{\sqrt{2}} & -2 \\ 0 & 1 \end{bmatrix} \) and \( P = \begin{bmatrix} \cos \theta & -\sin \theta \\ \sin \theta & \cos \theta \end{bmatrix}, \theta > 0. \) If \( B = P A P^T \), \( C = P^T B P \), and the sum of the diagonal elements of \( C \) is \( \frac{m}{n} \), where gcd(m, n) = 1, then \( m + n \) is:


In the first configuration (1) as shown in the figure, four identical charges \( q_0 \) are kept at the corners A, B, C and D of square of side length \( a \). In the second configuration (2), the same charges are shifted to mid points C, E, H, and F of the square. If \( K = \frac{1}{4\pi \epsilon_0} \), the difference between the potential energies of configuration (2) and (1) is given by: