Docsity

MATH10101 Second Half Exam Solutions: Problems 3 and 8, Exams of Number Theory

Toggle sidebar
bg1
MATH10101 Second Half, Exam 2011-12
Feedback
A3 Find a solution in integers to
9131x+ 8648y= 69.
Solution A3
9131 = 8648 + 483
8648 = 17 ร—483 + 437
483 = 437 + 46
437 = 9 ร—46 + 23
46 = 2 ร—23.
So the gcd (9131,8648) = 23 and since 23|69 our equation has solutions.
23 = 437 โˆ’9ร—46
= 437 โˆ’9ร—(483 โˆ’437)
= 10 ร—437 โˆ’9ร—483
= 10 ร—(8648 โˆ’17 ร—483) โˆ’9ร—483
= 10 ร—8648 โˆ’179 ร—483
= 10 ร—8648 โˆ’179 ร—(9131 โˆ’8648)
= 189 ร—8648 โˆ’179 ร—9131.
Multiply by 3 to see that a solution is x=โˆ’537, y = 567.
Example as found in notes and on Example Sheet [6marks]
Comments for A3 :
You should have checked your answers!
Wrong answers which the student had not checked and told me they had
done so, could only obtain at most 2 marks, for getting the correct greatest
common divisor of 23.
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download MATH10101 Second Half Exam Solutions: Problems 3 and 8 and more Exams Number Theory in PDF only on Docsity!

MATH10101 Second Half, Exam 2011-

Feedback

A3 Find a solution in integers to

9131 x + 8648y = 69.

Solution A

8648 = 17 ร— 483 + 437

437 = 9 ร— 46 + 23

46 = 2 ร— 23.

So the gcd (9131, 8648) = 23 and since 23|69 our equation has solutions.

23 = 437 โˆ’ 9 ร— 46 = 437 โˆ’ 9 ร— (483 โˆ’ 437) = 10 ร— 437 โˆ’ 9 ร— 483 = 10 ร— (8648 โˆ’ 17 ร— 483) โˆ’ 9 ร— 483 = 10 ร— 8648 โˆ’ 179 ร— 483 = 10 ร— 8648 โˆ’ 179 ร— (9131 โˆ’ 8648) = 189 ร— 8648 โˆ’ 179 ร— 9131.

Multiply by 3 to see that a solution is x = โˆ’ 537 , y = 567. Example as found in notes and on Example Sheet [ 6 marks]

Comments for A3 :

You should have checked your answers!

Wrong answers which the student had not checked and told me they had done so, could only obtain at most 2 marks, for getting the correct greatest common divisor of 23.

You should tell me your answer, in the form x = โˆ’ 537 , y = 567 or (x, y) = (โˆ’ 537 , 567). Donโ€™t leave your answer in the form 567ร— 8648 โˆ’ 537 ร—9131 = 69 and expect me to search out your answer. I donโ€™t have enough time.

You were not asked to find the general solution, but other correct solu- tions that I saw in the scripts included

(x, y) = (โˆ’ 161 , 170) (x, y) = (215, โˆ’227) (x, y) = (591, โˆ’624).

A5 Prove that 7 does not divide 2 + a + a^2 + a^3 for any integer a.

Solution A5 We have to show that 2 + a + a^2 + a^3 is not congruent to

0 mod 7, and thus we need only consider a mod 7.

a a mod 7 a^2 mod 7 a^3 mod 7 2 + a + a^2 + a^3 mod 7 0 0 0 0 2 1 1 1 1 5 2 2 4 1 2 3 3 2 โˆ’ 1 โˆ’ 1 4 โˆ’ 3 2 1 2 5 โˆ’ 2 4 โˆ’ 1 3 6 โˆ’ 1 1 โˆ’ 1 1

Since there is no zero in the last column we see that 2 + a + a^2 + a^3 is never divisible by 0. Example as found on Example Sheet [ 6 marks]

B8 i) a) Let A be a set with |A| = n. Define what is meant by Pr (A) and the Binomial number

(n r

b) Assume A 6 = ฯ† and choose a โˆˆ A. Construct a map from Pr (A) to Prโˆ’ 1 (A \ {a}) โˆช Pr (A \ {a}), checking that the image of this map lies in the union.

c) Assuming that the map given in part b is a bijection deduce that for n โ‰ฅ (^1) ( n r

n โˆ’ 1 r

n โˆ’ 1 r โˆ’ 1

for 1 โ‰ค r โ‰ค n.

ii) Use Pascalโ€™s triangle to a) expand (x + y)^7 for real x, y โˆˆ R, b) show that n^7 โˆ’ (n โˆ’ 1)^7 โ‰ก 1 mod 7 for all n โˆˆ Z.

iii) State a formula for

(n r

in terms of factorials and use this to show that

( 3 n 3

n 1

n 1

n 2

n 3

for all n โ‰ฅ 1.

Solution B8 i) a) Pr (A) is the collection of subsets of A of cardinality r,

and (^) ( n r

= |Pr (A)|.

Definitions [ 2 marks] b)

Pr (A) โ†’ Prโˆ’ 1 (A \ {a}) โˆช Pr (A \ {a})

C 7 โ†’

C if a /โˆˆ C, C \ {a} if a โˆˆ C.

If a /โˆˆ C then C โІ A{a} so C โˆˆ Pr (A \ {a}). If a โˆˆ C then |C \ {a}| = rโˆ’ 1 so C \ {a} โˆˆ Prโˆ’ 1 (A \ {a}). Proof in notes [ 4 marks]

Commonly seen mistakes in Question B

i) a) I was generous and accepted

(n r

= n!/r! (n โˆ’ r)! even though this is not the definition of the binomial number in MATH10101.

c) I needed to see the words bijection, so the sets are of the same car- dinality and disjoint, so the cardinality of the union equals the sum of the cardinalities of each set.

Note also that the question tells you to use the map found in part b). Some students tried to use

(n r

= n!/r! (n โˆ’ r)! to prove

(n r

(nโˆ’ 1 rโˆ’ 1

(nโˆ’ 1 r

but, if you look in the notes you will find that

(n r

(nโˆ’ 1 rโˆ’ 1

(nโˆ’ 1 r

was used to

prove

(n r

= n!/r! (n โˆ’ r)! Thus I did not allow the use of

(n r

= n!/r! (n โˆ’ r)!.

Always follow the question!

ii) Most students gave the following argument

n^7 โˆ’ (n โˆ’ 1)^7 = n^7 โˆ’

n^7 โˆ’ 7 n^6 + 21n^5 โˆ’ 35 n^4 + 35n^3 โˆ’ 21 n^2 + 7n โˆ’ 1

= 7 n^6 โˆ’ 21 n^5 + 35n^4 โˆ’ 35 n^3 + 21n^2 โˆ’ 7 n + 1 = 7

n^6 โˆ’ 3 n^5 + 5n^4 โˆ’ 5 n^3 + 3n^2 โˆ’ n

โ‰ก 1 mod 7.

And other students gave a table

n n^7 (n โˆ’ 1)^7 n^7 โˆ’ (n โˆ’ 1)^7 mod 7 0 0 โˆ’ 1 1 1 1 1 0 1 1 2 128 1 127 1 3 2187 128 2059 1 4 16384 2187 14197 1 5 78125 16384 61741 1 6 279936 78125 201811 1

iii) In more detail, using the factorial form for the binomial number, which the question tells us we can here, ( 3 n 3

(3n)! 3! (3n โˆ’ 3)!

3 n (3n โˆ’ 1) (3n โˆ’ 2) (3n โˆ’ 3)! 3! (3n โˆ’ 3)!

3 n (3n โˆ’ 1) (3n โˆ’ 2) 6

n (3n โˆ’ 1) (3n โˆ’ 2) 2

On the other hand

n 1

n 1

n 2

n 3

= n^3 + 3 ร— 2 ร— n ร—

n (n โˆ’ 1) 2

+ 3 ร—

n (n โˆ’ 1) (n โˆ’ 2) 3!

= n^3 + 3n^2 (n โˆ’ 1) +

n (n โˆ’ 1) (n โˆ’ 2) 2

=

2 n^3 + 6n^3 โˆ’ 6 n^2 + n^3 โˆ’ 3 n^2 + 2n

9 n^3 โˆ’ 9 n^2 + 2n 2

n (3n โˆ’ 1) (3n โˆ’ 2) 2

Many students had problems cancelling the factorials as in

(3n)! (3n โˆ’ 3)!

= 3n (3n โˆ’ 1) (3n โˆ’ 2).

Note that each side of the result you are asked to prove represents a way of counting the number of subsets of cardinality 3 from a union of three sets of cardinality n.

iii) Fermatโ€™s Little Theorem states that for prime p, and integer a with gcd (p, a) = 1 then apโˆ’^1 โ‰ก 1 mod p. Seen in lectures [ 1 mark] Since 820 โ‰ก 4 mod 17, 549 โ‰ก 5 mod 17, 550 โ‰ก 6 mod 16 and 279 โ‰ก 7 mod 16 then

820550 โ‰ก 4550 =

46 โ‰ก 46 = 4096 โ‰ก 16 mod 7.

Next 549279 โ‰ก 5279 =

57 โ‰ก 57 = 78125 โ‰ก 10 mod 7.

Hence 820550549279 โ‰ก 16 ร— 10 โ‰ก 7 mod 17. Similarly 550 โ‰ก 6 mod 17, 279 โ‰ก 7 mod 17, 820 โ‰ก 4 mod 16 and 549 โ‰ก 5 mod 16. Then

550820 โ‰ก 6820 =

64 โ‰ก 64 = 1296 โ‰ก 4 mod 17.

Also 279549 โ‰ก 7549 =

75 โ‰ก 75 = 16807 โ‰ก 11 mod 17.

Therefore 550820279549 โ‰ก 4 ร— 11 โ‰ก 10 mod 17. Because 7 + 10 โ‰ก 0 mod 17 the required result follows. Example as found in Problem Sheet [ 4 marks]

Commonly seen mistakes in Question B

i) N = p 1 p 2 ...pn + 1 with the first n primes is not necessarily prime, though it is sometimes. For example 2 ร— 3 ร— 5 + 1 = 31 is prime while 2 ร— 3 ร— 5 ร— 7 ร— 11 ร— 13 + 1 = 30031 = 59 ร— 509 is not prime. But in both cases we have found primes not in the original list, namely 31 in the first example and 59 and 509 in the second.

ii) a) You are asked to prove

โ€œif a โˆˆ Z and p is prime with p - a then gcd (p, a) = 1โ€,

which is of the form P โ‡’ Q with propositions P = โ€œa โˆˆ Z and p is prime with p - aโ€ and Q = โ€œ gcd (p, a) = 1โ€. To use proof by contradiction you need to negate the required result, and by using truth tables it is seen that the negation of P โ‡’ Q is โ€œP and not Qโ€. So the proof starts assuming

โ€œa โˆˆ Z and p is prime with p - a and gcd (p, a) 6 = 1โ€.

Many students started incorrectly by assuming

โ€œa โˆˆ Z and p is prime with p|a and gcd (p, a) = 1.โ€

An alternative proof not using contradiction can be given. Recall

gcd (p, a) = max (D (p) โˆฉ D (a)).

Since p is prime we have D (p) = {โˆ’p, โˆ’ 1 , 1 , p}, so

D (p) โˆฉ D (a) โІ D (p) = {โˆ’p, โˆ’ 1 , 1 , p}.

But p - a so p, โˆ’p /โˆˆ D (p) โˆฉ D (a) and thus D (p) โˆฉ D (a) โІ {โˆ’ 1 , 1 }. Trivially 1 , โˆ’ 1 |a and so D (p) โˆฉ D (a) = {โˆ’ 1 , 1 }. Hence

gcd (p, a) = max (D (p) โˆฉ D (a)) = max ({โˆ’ 1 , 1 }) = 1.

ii) b) Some students attempted to give a proof of โ€œif a, b โˆˆ Z, p is prime and p|ab then either p|a or p|bโ€ by contradiction. This is possible.

Again the result is of the form P โ‡’ Q, this time with propositions P = โ€œa, b โˆˆ Z, p is prime and p|abโ€ and Q = โ€œeither p|a or p|bโ€. So a proof by contradiction starts with assuming the negation of P โ‡’ Q namely โ€œP and not Qโ€. But what is โ€œnot Qโ€?

B10 i) Suppose that โˆ— is a binary operation on a non-empty set G. Explain what is meant by

โˆ— is associative โˆ— is commutative e โˆˆ G is an identity of G.

ii) Explain what is meant by saying that (G, โˆ—) is a group. Prove that in a group (G, โˆ—) a) the identity is unique b) the inverse of each element is unique c) โˆ€x, y โˆˆ G : (x โˆ— y)โˆ’^1 = yโˆ’^1 โˆ— xโˆ’^1.

iii) Let S = {[3] 21 , [6] 21 , [9] 21 , [12] 21 , [15] 21 , [18] 21 }. a) By trial and error find an [x] 21 โˆˆ S for which [3] 21 [x] 21 = [3] 21. b) Show that the [x] 21 found in part a is the identity element on S, not forgetting to show your workings.

c) Write down two multiplication tables, one for {[6] 21 , [15] 21 } and one for {[9] 21 , [15] 21 , [18] 21 }.

d) Find the inverses of all elements in S. (It will not be necessary to write the whole multiplication table for S.)

Solution B10i)

โˆ— is associative iff โˆ€x, y, z โˆˆ G : x โˆ— (y โˆ— z) = (x โˆ— y) โˆ— z โˆ— is commutative iff โˆ€x, y โˆˆ G : x โˆ— y = y โˆ— z e โˆˆ G is an identity of G iff โˆ€x โˆˆ G : x โˆ— e = e โˆ— x = x. Definitions in course [ 2 marks] ii) (G, โˆ—) is a group iff โˆ— is a closed binary operation on G which is as- sociative, has an identity and for which every x โˆˆ G has an identity, i.e. โˆƒxโˆ’^1 โˆˆ G : x โˆ— xโˆ’^1 = xโˆ’^1 โˆ— x = e. Definition in course [ 1 mark]

a) If e and eโ€ฒ^ โˆˆ G are identities on (G, โˆ—) then

e = e โˆ— eโ€ฒ^ since eโ€ฒ^ is an identity = eโ€ฒ^ since e is an identity.

Thus e = eโ€ฒ^ and the identity is unique. Proof in lecture [ 2 marks]

b) If h, hโ€ฒ^ โˆˆ G are inverses of an element g โˆˆ G then

h = h โˆ— e where e is the identity, = h โˆ— (g โˆ— hโ€ฒ) since g โˆ— hโ€ฒ^ = e because hโ€ฒ^ is an inverse of g, = (h โˆ— g) โˆ— hโ€ฒ^ by associativity, = e โˆ— hโ€ฒ^ since h is an inverse of g, = hโ€ฒ^ since e is an identity.

Thus h = hโ€ฒ^ and the inverse is unique. Proof in lecture [ 3 marks]

c) By definition (x โˆ— y)โˆ’^1 is an inverse of x โˆ— y. But consider yโˆ’^1 โˆ— xโˆ’^1 :

(x โˆ— y) โˆ—

yโˆ’^1 โˆ— xโˆ’^1

(x โˆ— y) โˆ— yโˆ’^1

โˆ— xโˆ’^1 associativity =

x โˆ—

y โˆ— yโˆ’^1

โˆ— xโˆ’^1 associativity = (x โˆ— e) โˆ— xโˆ’^1 = x โˆ— xโˆ’^1 = e.

Similarly (yโˆ’^1 โˆ— xโˆ’^1 ) โˆ— (x โˆ— y) = e, thus yโˆ’^1 โˆ— xโˆ’^1 is also an inverse of x โˆ— y. Yet the inverse is unique so (x โˆ— y)โˆ’^1 = yโˆ’^1 โˆ— xโˆ’^1. Proof in lecture [ 2 marks]

iii) a) 3ร—15 = 45 โ‰ก 3 mod 21 so [3] 21 [15] 21 = [3] 21 and thus [x] 21 = [15] 21. [ 1 mark] b)

15 ร— 6 = 90 โ‰ก 6 mod 21 so [15] 21 [6] 21 = [6] 21 15 ร— 9 = 135 โ‰ก 9 mod 21 so [15] 21 [9] 21 = [9] 21 15 ร— 12 = 180 โ‰ก 21 mod 21 so [15] 21 [12] 21 = [12] 21 15 ร— 15 = 225 โ‰ก 15 mod 21 so [15] 21 [15] 21 = [15] 21 15 ร— 18 = 270 โ‰ก 18 mod 21 so [15] 21 [18] 21 = [18] 21

[ 1 mark]

Commonly seen mistakes in Question B

i) So many students forgot the quantifiers such as โ€œโˆ€x, y, z โˆˆ Gโ€ that I had to be generous and not mark down solutions which omitted the quantifiers.

Many students got the definitions of associative and commutative con- fused.

For the identity e we have to demand both e โˆ— x = x and x โˆ— e = x because โˆ— need not be commutative.

ii) a) Many students gave a proof of the uniqueness of the identity of this form: Let a โˆˆ G and let e, f โˆˆ G be identities. Then

a = a โˆ— e since e is an identity, a = a โˆ— f since f is an identity.

Equating we get a โˆ— e = a โˆ— f. Multiply both sides by the inverse of a (i.e. aโˆ’^1 : aโˆ’^1 โˆ— a = e). Then

aโˆ’^1 โˆ— (a โˆ— e) = aโˆ’^1 โˆ— (a โˆ— f ) ( aโˆ’^1 โˆ— a

โˆ— e =

aโˆ’^1 โˆ— a

โˆ— f by associativity, e โˆ— e = e โˆ— f e = f since e is an identity.

I allowed this proof but note that the proof given in the answers makes no use of an element a, or the fact that it has an inverse.

c) The proof of (x โˆ— y)โˆ’^1 = yโˆ’^1 โˆ— xโˆ’^1 given above depends completely on the word unique and I needed to see it in the answer.

There are alternative proofs such as starting from the definition of (x โˆ— y)โˆ’^1 as (x โˆ— y) โˆ— (x โˆ— y)โˆ’^1 = e.

Then

yโˆ’^1 โˆ— xโˆ’^1 =

yโˆ’^1 โˆ— xโˆ’^1

โˆ— e

yโˆ’^1 โˆ— xโˆ’^1

(x โˆ— y) โˆ— (x โˆ— y)โˆ’^1

yโˆ’^1 โˆ— xโˆ’^1

โˆ— (x โˆ— y)

โˆ— (x โˆ— y)โˆ’^1

yโˆ’^1 โˆ— xโˆ’^1

โˆ— x

โˆ— y

โˆ— (x โˆ— y)โˆ’^1

yโˆ’^1 โˆ—

xโˆ’^1 โˆ— x

โˆ— y

โˆ— (x โˆ— y)โˆ’^1

yโˆ’^1 โˆ— e

โˆ— y

โˆ— (x โˆ— y)โˆ’^1

yโˆ’^1 โˆ— y

โˆ— (x โˆ— y)โˆ’^1 = e โˆ— (x โˆ— y)โˆ’^1 = (x โˆ— y)โˆ’^1.

But notice how often associativity has been used in this, and you should always tell me when associativity has been used.

  1. b) A number of students tried to verify that [15] 21 is the identity by showing that [15] 21 [15] 21 = [15] 21 , but this is not enough.

Interestingly you can check that [8] 21 [a] 21 = [a] 21 for all [a] 21 โˆˆ S. But [8] 21 is not the identity since [8] 21 โˆˆ S/.