23 - Integers modulo n

!Screenshot 2023-10-31 at 10.16.32 PM.png
!Screenshot 2023-10-31 at 10.16.44 PM.png
!Screenshot 2023-10-31 at 10.17.59 PM.png
!Screenshot 2023-10-31 at 10.18.23 PM.png!Screenshot 2023-10-31 at 10.18.54 PM.png!Screenshot 2023-10-31 at 10.19.18 PM.png!Screenshot 2023-10-31 at 10.19.30 PM.png

In class practice

Modular integer equivalence proof could be on exam??
Congruence modulo n is an equivalence relation on Z.

Proof. Let nN.
(Reflexive)
Let aZ. Then aa=0n so n(aa) and aamodn.
(Symmetric)
Let a,bZ. Assume that abmodn. Then n(ab). Hence ab=nk for some kZ. Then (ba)=n(k) so nbk and bamodn.
(Transitive)
Let a,b,cZ. Assume that abmodn and bcmodn. Then nab so ab=nk for some kZ. Also, n(bc), so bc=nj for some jZ. Then ac=n(k+j). Since k+jZ, n(ac), so acmodn.



HW 23

Ben Finch

E 23.1
Let nN and aZ. Prove that 0a if and only if na.
Proof.

Assume that 0a. Then we have 0=a+kn for some kZ. Then a=n(k). Thus na.


Assume that na. Then a=mn for some mZ. We have a=mn+0n=a+kn where k is 0. Thus 0a

Thus, 0a if and only if na.

E 23.2
a) 6+7=13=4
b) 67=42=0
c) 59119=2929=841=1
d) 65+85=30+85=115=3
e) 210=1024=4

E 23.3

Addition Table for Z5

+ 0 1 2 3 4
0 0 1 2 3 4
1 1 2 3 4 0
2 2 3 4 0 1
3 3 4 0 1 2
4 4 0 1 2 3

Multiplication Table for Z5

× 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

E 23.4
Let nN.
a) Proof. Let X,YZn. Then X=a and Y=b for some a,bZ. Then X+Y=a+b. By properties of integer addition, a+b=b+a. We have b+a=Y+X. Thus X+Y=Y+X.

b) Proof. Let X,YZn. Then X=a and Y=b for some a,bZ. Then XY=ab. By properties of integer multiplication, ab=ba. We have ba=YX. Thus XY=YX.

c) Proof. Let XZn. Then X=a for some aZ. Thus X0=a0=0.

d) Proof. Let XZn. Then X=a for some aZ. Thus X1=a1=a=X.

e) Proof. Let XZn. X=a for some aZ. Then X2=a2=2a=a+a=a+a=X+X.

f) Proof. Let XZn. Fix Y=nX. Then X+Y=X+(nX)=n. Since n0modn, it follows that X+Y=0.

g) Proof. Let X,Y,ZZn. Then X=a and Y=b Z=c for some a,b,cZ. Thus (X+Y)Z=(a+b)c=(ac)+(bc)=(XZ)+(YZ).

E 23.5
Let X,YZ5, X0. There are 4 cases

  1. Assume X=1. Fix Y=1. We see that XY=11=1
  2. Assume X=2. Fix Y=3. We see that XY=23=6=1
  3. Assume X=3. Fix Y=2. We see that XY=32=6=1
  4. Assume X=4. Fix Y=4. We see that XY=44=16=1
    Thus for all XZ5 (where X0), there exists a Y such that XY=1.

E 23.6
Multiplication Table for Z6

× 0 1 2 3 4 5
0 0 0 0 0 0 0
1 0 1 2 3 4 5
2 0 2 4 0 2 4
3 0 3 0 3 0 3
4 0 4 2 0 4 2
5 0 5 4 3 2 1

No. Fix X=2. Based on the multiplication table, there is no YZ6 such that 2Y=1.

E 23.7
a)
Proof. Let nN be a composite number. By Theorem 19.3, n=ab for some abZ, where 1<a<n and 1<b<n (meaning a,b 0). We find that ab=ab=n. Since n0modn, n=0. Thus if n is a composite number, there are nonzero elements a,bZn such that ab=0.

b)
Proposition. If nN is prime, prove that a,bZn if ab=0, then a=0 or b=0

Proof. Let nN be a prime number. Let a,bZn. We work directly. Assume that ab=0. Then for some aa and some bb, we have ab=nk for some kZ. Thus nab. By Euclid's Lemma, na or nb. We have two cases.

  1. If na, a=nl for some lZ, so a0. Thus a=0
  2. If nb, b=np for some pZ, so b=0. Thus b=0
    Thus either a=0 or b=0.

If n=1, then Euclid's lemma does not apply. In this case, the proof is trivially true since Z1={0}. Then a and b=0.

c)
Proposition.
If nN is prime, prove that for any nonzero aZn, there exists bZn with a·b=1.

Proof. Let nN be a prime number. Let aZn. Let a0
Then for some aa, na. Thus by Theorem 19.4, GCD(a,n) =1. Using the Euclidian Algorithm, we can find integers x,y such that ax+ny=1. This can also be written as ax=1modn. It follows that ax=1Zn. Since x is arbitrary, we can sub this for b. Thus we have ab=1 for some a,bZn.