As @Michael Rozenberg already said:
$$
a^4=a\cdot a^3=\sum_{i=1}^5\sum_{j=1}^5ij^5\cdot x_ix_j =\left(a^2\right)^2=\sum_{i=1}^5\sum_{j=1}^5i^3j^3\cdot x_ix_j
$$
Comparing the coefficients at $x_ix_j=x_jx_i$, we see that they are $ij^5+i^5j$ on the LHS and $2i^3j^3$ on the RHS, and we indeed have $ij^5+i^5j \ge 2i^3j^3 \Leftrightarrow j^4+i^4 \ge 2i^2j^2 \Leftrightarrow \left(i^2-j^2\right)^2\ge 0$. So, we have equality if and only if $i=j$. Therefore, to match the above equation, it must be
$$
x_ix_j=0 \text{ for all } i \ne j
$$
In other words: At most one of the variables can be non-zero (clearly, $x_1=x_2=x_3=x_4=x_5=0$ is a solution if and only if $a=0$). Now, if $k\in \{1,2,3,4,5\}$ with $x_k \ne 0$ and $kx_k=a$, $k^3x_k=a^2$ and $k^5x_k=a^3$, we see that $a=k^2$ and so $x_k=k$. Therefore, we have $6$ solutions in total:
$$\begin{align}
x &= (0,0,0,0,0) \text{ for } a=0\text{,}\\
x &= (1,0,0,0,0) \text{ for } a=1\text{,}\\
x &= (0,2,0,0,0) \text{ for } a=4\text{,}\\
x &= (0,0,3,0,0) \text{ for } a=9\text{,}\\
x &= (0,0,0,4,0) \text{ for } a=16\text{,}\\
\text{and }x &= (0,0,0,0,5) \text{ for } a=25\text{.}\\
\end{align}$$
$x_1 = x_3 = x_4 = x_5 = 0 \ x_1 = x_2 = x_4 = x_5 = 0 \ x_1 = x_2 = x_3 = x_5 = 0 \ x_2 = x_3 = x_4 = x_5 = 0$
– aco Jul 24 '20 at 11:13