The process is similar to finding an antiderivative. The "derivative" is a polynomial of degree 2. So you should be looking for an "antiderivative" as a polynomial of degree 3. So assumef(n) = an3 + bn2 + cn + d.
Substitute this f into your equation. This will lead to a system of linear equations in a, b, c. Obviously, d is arbitrary.