Let $f(x)\in\mathbb Z[x]$ and integer $k>1$ such that $f(n)$ is a perfect $k$-th power for every positive integer $n$. Is it true that there is a $g(x)\in\mathbb Z[x]$ such that $f(x)=\left(g(x)\right)^k$ ?
If not , then does the stronger assumption , $f(n)$ is a perfect $k$-th power for every integer $n$ implies there is a $g(x)\in\mathbb Z[x]$ such that $f(x)=\left(g(x)\right)^k$ ?
Please help , thanks in advance .
Perhaps there exist a simpler answer.(I think that what follows is in Polya-Szego, but I am not sure).
We work first in $\mathbb{Q}[x]$.
1) Suppose first that we have $f(x)=c^k x^{mk}+\cdots$. Define $\displaystyle h_1(x)=\frac{f(x)}{c^k x^{mk}}=1+\frac{a_1}{x}+\cdots+\frac{a_{mk}}{x^{mk}}$. We have that all $a_k$ are in $\mathbb{Q}$.
Put now $\displaystyle h(x)=\sqrt[k]{h_1(x)}=1+\frac{b_1}{x}+\cdots+\frac{b_{j}}{x^{j}}+\cdots$. $h(x)$ is a power series in the powers of $1/x$, again with coefficients in $\mathbb{Q}$, converging for large $|x|$.
Put $$g(x)=cx^{m}h(x)=\sum_{j=0}^{m}cb_jx^{m-j}+\sum_{j\geq m+1}\frac{cb_j}{x^{j-m}}=P(x)+Q(x)$$
Note that $Q(x)\to 0$ if $|x|\to +\infty$.
Now let $x=n$ a large integer. As $f(n)=g(n)^k$ and $g(n)\in\mathbb{R}$, we get that $g(n)\in \mathbb{Z}$. Let $d$ in $\mathbb{N}$ such that $dP(x)\in \mathbb{Z}[x]$. We have hence $dg(n)=dP(n)+dQ(n)$, hence $dQ(n)\in \mathbb{Z}$. If $n$ is sufficiently large, we have $d|Q(n)|<1$, hence $Q(n)=0$ and $g(n)=P(n)$. We have $f(n)=(P(n))^k$ for large $n$, and hence $f(x)=(P(x))^k$.
2) Now we suppose only that $f(x)=c x^m+\cdots$. Choose $q_1,\cdots, q_k$ large integers such that for all $i$ $f(x+q_i)$ is prime (in $\mathbb{Q}[x]$) to $\prod _{j\not =i}f(x+q_j)$. Then $f_1(x)=\prod f(x+q_i)$ verify the hypothesis, and is of the form $f_1(x)=c^kx^{mk}+\cdots$. By the above, $f_1$ is the $k$-th power of a polynomial. Then each $f(x+q_j)$ is also, up to a constant, of the same form. Hence there exists a constant $d$, and a polynomial $H$, such that $f(x)=d(H(x))^k$. Taking for $x$ an integer such that $H(x)\not =0$, the hypothesis show that $d$ is the $k$-th power of a rational, and finally, we can write $f(x)=(P(x))^k$, with $P\in \mathbb{Q}[x]$.
3) It remain to show that $P\in \mathbb{Z}[x]$. There exists $d\in \mathbb{N}$ such that $dP(x)=\sum c_j x^j=P_1(x)$, with the $c_j \in \mathbb{Z}$ relatively prime. The equality $d^kf(x)=(P_1(x))^k$ show that $d=1$, and we are done.