Let $A,B \in \mathcal{M}_{n}(\mathbb{R})$ such that $$A^2+B^2=\sqrt{2+\sqrt{2}}\cdot AB$$ Knowing that $\det(AB-BA)>0$, prove that $n$ is multiple of $16$.
I know that for this type of problems, one usually uses some identities such as $$(A+iB)(A-iB)=c(AB-BA)$$ and its conjugate, where $c$ is a complex number and since $A,B$ are real matrices, their determinants will be positive real numbers. Since $\det(AB-BA)>0$, that will lead to $c^n=0$ and with the help of some trigonometry it would follow that $n$ is the multiple of something.
Here, however, I couldn't obatain the identity I described. That square root points, though, exactly to this method and some trigonometry.