Question: I write:
\begin{align} \lambda_1 & = {\sqrt[3]{\frac{1}{2}\bigg(9 + i \sqrt{687}\bigg)}\above 1.5 pt 3^{2/3}} + {4 \above 1.5pt {\sqrt[3]{\frac{3}{2} \bigg (9 + i \sqrt{687}\bigg)}}}\\ \lambda_2 & = -{\bigg(1-i\sqrt{3}\bigg)\sqrt[3]{\frac{1}{2}\bigg(9 + i \sqrt{687}\bigg)}\above 1.5 pt 2\times 3^{2/3}} - {2(1+i\sqrt{3})\above 1.5pt {\sqrt[3]{\frac{3}{2} \bigg (9 + i \sqrt{687}\bigg)}}} \\ \lambda_3 & = -{\bigg(1+i\sqrt{3}\bigg)\sqrt[3]{\frac{1}{2}\bigg(9 + i \sqrt{687}\bigg)}\above 1.5 pt 2\times 3^{2/3}} - {2(1-i\sqrt{3})\above 1.5pt {\sqrt[3]{\frac{3}{2} \bigg (9 + i \sqrt{687}\bigg)}}}\\ \end{align} Is it obviously true that $$|\lambda_1|^2+|\lambda_2|^2+|\lambda_3|^2 =8$$ ?
This question is driven entirely by curiosity and fun. Unless I am missing the obvious it seems if you were to work this out by hand it would be demonstrably difficult ? Here is the origin of the problem and my attempted solution:
Let $A(n)$ be a finite square $n \times n$ matrix with entries $a_{i,j}=1$ if $i+j$ is a perfect power; otherwise equals to $0$. Let $\chi_{A(n)}(X)$ be the characteristic polynomial of $A(n)$. By the fundamental theorem of algebra $\chi_{A(n)}(X)$ has $n$ roots (=eigenvalues). Denote the $n$ eigenvalues by $\lambda_i$ with $1 \leq i \leq n$. Note $A(n)=A(n)^t$ where $^t$ is the matrix transpose and in particular $A(n)$ is a real symmetric matrix consequently it is normal. I bring Schur's Inequality into play:
$$\sum_{i=1}^n |\lambda_i|^2 = \sum_{i=1}^n \sum_{j=1}^n |a_{ij}|^2$$
Immediately this tells me that the number of $1$'s in $A(n)$ is completely determined by its eigenvalues. Now consider $A(6)$.
$$A(6)= \text{ }\begin{pmatrix} 0&0&1&0&0&0\\ 0&1&0&0&0&1\\ 1&0&0&0&1&1\\ 0&0&0&1&1&0\\ 0&0&1&1&0&0\\ 0&1&1&0&0&0\\ \end{pmatrix}$$
I have that $$\chi_{A(6)}(X)=X^6-2X^5-4X^4+8X^3+2X^2-4X-1$$ and that can be factored into $$(X^3-4X-1)(X^2-X-1)(X-1)$$ $A(6)$ has 6 eigenvalues which can be written (courtesy of WOLFRAM ALPHA)
\begin{align} \lambda_1 & = {\sqrt[3]{\frac{1}{2}\bigg(9 + i \sqrt{687}\bigg)}\above 1.5 pt 3^{2/3}} + {4 \above 1.5pt {\sqrt[3]{\frac{3}{2} \bigg (9 + i \sqrt{687}\bigg)}}}\\ \lambda_2 & = -{\bigg(1-i\sqrt{3}\bigg)\sqrt[3]{\frac{1}{2}\bigg(9 + i \sqrt{687}\bigg)}\above 1.5 pt 2\times 3^{2/3}} - {2(1+i\sqrt{3})\above 1.5pt {\sqrt[3]{\frac{3}{2} \bigg (9 + i \sqrt{687}\bigg)}}} \\ \lambda_3 & = -{\bigg(1+i\sqrt{3}\bigg)\sqrt[3]{\frac{1}{2}\bigg(9 + i \sqrt{687}\bigg)}\above 1.5 pt 2\times 3^{2/3}} - {2(1-i\sqrt{3})\above 1.5pt {\sqrt[3]{\frac{3}{2} \bigg (9 + i \sqrt{687}\bigg)}}}\\ \lambda_4 & = -{1\above 1.5 pt \phi}\\ \lambda_5 & = \phi\\ \lambda_6 & = 1 \end{align}
where $\phi= {1+ \sqrt{5}\above 1.5pt 2}$ and is called the golden ratio. Note $\sum_{j=1}^6 a_{ij}=12$ and according to our first equation I can write
$$1+|\lambda_1|^2+|\lambda_2|^2+|\lambda_3|^2+ |-{1\above 1.5 pt \phi}|^2 +|\phi|^2 =12$$
I can show that
$$|-{1\above 1.5 pt \phi}|^2 +|\phi|^2=3$$
Cancelling out terms and regrouping yields
$$|\lambda_1|^2+|\lambda_2|^2+|\lambda_3|^2 =8$$
and we are done.
Outside of hand calculations which I am too lazy to do to I am not aware of any other approach that will obviously and for that matter quickly show the sum equals $8$.
Let's assume we have never seen the polynomial $x^3 - 4x - 1$ before. We can compute the value of $|\lambda_1|^2 + |\lambda_2|^2 + |\lambda_3|^2$ in following manner.
Let $a = \sqrt[3]{\frac32(9+i\sqrt{687})}$ and $\omega = e^{2\pi/3 i}$, a primitive cubic root of unity. We have $$\lambda_1 = \frac{a}{3} + \frac{4}{a},\quad \lambda_2 = \frac{a}{3}\omega + \frac{4}{a}\omega^2,\quad \lambda_3 = \frac{a}{3}\omega^2 + \frac{4}{a}\omega^4$$ This can be summarized as $$\lambda_k = \frac{a}{3} \omega^{k-1} + \frac{4}{a}\omega^{2(k-1)}\tag{*1}$$ This leads to $$|\lambda_1|^2 + |\lambda_2|^2 + |\lambda_3|^2 = \sum_{k=1}^3 \lambda_k \bar{\lambda}_k = \sum_{k=1}^3 \left(\frac{a}{3} + \frac{4}{a}\omega^{k-1}\right)\left( \frac{\bar{a}}{3} + \frac{4}{\bar{a}}\omega^{-(k-1)}\right)$$
Using the fact $\sum_{k=1}^3 \omega^{\ell(k-1)} = \begin{cases}3, & \ell \equiv 0 \pmod 3\\0, & \ell \not\equiv 0\pmod 3\end{cases}$, we can simplify above as $$|\lambda_1|^2 + |\lambda_2|^2 + |\lambda_3|^2 = 3 \left(\left|\frac{a}{3}\right|^2 + \left|\frac{4}{a}\right|^2\right)\tag{*2}$$
Since $|a|^2 = \sqrt[3]{\frac{3^2}{2^2}(9^2 + 687)} = \sqrt[3]{1728} = 12$, we find
$$|\lambda_1|^2 + |\lambda_2|^2 + |\lambda_3|^2 = 3 \left(\frac{12}{3^2} + \frac{4^2}{12}\right) = 8$$
In above computation, the critical piece is the representation of $(\lambda_1,\lambda_2,\lambda_3)$ in $(*1)$.
We can view triplet $(\lambda_1, \lambda_2, \lambda_3)$ as a DFT (discrete fourier transform) of the triplet $\left( 0, \frac{a}{3}, \frac{4}{a}\right)$. Equality $(*2)$ is the result when one apply Plancherel theorem to this particular DFT. That's the underlying reason why $|\lambda_1|^2 + |\lambda_2|^2 + |\lambda_3|^2$ has such a simple expression in $|a|^2$.