Mathematical Induction Exercises

Answer each problem. Show your answers to the GTA to get credit for today's recitation.

1. Prove by mathematical induction that for all integers .

2. Prove by mathematical induction

3. Prove by mathematical induction that the following program computes .

public int mult(int n, int m) {
  if (n == 1)
    return m;
  return m + mult(n-1, m);
}

4. Prove by mathematical induction that

5. What is the Big-O notation for the growth rate of the execution time for this algorithm?

for (int i = 0; i < n; i++)
  for (int j = 0; j < i; j++)
    for (int k = 0; k < i; k++)
      x = x * 42;
Recent changes RSS feed CC Attribution-Share Alike 3.0 Unported Driven by DokuWiki