
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

DUE: Tuesday, 16 January 2007 Suggested by Ian Parberry and William Gasarch, Problems in Algorithms ; Second Edition (2002), p. 8 (Section 2.1, Problem 4 — revised):
n j n n n 1 j^ j 3
This can be represented as the following recurrence: For n = 0, S(n) = 0 For n > 0, S(n) = S( n –1) + n ( n + 1 ) Note that
n n n S n (1) Basis: S(0) = 0 · 1 ·2 / 6 = 0 / 6 = 0 (2) Induction: Hint: You may find it convenient to drive your induction by assuming the formula for S( n -1 ) , and then proving S( n ).
n n n n n Substitute the inductive hypothesis
3 ( 1 ) n n n Factor out
n n 1
n n n Simplify — and QED Printed 2020-12 月-05 at 21: