Problem 6. Find all positive integers d for which there exists a degree d polynomial P with real coefficients such that there are at most d different values among P (0) , P (1) , P (2) , . . . , P ( d2− d ).
Solution
We claim that the answer is

only which clearly work, now assume
. Firstly notice that if there are

distinct values then by lagrange interpolation the polynomial must be constant polynomial, and hence there will be exactly

distinct values each appearing

times while one value appearing

times, now notice that scaling has no effect on the statement of the problem, WLOG

,(because we have

equal values) so

for non-negative integers
. Let the other

sequences be

where

where

varies from

to

and let

then we have
, let
, and therefore we have

due to vieta's formulas and because

is monic polynomial. Now, again by vieta's we have

now the idea is to put

and then again compare and do bounding to get
.