I'm reading Barbeau's Polynomials.
Let $m$ be a positive integer. It is a remarkable fact that the numbers from $1$ to $2^{m+1}$ inclusive can be subdivided into two subsets $A$ and $B$ such that, for any polynomial $p(t)$ of degree not exceeding $m$, the sum of the values of the values of the polynomials over the numbers in $A$ is equal to the sum of the values over the numbers in $B$. Show that we can reduce the problem to finding sets $A$ and $B$ for which the sum of the $k$th powers of the numbers in one set is equal to the sum of the $k$th powers for the other, for $k=0,1,2,...,m$.
I'm trying to check the information given in the exercise empiricaly on Mathematica, I've created a polynomial function $f(x)=gx^2+bx+c$ and I've partitioned the set of numbers from $1$ to $2^{3+1}$ this way:
$\{2, 3, 8, 9, 10, 11, 12, 13\}$
$\{14, 6, 16, 4, 15, 5, 7, 1\}$
Now I'm trying to sum the values of the polynomial over the values on $A$ and $B$ and I'm obtaining:
$68 b + 8 c + 692 g$
$68 b + 8 c + 804 g$
I've used a polynomial of degree $>3$ and I'm not obtaining the desired result. What am I doing wrong?