So this problem is pretty nasty. I can easily find the number of iterations for each nested while loop. The first runs log_9(n) times and the second runs log_4(n) times. My problem that I do not know how to address is the initialization of i = n. I'm quite lost on this part so anything helps!
function p(n)
i = n;
while i < 5n^3 do
x = 7n^2;
while x < 6
x = x/9;
end
i = 4i;
end
i=n
yourself. – D.W. Oct 19 '15 at 06:37