Let us call $A$ the following matrix $$ A= \frac13\begin{bmatrix}7 & 2 & -4\\2 & 4 & -2\\-4 & -2 & 7 \end{bmatrix}$$
Is it possible to write $B$ as a polynomial of $A$ ?
The first part of the question is based on the fact that $A$ is diagonizable with all positive eigenvalues (4, 1 and 1). I have no clue how to do the second part, I think it could somehow use the spectral decomposition but I'm not sure. Any help would be appreciated.