Unmasking the Polynomial in Two Queries

Mira commits to a secret polynomial p(x)p(x) of unknown degree whose coefficients are all nonnegative integers. You may request the exact value of pp at two points of your choosing, and your second point may depend on the first answer. Give a strategy that always determines every coefficient exactly — no matter the degree.

Answer

Free accounts unlock one worked solution a day. Pro includes every answer.