are you looking for just an example (very easy! choose $n = 16$ and $f(x) = x^2$) or some sort of characterization (not very easy!)?