Let a magic square (row, columns and diagonals total the same amount) by a 3 by 3 matrix with entries $abc\ def\ ghi$. Let the polynomials inside the ideal all equal zero. Let ideal be generated by the polynomials $$I=\langle a+b+c-d-e-f,a+b+c-g-h-i, d+e+f-g-h-i, a+d+g-b-e-h, a+d+g-c-f-i, a+e+i-c-e-g, b+e+h-c-f-i \rangle \subset \mathbb{Q}[a,\ldots ,i].$$ Show that if $F \in I$, then $F$ is zero on any magic square.
Then show that $$(100a+10b+c)^2+(100d+10e+f)^2+(100g+10h+i)^2-(100c+10b+a)^2-(100f+10e+d)^2-(100i+10h+g)^2 \in I.$$
For the first part I know F would be a linear combination of the generators, but how do I show it zero?
For the second part I need to show it a linear combination of the generators. How would Groebner bases help me here?
