Because of the format of the problem, you could use master theorem to find a generic solution for any given f(n). In the format T(n) = a*T(n/b) + c*f(n), we can assign k = logba such that:
If f(n) = omega(nk), T(n) = theta (f(n))
If f(n) = o(nk) then T(n) = theta(nk)
If f(n) = theta(nk) then T(n) = theta(f(n) * log n)