Parse the minimum value of the required m as ⌊2k⌋!⌈2k⌉!+1 (where ⌈x⌉ and ⌊x⌋ represent the smallest integer not less than x and the largest integer not greater than x, respectively).
First, prove: m⩾⌊2k⌋!⌈2k⌉!+1.
In fact, suppose there exists a function f(x) that satisfies the condition, and let x1,⋯,xk be the k distinct integer roots of f(x)−m. We can write f(x)−m=(x−x1)⋯(x−xk)q(x),q(x)∈Z[x], thus
m=(f(x)−1)+1−(x−x1)⋯(x−xk)q(x).
Since f(x)−1 has an integer root, let α be its integer root, then
m=1−(α−x1)⋯(α−xk)q(α).
By m>1, we know −(α−x1)⋯(α−xk)q(α)>0, so the numbers α−x1,⋯,α−xk are k distinct non-zero integers, ∣(α−x1)⋯(α−xk)∣⩾⌊2k⌋!⌈2k⌉!. From (1), we know m⩾⌊2k⌋!⌈2k⌉!+1.
Next, prove: When m=⌈2k⌉!⌊2k⌋!+1, there exists a polynomial that meets the requirements.
When k is even, let k=2n, then m=(n!)2+1, let f(x)=(−1)n−1(x+1)⋯(x+n)(x−1)⋯(x−n)+m;
When k is odd, let k=2n+1, then m=n!(n+1)!+1, let f(x)=(−1)n(x+1)⋯(x+n)(x−1)⋯(x−(n+1))+m.