Find all integer polynomials $f(x)$ such that $f(n)\mid 2^n-1$ for all $n\in\mathbb{N}^+$.
So far, I have tried to plug in values of $n$, and see where that takes me. For example, plugging in $n=1$ shows that $f(1)\mid 1$, which means that $f(1)=-1,1$. Similarly, if $n=2$, $f(2)\mid 3\implies f(2)=-3,-1,1,3$ etc. In general, if $2^n-1$ is prime, $f(n)$ can only be $2^n-1, 1, -1, -2^n+1$. However, this isn't taking me anywhere, and I'm not sure what to do next. I have also tried to write $2^n$ as $2^0+2^1+2^2\cdots+2^{n-1}$, but this also doesn't do much.
Thanks in advance!