Artificial intelligent assistant

Quickest way to determine a polynomial with positive integer coefficients Suppose that you are given a polynomial $p(x)$ as a black box (i.e. some oracle, to which you feed $x$ and it returns $p(x)$). It is known that the coefficients of $p(x)$ are all positive integers. How do you determine what $p(x)$ is in the quickest way possible? (There are 2 metrics for quickness: the number of calls to the oracle and total number of operations. The relationship between the two is not given so we try to minimize both.)

Ask for $m=p(1)$. Then all coefficients of $p$ are $\le m$. Ask for $M=p(m+1)$. Expand $M$ in base $m+1$, done. \- That's two oracle queries and $\deg p$ integer div/mod operations

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 9a62eb3c2bcfdd6f22ffc6da60092c8a