Equilateral $\triangle ABC$ has side length $\sqrt{111}$. There are four distinct triangles $AD_1E_1$, $AD_1E_2$, $AD_2E_3$, and $AD_2E_4$, each congruent to $\triangle ABC$, with $BD_1 = BD_2 = \sqrt{11}$. Find $\sum_{k=1}^4(CE_k)^2$.
$D$ is on the circle about $A$ of radius $\sqrt{111}$ with $BD=\sqrt{11}$, so $\angle BAD=\pm\varphi$ with $\cos\varphi=\frac{111+111-11}{222}=\frac{211}{222}$. Each $E$ is $D$ rotated by $\pm60^\circ$ about $A$.
$CE^2=222-222\cos\angle EAC$. The four angles $\angle EAC$ are $\varphi$, $|\varphi-120^\circ|$, $\varphi$, $\varphi+120^\circ$, whose cosines add to $2\cos\varphi-\cos\varphi=\cos\varphi$.
$\sum CE_k^2=888-222\cdot\frac{211}{222}=677$. The answer is $\boxed{677}$.
Equilateral $\triangle ABC$ has side length $\sqrt{101}$. There are four distinct triangles $AD_1E_1$, $AD_1E_2$, $AD_2E_3$, and $AD_2E_4$, each congruent to $\triangle ABC$, with $BD_1 = BD_2 = \sqrt{7}$. Find $\sum_{k=1}^4(CE_k)^2$.