Docsity

Mathematical Induction Exercise: Proving Recurrence S(n) = ∑(j=1 to n) (n-1) * j / 3 - Pro, Assignments of Algorithms and Programming

Toggle sidebar
bg1
Exercise on Mathematical Induction Timothy Rolfe
DUE: Tuesday, 7 April 2008
Modified from Ian Parberry and William Gasarch, Problems in Algorithms; Second Edition
(2002), p. 8 (Section 2.1, Problem 5):
Prove by induction: S(n) =
n
j
nnn
jj
1
3
11
1
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
3
12
)1( nnn
nS
(1) Basis: S(0) = –1 · 0 · 1 / 3 = 0 / 3 = 0 Also, S(1) = 0 · 1 · 2 / 3 = 0 / 3 = 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).

Partial preview of the text

Download Mathematical Induction Exercise: Proving Recurrence S(n) = ∑(j=1 to n) (n-1) * j / 3 - Pro and more Assignments Algorithms and Programming in PDF only on Docsity!

Exercise on Mathematical Induction Timothy Rolfe

DUE: Tuesday, 7 April 2008 Modified from Ian Parberry and William Gasarch, Problems in Algorithms ; Second Edition (2002), p. 8 (Section 2.1, Problem 5):

Prove by induction: S(n) = ^ ^

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) = –1 · 0 · 1 / 3 = 0 / 3 = 0 Also, S(1) = 0 · 1 · 2 / 3 = 0 / 3 = 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 ).