CS 281 Solutions to Test II
April 7, 1998

1(a) tex2html_wrap_inline26
(b) tex2html_wrap_inline28 tex2html_wrap_inline30 .

2 (a) tex2html_wrap_inline32
(b) {( tex2html_wrap_inline34
(c) { tex2html_wrap_inline36 }
(d) {(3,1,5), (3,2,5), (7,1, 5), (7,2,5)}

3. tex2html_wrap_inline40
= tex2html_wrap_inline42

4. Let S be the set to be defined.
Basis Clause: tex2html_wrap_inline46
Inductive Clause: If tex2html_wrap_inline48 , then tex2html_wrap_inline50 .
Extremal Clause: Nothing is in S unless it is obtained from the above two clauses.

5(a) Procedure 2_Mod_3(x):
if x < 2, then return "No"
else if x = 2, then return "Yes"
else return 2_Mod_3(x-3).

(b) T is the set of positive integers congruent to 2 Modulo 3.