Skip to main content
2 of 4
added 133 characters in body
emiliocba
  • 2.4k
  • 19
  • 26

How many solutions are there to $\sum_{i=1}^3 x_i^2+x_iy_i+y_i^2=k$?

Let $k$ be a positive integer. Let $$Q= \begin{pmatrix} 1 &1/2& & & & \\ 1/2& 1 & & & & \\ & & 1 &1/2& & \\ & &1/2& 1 & & \\ & & & & 1 &1/2\\ & & & &1/2& 1 \end{pmatrix}. $$

How many solution $x\in\mathbb Z^6$ are there to $\quad x^tQx=k$?

This is equivalent to:

How many solution $x\in\mathbb Z^6$ are there to $$x_1^2+x_1x_2+x_2^2+ x_3^2+x_3x_4+x_4^2+ x_5^2+x_5x_6+x_6^2=k?$$

or to

How many solution $x\in \mathbb Z\left[\omega \right]^3$ are there to $\quad x^* I_3 x=k$?

where $I_3$ is the $3\times3$-identity matrix and $\omega=\frac{1+\sqrt{-3}}{2}$.

I know that there is a formula for this number (there is only one class in its genus), but I don't know it.

This question is related to

but they don't answer my question.

emiliocba
  • 2.4k
  • 19
  • 26