let sequence $\{a_{n}\}$,such $$a_{n}=\displaystyle\sum_{i=1}^{n}i^k=1+2^k+3^k+\cdots+n^k$$where $k$ is real numbers,
show that:
there is exsit polynomial $f(x)$, such for any $n\in Z^{+}$,always have $f(n)=a_{n}\Longleftrightarrow k\in Z^{+}$
my try: if $k$ is positive integer,then $$a_{n}=1+2^k+3^k+\cdots+n^k$$ is postive integers,and is polynomial with degree $n$,so let $$f(x)=x^k+(x-1)^k+\cdots+2^k+1^k$$
But if for any $n\in Z^{+}$,then exsit the polynomial $f(x)$ have $f(n)=1^k+2^k+\cdots+n^k$
How prove $k$ is positive integers?
Thank you very much!
please @ Ivan Loh and so on help.because I think This is interesing problem!