interesting problem, need to make power(T, n) operations to reach the solution