10 La relacion de congruencia en \mathbb{Z}

Definition 10.1.

Sea n,n2n\in\mathbb{N},n\geq 2. Dados a,ba,b\in\mathbb{Z} decimos que son congruentes modulo nn si n|abn|a-b, es decir, si existe kk\in\mathbb{Z} tal que ab=kna-b=kn.

Notacion: aba\equiv b (mod nn).

Proposition 10.2.

La relacion congruencia modulo nn es una relacion de equivalencia en \mathbb{Z}.

Proof 10.3.
  1. 1.

    Reflexiva: aaa\forall a\in\mathbb{Z}\;a\equiv a mod nn?

    aa=0=0naaa-a=0=0\cdot n\Rightarrow a\equiv a mod nn.

  2. 2.

    Simetrica: a,b\forall a,b\in\mathbb{Z} si aba\equiv b mod nn k\exists k\in\mathbb{Z} tal que ab=knba=(k)nba mod na-b=k\cdot n\Rightarrow b-a=(-k)\cdot n\Rightarrow b\equiv a\text{ mod }n.

  3. 3.

    Transitiva: a,b,c\forall a,b,c\in\mathbb{Z}

    ab mod nbc mod n}k,mab=kn,bc=mn\begin{rcases}a\equiv b\text{ mod }n\\ b\equiv c\text{ mod }n\end{rcases}\Rightarrow\exists k,m\in\mathbb{Z}\mid a-b=% k\cdot n,b-c=m\cdot n

    Luego ac=n(k+m)a-c=n\cdot(k+m) ac mod n\Rightarrow a\equiv c\text{ mod }n.

Example 10.4.

Congruencia modulo 6 (dibujada en la pizarra).

Los numeros que estan relacionados entre si son los que estan en la misma columna. Cada columna es una clase de equivalencia de la relacion.

Hay 6 clases de equivalencia. El conjunto cociente es:

/ mod n={[0],[1],[2],[3],[4],[5]}=6\mathbb{Z}/\equiv\text{ mod }n=\left\{[0],[1],[2],[3],[4],[5]\right\}=\mathbb{% Z}_{6}

[0]={,6,0,6,12,}[0]=\left\{\ldots,-6,0,6,12,\ldots\right\}

[1]={,5,1,7,13,}[1]=\left\{\ldots,-5,1,7,13,\ldots\right\}

[2]={,4,2,8,14,}[2]=\left\{\ldots,-4,2,8,14,\ldots\right\}, …

Example 10.5.

¿Cual es la clase de 353?

353=658+5353=6\cdot 58+5 [353]6=[5]6\Rightarrow[353]_{6}=[5]_{6}

ya que 3535=6583535353-5=6\cdot 58\Rightarrow 353\equiv 5 mod 66.

Proposition 10.6.

Sean aa\in\mathbb{Z}, n2n\geq 2 y rr el resto de dividir aa entre nn. Entonces se cumple

[a]n=[r]n[a]_{n}=[r]_{n}
Proof 10.7.

Como a=nq+ra=n\cdot q+r (teorema de la division), ar=nqar mod n[a]n=[r]na-r=n\cdot q\Rightarrow a\equiv r\text{ mod }n\Rightarrow[a]_{n}=[r]_{n}.

Theorem 10.8.

|n|=n|\mathbb{Z}_{n}|=n.

Es mas, n={[0]n,[1]n,[2]n,,[n1]n}\mathbb{Z}_{n}=\left\{[0]_{n},[1]_{n},[2]_{n},\ldots,[n-1]_{n}\right\}

Proof 10.9.

Dado aa\in\mathbb{Z} cualquiera por la proposicion 10.7 r,0rn1\exists r\in\mathbb{Z},0\leq r\leq n-1 tal que

[a]n=[r]n[a]_{n}=[r]_{n}

Para demostrar que hay exactamente rr clases, tengo que demostrar que las clases [0],[1],[2],,[n1][0],[1],[2],\ldots,[n-1] son todas distintas entre si.

Supongamos que r1r_{1} y r2r_{2} son restos modulo nn, es decir, 0r1,r2n10\leq r_{1},r_{2}\leq n-1 y que [r1]=[r2][r_{1}]=[r_{2}].

Luego k\exists k\in\mathbb{Z} tal que r1r2=kn|r1r2|n1=|k|nr_{1}-r_{2}=k\cdot n\Rightarrow\underbrace{|r_{1}-r_{2}|}_{\leq n-1}=|k|\cdot n Por ser la distancia entre 2 restos, |k|nn1k=0r1=r2|k|\cdot n\leq n-1\Rightarrow k=0\Rightarrow r_{1}=r_{2}

Vamos a definir una suma y un producto en n\mathbb{Z}_{n}, sumando y multiplicando representantes. Es necesario demostrar que la operacion esta bien definida:

Proposition 10.10.

Sean nn\in\mathbb{N}, n2n\geq 2 y a,b,c,da,b,c,d\in\mathbb{Z} tales que

  • [a]n=[c]n[a]_{n}=[c]_{n}

  • [b]n=[d]n[b]_{n}=[d]_{n}

Entonces se cumple:

  • [a+b]n=[c+d]n[a+b]_{n}=[c+d]_{n}

  • [ab]n=[cd]n[ab]_{n}=[cd]_{n}

Proof 10.11.

[a]=[c]k[a]=[c]\Rightarrow\exists k\in\mathbb{Z} tal que ac=kna-c=k\cdot n

[b]=[d]m[b]=[d]\Rightarrow\exists m\in\mathbb{Z} tal que bd=mnb-d=m\cdot n

Quiero ver que [a+b]=[c+d][a+b]=[c+d], es decir, que (a+b)(c+d)(a+b)-(c+d) es multiplo de nn.

(a+b)(c+d)=(ac)+(bd)=kn+mn=(k+m)n[a+b]=[c+d](a+b)-(c+d)=(a-c)+(b-d)=k\cdot n+m\cdot n=(k+m)\cdot n\Rightarrow[a+b]=[c+d].

Ahora vamos a ver que [ab]=[cd][a\cdot b]=[c\cdot d], es decir, que abcd()ab-cd(*) es multiplo de nn.

(*) = abad+adcd=a(bd)+(ac)d=amn+knd=n(am+kd)[ab]=[cd]ab-ad+ad-cd=a(b-d)+(a-c)\cdot d=a\cdot m\cdot n+k\cdot n\cdot d=n(am+kd)% \Rightarrow[ab]=[cd]

Example 10.12.

Suma y multiplicacion en 6\mathbb{Z}_{6}:

  • [2]+[5]=[2+5]=[7]=[1][2]+[5]=[2+5]=[7]=[1]

  • [4][5]=[45]=[20]=[2][4]\cdot[5]=[4\cdot 5]=[20]=[2]

  • [16][1]==[2][16]\cdot[-1]=\cdots=[2]

Definition 10.13 (Anillo).

Un anillo es una terna (A,,)(A,\oplus,\otimes) donde:

  • AA es un conjunto no vacio.

  • :A×AA\oplus:A\times A\to A es una operacion interna, denominada suma.

  • :A×AA\otimes:A\times A\to A es una operacion interna, denominada producto.

que cumplen:

  1. 1.

    Suma asociativa: a,b,cA(ab)c=a(bc)\forall a,b,c\in A(a\oplus b)\oplus c=a\oplus(b\oplus c)

  2. 2.

    Existencia de neutro: 0AA\exists 0_{A}\in A tal que aAaa0A=0Aa=a\forall a\in A\quad a\oplus a\oplus 0_{A}=0_{A}\oplus a=a

  3. 3.

    Existencia de opuestos: aAbA\forall a\in A\;\exists b\in A tal que ab=ba=0Aa\oplus b=b\oplus a=0_{A}

  4. 4.

    Suma conmutativa: a,bA\forall a,b\in A ab=baa\oplus b=b\oplus a

  5. 5.

    Producto asociativo: a,bA\forall a,b\in A (ab)c=a(bc)(a\otimes b)\otimes c=a\otimes(b\otimes c)

  6. 6.

    Distributivas: a,b,cA\forall a,b,c\in A a(bc)=(ab)(ac)a\otimes(b\oplus c)=(a\otimes b)\oplus(a\otimes c) y (bc)a=(ba)(ca)(b\oplus c)\otimes a=(b\otimes a)\oplus(c\otimes a)

Definition 10.14.

Un anillo AA es conmutativo si el producto \otimes es conmutativo.

Definition 10.15.

Un anillo AA es unitario o anillo con unidad si existe un netro para el producto \otimes distinto del neutro para la suma \oplus, es decir

1AA{0A} tal que aAa1A=1Aa=a\exists 1_{A}\in A\setminus\left\{0_{A}\right\}\text{ tal que }\forall a\in A% \quad a\otimes 1_{A}=1_{A}\otimes a=a
Definition 10.16.

Definimos en n\mathbb{Z}_{n} una suma y un producto como:

  • [a]n+[b]n=[a+b]n[a]_{n}+[b]_{n}=[a+b]_{n}

  • [a]n[b]n=[ab]n[a]_{n}\cdot[b]_{n}=[a\cdot b]_{n}

La proposicion 11 garantiza que estas operaciones estan bien definidas

Proposition 10.17.

(n,+,)(\mathbb{Z}_{n},+,\cdot) es un anillo conmutativo con unidad.

Proof 10.18.

Veamos que la suma es asociativa

Sea [a],[b],[c]n[a]+([b]+[c])=?([a]+[b])+[c][a],[b],[c]\in\mathbb{Z}_{n}\Rightarrow[a]+([b]+[c])\overset{?}{=}([a]+[b])+[c].

Por definicion, [a]+([b]+[c])=[a]+[b+c]=[a+(b+c)]=[(a+b)+c][a]+([b]+[c])=[a]+[b+c]=[a+(b+c)]=[(a+b)+c] porque la suma en \mathbb{Z} es asociativa.

Es decir, la asociatividad se “hereda” de la asociatividad de la suma en \mathbb{Z}.

Son analogas las demostraciones de que la suma y el producto son conmutativos, el producto es asociativo, y la distributiva.

Se heredan de \mathbb{Z} y no las escribimos.

Tenemos que demostrar que existe un neutro de la suma: [a]n\forall[a]\in\mathbb{Z}_{n} se cumple que [a]+[0]=[a][a]+[0]=[a]. Luego [0][0] es el neutro de la suma.

Tambien, [a]n\forall[a]\in\mathbb{Z}_{n} tenemos [a]n[-a]\in\mathbb{Z}_{n} tal que [a]+[a]=[0][a]+[-a]=[0]. Luego [a][-a] es el opuesto de [a][a].

Por otro lado a\forall a\in\mathbb{Z}, [a][1]=[a][a][1]=[a]. Asi, [1][1] es el neutro del producto en n\mathbb{Z}_{n}.

Como cumple todas las propiedades, n\mathbb{Z}_{n} es un anillo conmutativo unitario.

Example 10.19.

n\mathbb{Z}_{n} no es siempre un cuerpo. Por ejemplo, veamos si 6\mathbb{Z}_{6} lo es.

Tenemos que ver si existe un xx\in\mathbb{Z} tal que [2][x]=[1][2]\cdot[x]=[1]. Esto es lo mismo que 2x1=6x2x-1=6x, pero no tiene solucion en \mathbb{Z}. Luego no es cierto que todos los elementos tengan inverso y por tanto no es un cuerpo.

¿Es 5\mathbb{Z}_{5} cuerpo?

[2][3]=[1][2]\cdot[3]=[1], [1][1]=[1][1]\cdot[1]=[1], [4][4]=[1][4]\cdot[4]=[1].

Luego [1],[2],[3],[4][1],[2],[3],[4] son invertibles en 5\mathbb{Z}_{5}\Rightarrow 5\mathbb{Z}_{5} es un cuerpo

Definition 10.20.

Decimos que aAa\in A es invertible si bA\exists b\in A tal que ab=ba=1ab=ba=1.

Definition 10.21.

Un cuerpo es un anillo conmutativo con unidad AA tal que todo elemento distinto de 0 es invertible.

Proposition 10.22.

Sea [a]nn[a]_{n}\in\mathbb{Z}_{n}. Se tiene que

[a]n es invertiblem.c.d.(a,n)=1[a]_{n}\text{ es invertible}\iff\mathrm{m.c.d.}(a,n)=1
Proof 10.23.

[a]n[a]_{n} es invertible \iff DEFb\overset{DEF}{\Rightarrow}\exists b\in\mathbb{Z} tal que [a]n[b]n=[1]n[a]_{n}\cdot[b]_{n}=[1]_{n} \iff

\iff b,k\exists b,k\in\mathbb{Z} tal que 1ab=kn1-ab=k\cdot n \iff

\iff La ecuacion diofantica nx+ay=1n\cdot x+a\cdot y=1 tiene solucion en xx e yy.

Por el teorema 8, tiene solucion si y solo si m.c.d.(n,a)|1m.c.d.(n,a)=1\mathrm{m.c.d.}(n,a)|1\iff\mathrm{m.c.d.}(n,a)=1.

Obs: Ademas, hemos dado una forma de encontrar el inverso, si existe, resolviendo una ecuacion diofantica.

Example 10.24.

¿Es invertible [17][17] en 12\mathbb{Z}_{12}? En caso de que exista hallalo.

m.c.d.(17,12)=1Prop 13[17]\mathrm{m.c.d.}(17,12)=1\overset{\text{Prop 13}}{\Rightarrow}[17] es invertible en 12\mathbb{Z}_{12}.

[17][x]=[1][17][x]=[1]

32x+17y=132x+17y=1. Lo resolvemos por el algoritmo extendido de Euclides: 32=171+1532=17\cdot 1+15, 17=161+217=16\cdot 1+2, 15=27+115=2\cdot 7+1, 2=122=1\cdot 2.

Luego 15(1715)7=815717=8(3217)717=832817717=832+(15)1715-(17\cdot 15)\cdot 7=8\cdot 15-7\cdot 17=8\cdot(32-17)-7\cdot 17=8\cdot 32-8% \cdot 17-7\cdot 17=8\cdot 32+(-15)\cdot 17

Luego [15][-15] es el inverso de [37][37] en 12\mathbb{Z}_{12}.

1=832+(15)171=8\cdot 32+(-15)\cdot 17 Id Bezout

1(15)17=8321-(-15)\cdot 17=8\cdot 32.

[1]=[15][17]=[1517][1]=[-15]\cdot[17]=[-15\cdot 17] [15]=[17][-15]=[17] (15+32=17-15+32=17 ), [1]=[17][17][1]=[17][17].

Proposition 10.25.

n\mathbb{Z}_{n} es cuerpo \iff nn es primo

Proof 10.26.

)\Leftarrow) nn es primo. Tengo que ver que [1],[2],[3],,[n1][1],[2],[3],\ldots,[n-1] son invertibles.

a\forall a tal que 1an11\leq a\leq n-1 se cumple que m.c.d.(a,n)=1\mathrm{m.c.d.}(a,n)=1 (porque n es primo)

Luego por la proposicion 13, [a][a] es invertible.

)\Rightarrow) Veamos que si n\mathbb{Z}_{n} es un cuerpo entonces nn es primo. Lo demostramos por contraposicion. (nn compuesto n\Rightarrow\mathbb{Z}_{n} no es un cuerpo)

nn compuesto n=d1d2\Rightarrow n=d_{1}\cdot d_{2} con 2d1,d2n12\leq d_{1},d_{2}\leq n-1.

Por tanto m.c.d.(n,d1)d12n\mathrm{m.c.d.}(n,d_{1})\geq d_{1}\geq 2\Rightarrow\mathbb{Z}_{n} no es un curpo por la proposicion 13.