The master theorem can be employed to solve recursive equations of the form
where a ≥ 1, b > 1, and f(n) is asymptotically positive.
The equation that you are trying to solve can't be solved effectively by using master theorem, Best to go with recursive tree method to get the optimal answer.