Discrete Mathematics—Problem Set 2

Problem set instructions:

1.  (Power set)

In problem 1, arithmetic operations are mod n.

(a.)

Let ® denote the mapping of a function from one value to another.  We will show that a ® ak is never one-to-one.  a is an element of Zn.  Zn has values that range from 0 to (n – 1).  k can be any positive integer, but ak still has to fall within Zn since we are working with multiplication (mod n).  Therefore, if we compute ak for more than n values, it must repeat since there are only n elements in Zn.  This means k ® ak and l ® al.  Since ak = al, we re-write these functions to be k ® ak and l ® al.  Therefore the function is not one-to-one since two x values go to the same y value.

(b.)

We will show the implication: If a is invertible, then there is a positive integer k with ak = 1.  From part a, we know there is always an l such that ak = al, and k ¹ l.  Since the two constants, k and l, are not equal, one is greater.  We know that b is invertible if a * b = 1.

Start with              ak = al.

Multiply by bk, arbitrarily choosing l to be the larger integer.

                        bk * ak = al * bk

Simplify.               1 = al – k

Thus, we have proven 1 = ak when the exponent is l – k.

(c.)

0 has no power or order in any Zn since it is not invertible.  We can check for the invertability of a by looking for a and b such that a * b = 1 mod n.

       Z5 = {0,1,2,3,4}

       1:     11(mod 5) = 1.              The order of 1 is 1.

      

2:     21(mod 5) = 2.             The order of 2 is 4.

              22(mod 5) = 4

              23(mod 5) = 3

              24(mod 5) = 1

      

3:     31(mod 5) = 3.              The order of 3 is 4.

       32(mod 5) = 4

       33(mod 5) = 3

       34(mod 5) = 1

 

4:   41(mod 5) = 4.                The order of 4 is 2.

       42(mod 5) = 1

 

Z9 = {0,1,2,3,4,5,6,7,8}

 

1:     11(mod 9) = 1.              The order of 1 is 1.

 

2:     21(mod 9) = 2.              The order of 2 is 6.

       22(mod 9) = 4

       23(mod 9) = 8

       24(mod 9) = 7

       25(mod 9) = 5

       26(mod 9) = 1

 

3:     3 is not invertible with Z9.

 

4:     41(mod 9) = 4.              The order of 4 is 3.

       42(mod 9) = 7

       43(mod 9) = 1

 

5:     51(mod 9) = 5.              The order of 5 is 6.

       52(mod 9) = 7

       53(mod 9) = 8

       54(mod 9) = 4

       55(mod 9) = 2

       56(mod 9) = 1

 

6:     6 is not invertible with Z9.

 

7:     71(mod 9) = 7.              The order of 7 is 3.

       72(mod 9) = 4

       73(mod 9) = 1

 

8:     81(mod 9) = 8.              The order of 8 is 2.

       82(mod 9) = 1

 

Z11 = {0,1,2,3,4,5,6,7,8,9,10}.  All elements in Z11 are invertible. 

 

1:     11(mod 11) = 1.             The order of 1 is 1.

 

2:     21(mod 11) = 2.             The order of 2 is 10.

       22(mod 11) = 4

       23(mod 11) = 8

       24(mod 11) = 5

       25(mod 11) = 10

       26(mod 11) = 9

       27(mod 11) = 7

       28(mod 11) = 3

       29(mod 11) = 6

       210(mod 11) = 1

 

3:     31(mod 11) = 3.             The order of 3 is 5.

       32(mod 11) = 9

       33(mod 11) = 5

       34(mod 11) = 4      

       35(mod 11) = 1

 

4:     41(mod 11) = 4.             The order of 4 is 5.

       42(mod 11) = 5

       43(mod 11) = 9

       44(mod 11) = 3

       45(mod 11) = 1

 

5:     51(mod 11) = 5.             The order of 5 is 5.

       52(mod 11) = 3

       53(mod 11) = 4

       54(mod 11) = 9

       55(mod 11) = 1

 

6:     61(mod 11) = 6.             The order of 6 is 10.

       62(mod 11) = 3

       63(mod 11) = 7

       64(mod 11) = 9

       65(mod 11) = 10

       66(mod 11) = 5

       67(mod 11) = 8

       68(mod 11) = 4

       69(mod 11) = 2

       610(mod 11) = 1

 

7:     71(mod 11) = 7.             The order of 7 is 10.

       72(mod 11) = 5

       73(mod 11) = 2

       74(mod 11) = 3

       75(mod 11) = 10

       76(mod 11) = 4

       77(mod 11) = 6

       78(mod 11) = 9

       79(mod 11) = 8

       710(mod 11) = 1

 

8:     81(mod 11) = 8.             The order of 8 is 10.

82(mod 11) = 9

83(mod 11) = 6

84(mod 11) = 4

85(mod 11) = 10

86(mod 11) = 3

87(mod 11) = 2

88(mod 11) = 5

89(mod 11) = 7

810(mod 11) = 1

 

       9:     91(mod 11) = 9.             The order of 9 is 5.

              92(mod 11) = 4

              93(mod 11) = 3

              94(mod 11) = 5

              95(mod 11) = 1

 

       10:    101(mod 11) = 10.           The order of 10 is 2.

              102(mod 11) = 1

 

(d).

     All arithmetic statements are mod m.

We will show:  If s º t (1), then as = at.  We know a Î Zn, and a is invertible with an order of m.

From (1), and the fact that m (mod m) = 0:

              s + m = t mod m.

     Write both sides as exponents of a:

                                  as+m = at

     By an exponent rule          as * am = at (2)

     The order of a is m, so am = 1.

     Simplify (2).                as * 1 = at

So, we can conclude that     as = at.

 

2.

     Here is the modulus table for multiplication mod 5.

M5

0

1

2

3

4

0

0

0

0

0

0

1

0

1

2

3

4

2

0

2

4

1

3

3

0

3

1

4

2

4

0

4

3

2

1

 

From the table, we learn that the squares are: {0,1,4}.  These come from the highlighted cells.

 

Suppose that not every Pythagorean triple contains an element divisible by 5.  A zero indicates that a number is divisible by 5.  Suppose that there is not an element in every Pythagorean triple that is divisible by 5.  Then a2,b2,c2 Î {1,4}.  So, none of a2,b2,c2 are zero.  But, one of a2,b2,c2 must be zero in order to satisfy the Pythagorean relationship: a2 + b2 = c2­­­­­­.  We can see this because if we choose two of the numbers in the equality, there is no possibility of satisfying the third one with a 1 or 4. This gives a contradiction.  A number mod 5 that equals zero is divisible by 5.  Therefore, one of a2,b2,c2 must be divisible by 5.  If a number squared is divisible by 5, then the number is also divisible by 5.  From this, we conclude that one of a,b,c must be divisible by 5

 


3.

Assume a is invertible.  This means: $b½a * b º 1 (mod n).  So, n½a * b – 1 for some s. 

We can re-write this as:          a * b – n * s = 1 

When b = t and –n = C:       1 = a * t + n * s

By a theorem, the smallest positive linear combination is the gcd.  Since the gcd of a and n is expressed as a linear combination of s and t equal to 1, and because there is no other smaller positive integer than 1 available for a gcd, we conclude gcd(a,b) = 1.  By definition, two numbers that have a gcd of 1 are relatively prime.

Conversely, relatively prime means gcd(a,n) = 1

This leads to:          1 = a * t + n * s

Rearranging:            n * s = a * t – 1

Set t = b:              n * s = a * b – 1.

So, n½a * b – 1.  From this, we know that a * b º 1 (mod n).

From this, we can conclude that a is invertible.

 

Thus, we have shown that a is invertible iff a and n are relatively prime.

 

4.

     Choose p = 1050849, and q = 1219263.  We will compute

R11(p­q). 

Compute the mod 11 of p:         -1 + 0 – 5 + 7 – 0 + 8 – 4 + 9 = 14

-1 + 4 = 3

So, p mod 11 = 3.

Now, find the order of p:         31 mod 11 = 3­­­­­­­

                                                  32 mod 11 = 9­­­­­­­

                                                        33 mod 11 = 5­­­­­­­

                                                        34 mod 11 = 4­­­­­­­

                                                        35 mod 11 = 1

The order of p is 5.

We know p º 3, so p5 = 35.

The order of p is 5, so 35­­­­ º 1 (mod 11).  When we write pq­­­, we notice that every 5 3s are congruent to 1. 

So, q mod 5 º 3, and 33 º 5 = R11(p­q).

 
Disclaimer    |    FAQ    |    Contact Me
Maintained by Bobby Rohrkemper >>> Last updateSunday, May 16, 2004 8:12 PMe -->e --> . All rights reserved.