A simpler Master method for solving recurrences:

The recurrence T(n) = a.T(n/b) + nk (with T(1) = 1) has the following solution. In the following discussion, let c = logb a.

Case 1: If k < c, T(n) = Θ(nc).

Case 2: If k = c, T(n) = Θ(nk log n) = Θ(nc log n).

Case 3: If k>c, then T(n) = Θ(nk).