A polynomial with integer coefficients is called "nice" if the coefficients in the terms whose degree is not a multiple of 3, are multiples of 3, and their sum is a multiple of 6. Clearly, the sum of nice polynomials is a nice polynomial, and the sum of cube-represented polynomials is a cube-represented polynomial. We shall prove the following lemma:
Lemma. A polynomial is cube-represented if and only if it is nice.
Consider the cube of a polynomial P(x) with integer coefficients, where:
P(x)=anxn+⋯+a1x+a0
After expanding, all terms of P3(x) are either of the form ai3x3i, or 3ai2ajx2i+j with i different from j, or of the form 6aiajakxi+j+k with i,j,k distinct.
We have 3∣2i+j if and only if 3∣2j+i, and ai2aj+aj2ai=aiaj(ai+aj) which is always an even number. From here, clearly a cube-represented polynomial has to be a nice polynomial, as defined above.
Second, consider a nice polynomial P(x). We will prove by induction on n that P(x) is cube-represented, with n being the integer such that the degree of P(x) does not exceed 3n, but is larger than 3n−3.
For the base case where n=1, P(x)=a3x3+3a2x2+3a1x+a0, where 2∣a1−a2.
We can write
P(x)=2a1+a2(x+1)3+2a1−a2(x−1)3+(a3−a1)x3+(a0−a2)13
which is obviously a cube-represented polynomial.
Assume the result is true for n−1. If P(x)=a3nx3n+3a3n−1x3n−1+3a3n−2x3n−2+Q(x) is nice, where the degree of Q(x) is at most 3n−3.
Then either a3n−1+a3n−2 is even and Q(x) is good, or a3n−1+a3n−2 is odd, and Q(x)−3x3n−4 is good.
In the first case
P(x)=2a3n−1+a3n−2(xn+xn−1)3+2a3n−2−a3n−1(xn−xn−1)3+(a3n−a3n−2)x3n+Q(x)−a2(xn−1)3
In the second case
P(x)=2a3n−1+a3n−2−1(xn+xn−1)3+2a3n−2−a3n−1−1(xn−xn−1)3+(xn+xn−2)3+(a3n−a3n−2)x3n+(Q(x)−3x3n−4)−a2x3n−3
so in both cases, we have P(x) is a nice polynomial. Our lemma has been proved.
Back to our problem,
1. With the lemma, we can easily verify that P(x)=3x2 is not a nice polynomial, so it cannot be a cube-represented polynomial.
2. We need to count the number of triples (a,b,c) which belong to the set {1,2,…,2017} such that P(x)=ax2+bx+c is cube-represented, that is, it's nice.
P(x) is nice if and only if a,b are multiples of 3 and a+b is a multiple of 2.
We have a,b∈{3,6,…,2016} and a+b is even, there are 3362 such pairs. Value c can be arbitrary, so the number of triples (a,b,c) is 2017⋅3362, which is the number of quadratic cube-represented polynomials satisfying the problem.