CS 281 Solutions to Test II
July 26, 1996


1 (a) Since tex2html_wrap_inline70 by Theorem 2.4.3. (h), by (k) tex2html_wrap_inline72 .
(b) tex2html_wrap_inline74 , { tex2html_wrap_inline74 }, {\1} {\ tex2html_wrap_inline74 } { tex2html_wrap_inline74 , {1}}, { tex2html_wrap_inline74 , { tex2html_wrap_inline74 }}, {\1}, { tex2html_wrap_inline74 } and the given set itself.

2 (a) tex2html_wrap_inline94
tex2html_wrap_inline96
tex2html_wrap_inline98
tex2html_wrap_inline100
--------
M
(b) tex2html_wrap_inline96
tex2html_wrap_inline98
--------
tex2html_wrap_inline108

tex2html_wrap_inline110
tex2html_wrap_inline108
--------
tex2html_wrap_inline114

tex2html_wrap_inline114
tex2html_wrap_inline100
--------
M

3 (a) Let T denote the set to be defined.
Basis: tex2html_wrap_inline124
Induction: If tex2html_wrap_inline126 , then tex2html_wrap_inline128 and tex2html_wrap_inline130 .
Extremal: Nothing is in T unless it is obtained by Basis and Induction.
(b) Procedure TEST(x)
Input: A number x
Output: "Yes" if tex2html_wrap_inline126 , else "No".

if ( -3 < x < 0 or 0 < x < 3)
return No;
else
if x = 0
return Yes.
else
if x > 0
return TEST(x -3).
else
return TEST(x +3).

4. Basis: If i = 0, LHS = tex2html_wrap_inline152 = 0. RHS = 0*1*1/6 = 0.
Hence LHS = RHS.
Induction: Assume that tex2html_wrap_inline160 = n(n+1)(2n+1)/6.
LHS for n = n+1 is
tex2html_wrap_inline166 = tex2html_wrap_inline168
= tex2html_wrap_inline170 by the assumption.
= (n+1)[n(2n+1) + 6(n+1)]/6 by factoring out (n+1) and taking the common denominator.
= tex2html_wrap_inline176
= (n+1)(n+2)(2n+3)/6
= (n+1)[(n+1)+1][2(n+1)+1]/6, which is RHS for n = n+1.




S. Toida
Thu May 29 10:47:01 EDT 1997