(a) r = 0; for i in the range [1, n] { for j in the range [i, n] for k in the range [1, j-i] r++;
print(r);
(b) x = Math.pow(2, n); for (i = 1; i <= x; i = i*2) for j in the range [1, i] Constant Number of Operations
(c) i = n; while i >= 1; for j in the range [i, i] Constant Number of Operations; i = i/2