Sample term test
( \newcommand{\kernel}{\mathrm{null}\,}\)
These mock exams are provided to help you prepare for Term/Final tests. The best way to use these practice tests is to try the problems as if you were taking the test. Please don't look at the solution until you have attempted the question(s). Only reading through the answers or studying them, will typically not be helpful in preparing since it is too easy to convince yourself that you understand them.
For a,b∈Z, define an operation ⊗, by a⊗b=(a+b)(a+b). Determine whether ⊗ on Z.
- is closed,
- is commutative,
- is associative, and
- has an identity.
- Answer
-
-
is closed,
Proof:
Let a,b∈Z.
Then a⊗b=(a+b)(a+b)=a2+2ab+b2.
Since · is commutative on Z,a2,2ab,b2∈Z. Thus a2+2ab+b2∈Z.
Hence,a⊗b∈Z.
Thus, the binary operation is closed on Z. ⬜
-
is commutative,
Proof:
Let a,b∈Z.
Then a⊗b=(a+b)(a+b)=a2+2ab+b2( since · is commutative onZ)=b2+2ba+a2( since ·, + are commutative on Z)=(b+a)(b+a).
Thus a⊗b=b⊗a.
Thus, the binary operation is commutative on Z. ⬜
3. is not associative,
Counterexample:
Choose a=2,b=3,c=4.
Then consider, (a⊗b)⊗c=[(2+3)(2+3)]⊗4=25⊗4=(25+4)(25+4)=841.
Now consider a⊗(b⊗c)=2⊗[(3+4)(3+4)]=2⊗49=(2+49)(2+49)=2601.
Since 841≠2601, the binary operation is not associative on Z. ⬜
4. Does not have an identity.
Proof by Contradiction:
Let e be the identity on (Z, ).
Then a⊗e=e⊗a=a,a∈Z.
Now, a=e⊗a.
=(e+a)(e+a).
=e(e+a)+a(e+a), since · is associative on Z
=e2+ea+ae+a2
a=e2+2ae+a2,a∈Z., since · is commutative onZ.
Then choose a=0.
Thus,e2=0⟹e=0.
Hence a2=a, for all a∈Z
This is a contradiction.
Now choose, e≠0 then it won't work for a=0.
Thus, (Z, \otimes) has no identity.⬜
-
For a,b∈Z,, the ominus of b from a is defined by a⊖b=ab+a−b. The oplus of a by b is defined by a⊕b=a+b+ab. The oslash of a by b is defined by a⊘b=(a+b)(a−b). Answer the following:
(a) Determine whether ⊘ is distributive over ⊕.
(b) Determine whether ⊘ is distributive over ⊖.
- Answer
-
(a)
Counter Example:
Choose a=2,b=3, and c=4.
Consider 2⊘(3⊕4)=2⊘(3+4+(3)(4))=2⊘19=(2+19)(2−19)=357.
Now consider (2⊘3)⊕(2⊘4)=[(2+3)(2−3)]⊕[(2+4)(2−4)]=(−5)⊕(−12)=(−5)+(−12)+[(−5)(−12)]=41.
Since 357≠41,⊘ is not distributive over ⊕.
(b)
Counter Example:
Choose a=2,b=3, and c=4.
Consider 2⊘(3⊖4)=2⊘[(3)(4)+3−4]=2⊘11=(2+11)(2−11)=117.
Next consider, (2⊘3)⊖(2⊘4)=[(2+3)(2−3)]⊖[(2+4)(2−4)]=(−5)⊖(−12)=(−5)(−12)+(−5)−(−12)=67.
Since 117≠67,⊘ is not distributive over ⊖.
Let m∈Z+. Let a,b∈Z, define the relation aRb iff m∣(a−b).
1. Determine whether the relation is
a) reflexive,
b) symmetric
c) antisymmetric
d) transitive.
2. If R is an equivalence relation, describe the equivalence classes of Z.
- Answer
-
(a) is reflexive,
Proof:
Let m∈Z+.
Let a∈Z.
Since a−a=0=m(0),m∣(a−a).
Hence, aRa. Thus R is reflexive.◻
(b) is symmetric,
Proof:
Let a,b∈Z, such that aRb. Thus m∣(a−b).
We shall show that bRa.
Since m∣(a−b),a−b=m(k),k∈Z.
Now,(b−a)=m(−k),−k∈Z.
Thus,m∣(b−a)⟹bRa., therefore, R is symmetric on Z.◻
(c) is antisymmetric,
Counter Example:
We shall show that m | (a - b) and m | (b - a) but a ≠ b.
Choose m = 2, a = 5 and b = 7.
Then 2 | (5 - 7) since -2 = 2(-1) and 2 | (7 - 5) since 2 = 2(1).
But, 5 ≠ 7, thus m | (a - b) is not antisymmetric on ℤ.◻
(d) is transitive.
Proof:
Let a, b, c, m ∈ ℤ+ s.t. m | (a - b) and m | (b - c).
We shall show that m | (a - c).
Since m | (a - b), (a - b) = m(k1), k1 ∈ ℤ.
Since m | (b - c), (b - c) = m(k2), k2 ∈ ℤ.
Now consider (a - b) + ( b - c) = mk1 + mk2.
Thus (a - c) = m(k1 + k2), k1 + k2 ∈ ℤ.
Hence m | (a - c), thus a R c, therefore R is transitive on ℤ.◻
Find the remainder
(a) when 201×203×207×209 is divided by 13.
(b) when 73453 is divided by 8.
- Answer
-
(a) 201 ≡ 6 (mod 13), 203 ≡ 8 (mod 13), 207 ≡ 12 (mod 13), 209 ≡ 1 (mod 13)
6*8*12*1 = 48*12*1 ≡ 9*12*1 (mod 13)
9*12 = 108 ≡ 4 (mod 13)
(b)
71=7 (mod 8) Since 1453 is odd, 71453 ≡ 7 (mod 8)
72=1 (mod 8)
73=7 (mod 8)
74=1 (mod 8)
(a) Let a and b be positive integers such that 7|(a+2b+5) and 7|(b-9). Prove that 7|(a+b).
(b) Let a,b∈Z+. If a|b, is it necessarily true that a3|b4?
- Answer
-
a) Let a, b ∈ ℤ_+ such that 7|(a+2b+5), and 7|(b-9),
Then 7|((a+2b+5)+(b-9), 7|(a+3b-4)
If 7|(a+b) then 7|(a+3b-4)-(a+b)), 7|(2b-4)
7|(a+b), such that a=7x+5, b=7x+9
7|(a+2b+5) 7|(b-9) 7|(a+b)
=>7|(7x+5 + 2(7x+9) +5) =>7|(7x+9-9) =>7|(7x+5+7x+9)
=>7|(21x + 28) =>7|(7x) =>7|(14x+14)
(Do not use equal sign for relations!!!!!!)
b) Proof:
Let a,b ∈ ℤ+ s.t. a | b.
Since a | b, ∃ k ∈ ℤ+ such that b=a(k).
Now consider b4 = (a(k))4,
= a3(ak4).
Since ak4 ∈ ℤ+, a3 | b4.◻