How do you calculate the amount of iterations the following loop will have in terms of n?:
for (i = 1; i < n^3; i += n) {
}
I've gotten as far as: $$i=(x-1)n+1\ for\ current\ iteration=x$$ $$Total\ iterations=x\ when\ n(x-1)+1\geq n^3>n(x-2)+1$$