Problem

Source: Bulgarian Autumn Tournament 2023, 10.3

Tags: number theory



Find all positive integers $k$, so that there exists a polynomial $f(x)$ with rational coefficients, such that for all sufficiently large $n$, $$f(n)=\text{lcm}(n+1, n+2, \ldots, n+k).$$