Congruencia
Congruencia
Congruencia
SAN MARCOS
FACULTAD DE CIENCIAS MATEMÁTICAS
Escuela Profesional de Matemática
Sesión N°11
N°12
COMPLEMENTOS DE MATEMÁTICA
Notación 𝑎 ≡ 𝑏(𝑚ó𝑑 𝑚)
Observación. –
1) 𝑎 ≡ 𝑏(𝑚ó𝑑 𝑚) si y solo si 𝑚|(𝑎 − 𝑏)
2) Si 𝑚 ∤ 𝑎 − 𝑏 entonces se dice que “𝑎 𝑒𝑠 𝑖𝑛𝑐𝑜𝑛𝑔𝑟𝑢𝑒𝑛𝑡𝑒 𝑐𝑜𝑛 𝑏 𝑚ó𝑑𝑢𝑙𝑜 𝑚“, en este caso usamos la
notación 𝑎 ≢ 𝑏 𝑚ó𝑑 𝑚
Ejemplos
7 ≡ −13 𝑚ó𝑑 10 , −3 ≡ −17(𝑚ó𝑑 7)
8 ≢ −7 𝑚ó𝑑 4 , −12 ≢ 5(𝑚ó𝑑 3)
Teorema. –
La relación de congruencia módulo 𝑚, con 𝑚 ∈ ℤ+ , en el conjunto de los números enteros
de es una relación de equivalencia.
Demostración.
𝑅: ℤ ⟶ ℤ
(𝑎, 𝑏) ∈ 𝑅 ⇔ 𝑎 ≡ 𝑏(𝑚ó𝑑 𝑚)
𝑖) 𝑅 es reflexiva.
Sea 𝑎 ∈ ℤ, como 𝑚|0 luego 𝑚| 𝑎 − 𝑎 de esto 𝑎 ≡ 𝑎 𝑚ó𝑑 𝑚 , entonces 𝑎, 𝑎 ∈ 𝑅
𝑖𝑖) 𝑅 es simétrica.
Sean 𝑎, 𝑏 ∈ ℤ tales que (𝑎, 𝑏) ∈ 𝑅 , luego 𝑎 ≡ 𝑏(𝑚ó𝑑 𝑚) de este modo 𝑚| 𝑎 − 𝑏
por propiedad de divisibilidad 𝑚|(𝑏 − 𝑎) así 𝑏 ≡ 𝑎(𝑚ó𝑑 𝑚) por lo tanto (𝑏, 𝑎) ∈ 𝑅
𝑖𝑖𝑖) 𝑅 es transitiva.
Sean, 𝑎, 𝑏, 𝑐 ∈ ℤ tales que 𝑎, 𝑏 ∈ 𝑅 ∧ (𝑏, 𝑐) ∈ 𝑅 luego 𝑎 ≡ 𝑏(𝑚ó𝑑 𝑚) ∧
𝑏 ≡ 𝑐(𝑚ó𝑑 𝑚) entonces 𝑚| 𝑎 − 𝑏 ∧ 𝑚|(𝑏 − 𝑐) luego por propiedad de
divisibilidad 𝑚| 𝑎 − 𝑏 + (𝑏 − 𝑐) es decir 𝑚|(a − c) por lo que 𝑎 ≡ 𝑐(𝑚ó𝑑 𝑚)
Ejemplo. -
4 ≡ −2 𝑚ó𝑑6 luego −2 ≡ 4 (𝑚ó𝑑 6)
Del teorema anterior, la relación de congruencia módulo 𝑚 nos permite agrupar a los números
enteros en familias disjuntas de manera que dos números son congruentes modulo m si y solo
si están en la misma clase. Estas familias se denominan clases residuales modulo 𝑚 , y se
designa por ℤ𝑚 al conjunto formado por ellas.
Sea 𝑎 ∈ ℤ
𝑎 = 𝑥 ∈ ℤ ∕ 𝑥 ≡ 𝑎(𝑚ó𝑑 𝑚) = 𝑥 ∈ ℤ ∕ 𝑚|(𝑥 − 𝑎) = 𝑥 ∈ ℤΤ𝑥 = 𝑎 + 𝑚𝑡, 𝑡 ∈ ℤ
Así tenemos:
0 = 𝑥 ∈ ℤΤ𝑥 = 𝑚𝑡, 𝑡 ∈ ℤ = … , −2𝑚, −𝑚, 0, 𝑚, 2𝑚, …
1 = 𝑥 ∈ ℤΤ𝑥 = 1 + 𝑚𝑡, 𝑡 ∈ ℤ = … , 1 − 2𝑚, 1 − 𝑚, 1, 1 + 𝑚, 1 + 2𝑚, …
2 = 𝑥 ∈ ℤΤ𝑥 = 2 + 𝑚𝑡, 𝑡 ∈ ℤ = … , 2 − 2𝑚, 2 − 𝑚, 2, 2 + 𝑚, 2 + 2𝑚, …
⋮
𝑚 − 1 = 𝑥 ∈ ℤΤ𝑥 = (𝑚 − 1) + 𝑚𝑡, 𝑡 ∈ ℤ = … , 𝑚 − 1 − 𝑚, 𝑚 − 1, (𝑚 − 1) + 𝑚, …
𝑚 = 𝑥 ∈ ℤΤ𝑥 = 𝑚 + 𝑚𝑡, 𝑡 ∈ ℤ = … , 𝑚 − 𝑚, 𝑚, 𝑚 + 𝑚, … = 0
De este modo
ℤ
= ℤ𝑚 = 0 , 1 , 2 , … , 𝑚 − 1
≡𝑚
Observación. –
Cada clase residual módulo 𝑚 puede ser representada por uno cualquiera de sus miembros,
pero por lo general, la clase residual se representa por el menor número entero no negativo
que pertenezca a esa misma clase.
Ejemplo. –
Determine las clases residuales módulo 5
0 = … , −10, −5, 0, 5, 10, …
1 = … , −9, −4, 1, 6, 11, …
2 = … , −8, −3, 2, 7, 12, …
3 = … , −7, −2, 3, 8, 13, …
Teorema. –
Dos números enteros 𝑎 𝑦 𝑏 dejan el mismo residuo cuando son divididos por un número
entero positivo 𝑚 si y solo si 𝑎 ≡ 𝑏 𝑚ó𝑑 𝑚 .
Demostración.
Sean 𝑎 𝑦 𝑏 dos números enteros
(⟹)
Si 𝑎 𝑦 𝑏 dejan el mismo residuo cuando son divididos por un número entero positivo 𝑚, es
decir:
𝑎 = 𝑚𝑞 + 𝑟, 𝑏 = 𝑚𝑞′ + 𝑟, 0 ≤ 𝑟 < 𝑚, 𝑞, 𝑞′ ∈ ℤ
Entonces
𝑎 − 𝑏 = 𝑚 𝑞 − 𝑞′ , 𝑑𝑜𝑛𝑑𝑒 𝑞 − 𝑞′ ∈ ℤ
Luego
𝑚|(𝑎 − 𝑏)
Por lo tanto
𝑎 ≡ 𝑏 𝑚ó𝑑 𝑚
⟸
Si 𝑎 ≡ 𝑏 𝑚ó𝑑 𝑚 , entonces 𝑚| 𝑎 − 𝑏 , luego existe 𝑘 ∈ ℤ talque 𝑎 − 𝑏 = 𝑚𝑘, de este modo
𝑎 = 𝑏 + 𝑚𝑘 … (𝑖)
Además del algoritmo de la división, para 𝑏 y 𝑚 números anteros, existen 𝑞, 𝑟 ∈ ℤ tales
que
𝑏 = 𝑚𝑞 + 𝑟, 0 ≤ 𝑟 < 𝑚 … (𝑖𝑖)
reemplazando 𝑖𝑖 en 𝑖
𝑎 = 𝑚𝑞 + 𝑟 + 𝑚𝑘 = 𝑚 𝑞 + 𝑘 + 𝑟, 0≤𝑟<𝑚
Desde que 𝑞 + 𝑘 ∈ ℤ , luego 𝑟 es residuo que se obtiene cuando 𝑎 es dividido por 𝑚
Por lo tanto 𝑎 y 𝑏 dejan el mismo residuo cuando son divididos por 𝑚
Ejemplo
73 ≡ 17 𝑚ó𝑑 7
Y
73 = 7 10 + 3, 17 = 7 2 + 3
Luego 73 y 17 dan el mismo residuo 3 cuando son divididos por 7
Teorema. –
Si 𝒂 ≡ 𝒃 𝒎ó𝒅 𝒎 y si 𝒄 ∈ ℤ entonces 𝒂 + 𝒄 ≡ 𝒃 + 𝒄 𝒎ó𝒅 𝒎
Demostración.
Si 𝑎 ≡ 𝑏 𝑚ó𝑑 𝑚 entonces 𝑚|(𝑎 − 𝑏) existe un número entero 𝑘 talque 𝑎 − 𝑏 = 𝑚𝑘
𝑎 = 𝑏 + 𝑚𝑘
Entonces
𝑎 + 𝑐 = 𝑏 + 𝑚𝑘 + 𝑐
Luego,
𝑎 + 𝑐 = 𝑏 + 𝑐 + 𝑚𝑘
De este modo
𝑎 + 𝑐 − 𝑏 + 𝑐 = 𝑚𝑘
Es así que
𝑚| 𝑎 + 𝑐 − (𝑏 + 𝑐)
Por lo tanto
𝑎 + 𝑐 ≡ 𝑏 + 𝑐(𝑚ó𝑑 𝑚)
Interpretación .
Consideremos la congruencia −12 ≡ 3(𝑚ó𝑑 5) luego para 𝑐 = −7 por el teorema anterior
−12 + −7 ≡ 3 + −7 𝑚ó𝑑 5
Es decir
−19 ≡ −4 𝑚ó𝑑 5
Teorema. –
Si 𝒂 ≡ 𝒃 𝒎ó𝒅 𝒎 y 𝒄 ∈ ℤ, entonces 𝒂. 𝒄 ≡ 𝒃. 𝒄 𝒎ó𝒅 𝒎
Demostración.
Si 𝑎 ≡ 𝑏 𝑚ó𝑑 𝑚 entonces 𝑚|(𝑎 − 𝑏) luego para 𝒄 ∈ ℤ, 𝑚| 𝑎 − 𝑏 𝑐 es decir 𝑚| 𝑎𝑐 − 𝑏𝑐
de este modo por definición de congruencia
𝑎𝑐 ≡ 𝑏𝑐(𝑚ó𝑑 𝑚)
Interpretación.
Consideremos la congruencia −12 ≡ 3(𝑚ó𝑑 5) luego para 𝑐 = −7 por el teorema anterior
−12 −7 ≡ 3 −7 𝑚ó𝑑 5
Es decir
84 ≡ −21 (𝑚ó𝑑 5)
Teorema. –
Si 𝒂 ≡ 𝒃(𝒎ó𝒅 𝒎) y 𝐜 ≡ 𝒅(𝒎ó𝒅 𝒎) entonces 𝒂 + 𝒄 ≡ 𝒃 + 𝒅 𝒎ó𝒅 𝒎
Demostración
Si 𝑎 ≡ 𝑏(𝑚ó𝑑 𝑚) y c ≡ 𝑑(𝑚ó𝑑 𝑚) entonces 𝑚| 𝑎 − 𝑏 y 𝑚| 𝑐 − 𝑑 entonces por
propiedad de divisibilidad
𝑚| 𝑎 − 𝑏 + 𝑐 − 𝑑
Es decir
𝑚| 𝑎 + 𝑐 − 𝑏 + 𝑑
De este modo por definición de congruencia
𝑎 + 𝑐 ≡ (𝑏 + 𝑑)(𝑚ó𝑑 𝑚)
Interpretación
Consideremos las congruencias 27 ≡ −15(𝑚ó𝑑 7) y 13 ≡ 6(𝑚ó𝑑 7) entonces por el
teorema anterior 27 + 13 ≡ −15 + 6 𝑚ó𝑑 7 , es decir 40 ≡ −9 𝑚ó𝑑 7 , pues 7|(40 − −9)
Teorema. –
Si 𝒂 ≡ 𝒃(𝒎ó𝒅 𝒎) y 𝐜 ≡ 𝒅(𝒎ó𝒅 𝒎) entonces 𝒂 − 𝒄 ≡ 𝒃 − 𝒅 𝒎ó𝒅 𝒎
Demostración
Ejercicio
Teorema. –
Si 𝒂 ≡ 𝒃(𝒎ó𝒅 𝒎) y 𝐜 ≡ 𝒅(𝒎ó𝒅 𝒎) entonces 𝒂. 𝒄 ≡ 𝒃. 𝒅 𝒎ó𝒅 𝒎
Demostración
Si 𝑎 ≡ 𝑏(𝑚ó𝑑 𝑚) y c ≡ 𝑑(𝑚ó𝑑 𝑚) entonces 𝑚| 𝑎 − 𝑏 y 𝑚| 𝑐 − 𝑑 , entonces
existen 𝑝, 𝑞 ∈ ℤ tales que
𝑎 − 𝑏 = 𝑚𝑝 y 𝑐 − 𝑑 = 𝑚𝑞
Entonces
𝑎 = 𝑏 + 𝑚𝑝 y 𝑐 = 𝑑 + 𝑚𝑞
De este modo
𝑎. 𝑐 = 𝑏 + 𝑚𝑝 . 𝑑 + 𝑚𝑞 = 𝑏𝑑 + 𝑏𝑚𝑞 + 𝑚𝑝𝑑 + 𝑚2 𝑝𝑞
Luego
𝑎. 𝑐 = 𝑏. 𝑑 + 𝑚(𝑏𝑞 + 𝑝𝑑 + 𝑚𝑝𝑞)
Entonces
𝑚|(𝑎. 𝑐 − 𝑏. 𝑑)
Por lo tanto,
𝑎. 𝑐 ≡ 𝑏. 𝑑(𝑚ó𝑑 𝑚)
Interpretación.
Consideremos las congruencias 50 ≡ 6 𝑚ó𝑑 11 y 7 ≡ −4(𝑚ó𝑑 11) entonces por el
teorema anterior
50 7 ≡ 6 −4 𝑚ó𝑑 11
Es decir
350 ≡ −24 𝑚ó𝑑 11 , 𝑦 𝑒𝑓𝑒𝑐𝑡𝑖𝑣𝑎𝑚𝑒𝑛𝑡𝑒 11|(350 − −24)
Teorema. –
Si 𝒂 ≡ 𝒃(𝒎ó𝒅 𝒎) y 𝒏 es un número entero positivo entonces 𝒂𝒏 ≡ 𝒃𝒏 𝒎ó𝒅 𝒎
Demostración.
Si 𝑎 ≡ 𝑏(𝑚ó𝑑 𝑚)
Como 𝑛 ∈ ℤ+ , luego usaremos inducción matemática sobre 𝑛
Para 𝑛 = 1, tenemos 𝑎 ≡ 𝑏(𝑚ó𝑑 𝑚) es verdadero por hipótesis
Supongamos que para 𝑛 = 𝑘, 𝑎𝑘 ≡ 𝑏𝑘 𝑚ó𝑑 𝑚 es verdadero por hipótesis inductiva
Por demostrar que para 𝑛 = 𝑘 + 1 también se verifica, veamos
De la hipótesis del teorema, de la hipótesis inductiva por teorema anterior tenemos:
𝑎. 𝑎𝑘 ≡ 𝑏. 𝑏 𝑘 𝑚ó𝑑 𝑚
De este modo
𝑎𝑘+1 ≡ 𝑏 𝑘+1 𝑚ó𝑑 𝑚 𝑒𝑠 𝑣𝑒𝑟𝑑𝑎𝑑𝑒𝑟𝑜.
Por lo tanto, por el principio de inducción matemática
𝑎𝑛 ≡ 𝑏𝑛 𝑚ó𝑑 𝑚 , ∀𝑛 ∈ ℤ+
Interpretación.
Consideremos la congruencia
−3 ≡ 17 𝑚ó𝑑 7
Luego para 𝑛 = 2, por el teorema anterior
(−3)2 ≡ 172 𝑚ó𝑑 7
Es decir
9 ≡ 289 𝑚ó𝑑 7 , efectivamente 7|(9 − 289)
Teorema. –
Si 𝒂 ≡ 𝒃(𝒎ó𝒅 𝒎) y 𝒑 𝒙 es una función polinómica en variable 𝒙 con coeficientes
enteros, entonces
𝒑(𝒂) ≡ 𝒑(𝒃)(𝒎ó𝒅 𝒎)
Demostración.
Sea 𝑎 ≡ 𝑏(𝑚ó𝑑 𝑚) y consideremos el polinomio con coeficientes enteros
𝑝 𝑥 = 𝑐𝑛 𝑥 𝑛 + 𝑐𝑛−1 𝑥 𝑛−1 + 𝑐𝑛−2 𝑥 𝑛−2 + ⋯ + 𝑐2 𝑥 2 + 𝑐1 𝑥 + 𝑐0
De la hipótesis,
.
Para:
𝑛 ∈ ℤ+ se verifica 𝑎𝑛 ≡ 𝑏 𝑛 𝑚ó𝑑 𝑚 , por propiedad 𝑐𝑛 𝑎𝑛 ≡ 𝑐𝑛 𝑏 𝑛 𝑚ó𝑑 𝑚
𝑛 − 1 ∈ ℤ+ se verifica 𝑎𝑛−1 ≡ 𝑏 𝑛−1 𝑚ó𝑑 𝑚 , por propiedad 𝑐𝑛−1 𝑎𝑛−1 ≡ 𝑐𝑛−1 𝑏𝑛−1 𝑚ó𝑑 𝑚
𝑛 − 2 ∈ ℤ+ se verifica 𝑎𝑛−2 ≡ 𝑏 𝑛−2 𝑚ó𝑑 𝑚 , por propiedad 𝑐𝑛−2 𝑎𝑛−2 ≡ 𝑐𝑛−2 𝑏𝑛−2 𝑚ó𝑑 𝑚
⋮
2 ∈ ℤ+ se verifica 𝑎2 ≡ 𝑏 2 𝑚ó𝑑 𝑚 , por propiedad 𝑐2 𝑎2 ≡ 𝑐2 𝑏 2 𝑚ó𝑑 𝑚
1 ∈ ℤ+ se verifica 𝑎 ≡ 𝑏 𝑚ó𝑑 𝑚 , por propiedad 𝑐1 𝑎 ≡ 𝑐1 𝑏 𝑚ó𝑑 𝑚
Por propiedad reflexiva 𝑐0 ≡ 𝑐0 (𝑚ó𝑑 𝑚)
Sumando término a término
𝑐𝑛 𝑎𝑛 + 𝑐𝑛−1 𝑎𝑛−1 + ⋯ + 𝑐2 𝑎2 + 𝑐1 𝑎 + 𝑐0 = 𝑐𝑛 𝑏𝑛 + 𝑐𝑛−1 𝑏𝑛−1 + ⋯ + 𝑐2 𝑏 2 + 𝑐1 𝑏 + 𝑐0 𝑚ó𝑑 𝑚
Por lo tanto
𝑝 𝑎 ≡ 𝑝 𝑏 𝑚ó𝑑 𝑚
Interpretación
Sea 3 ≡ −2(𝑚ó𝑑 5) 𝑝 𝑥 = 3𝑥 2 − 4𝑥 + 1, luego por teorema anterior
y
𝑝 3 ≡ 𝑝 −2 𝑚ó𝑑 5
Pero 𝑝 3 = 3(3)2 −4 3 + 1 = 16, 𝑝 −2 = 3 −2 2 − 4 −2 + 1 = 21
Como 5| 16 − 21 entonces 5| 𝑝 3 − 𝑝 −2 Por lo tanto 𝑝(3) ≡ 𝑝(−2)(𝑚ó𝑑 5)
Aplicación de la Relación de congruencia
Un número entero expresado en numeración decimal es divisible por 3 si y solo si la suma
de sus dígitos es divisible por 3
Demostración.
Sea 𝑛 un número entero positivo, por propiedad 𝑛 puede ser expresado en numeración
decimal en la forma
𝑛 = 𝑎0 + 𝑎1 10 + 𝑎2 (10)2 + ⋯ + 𝑎𝑘 10 𝑘
Donde cada 𝑎𝑖 es un número entero positivo.
Sabemos que
10 ≡ 1 𝑚ó𝑑 3
Entonces por teorema
102 ≡ 12 𝑚ó𝑑 3 ⟹ 102 ≡ 1 𝑚ó𝑑 3
También
103 ≡ 13 (𝑚ó𝑑 3) ⟹ 103 ≡ 1(𝑚ó𝑑 3)
⋮
En general
10𝑘 ≡ 1 (𝑚ó𝑑 3)
Por teoremas anteriores tenemos
𝑎0 ≡ 𝑎0 𝑚ó𝑑 3
𝑎1 10 ≡ 𝑎1 𝑚ó𝑑 3
𝑎2 (10)2 ≡ 𝑎2 𝑚ó𝑑 3
𝑎3 (10)3 ≡ 𝑎3 𝑚ó𝑑 3
⋮
𝑎𝑘 (10)𝑘 ≡ 𝑎𝑘 𝑚ó𝑑 3
Entonces, por propiedad de congruencia tenemos
𝑎0 + 𝑎1 10 + 𝑎2 (10)2 + ⋯ + 𝑎𝑘 10 𝑘 ≡ (𝑎0 +𝑎1 + 𝑎2 + ⋯ + 𝑎𝑘 )(𝑚ó𝑑 3)
De este modo
𝑛 ≡ (𝑎0 +𝑎1 + 𝑎2 + ⋯ + 𝑎𝑘 )(𝑚ó𝑑 3) ….(*)
Es así que:
3|𝑛 si y solo si existe 𝑝 ∈ ℤ talque 𝑛 = 3𝑝, si y solo si en (*)
3𝑝 ≡ (𝑎0 +𝑎1 + 𝑎2 + ⋯ + 𝑎𝑘 )(𝑚ó𝑑 3)
Si y solo si
3| 3𝑝 − (𝑎0 +𝑎1 + 𝑎2 + ⋯ + 𝑎𝑘 )
Si y solo si existe 𝑞 ∈ ℤ talque
3𝑝 − (𝑎0 +𝑎1 + 𝑎2 + ⋯ + 𝑎𝑘 ) = 3𝑞
Si y solo si
𝑎0 + 𝑎1 + 𝑎2 + ⋯ + 𝑎𝑘 = 3𝑝 − 3𝑞
Si y solo si
𝑎0 + 𝑎1 + 𝑎2 + ⋯ + 𝑎𝑘 = 3 𝑝 − 𝑞
Si y solo si
3|(𝑎0 + 𝑎1 + 𝑎2 + ⋯ + 𝑎𝑘 )
Es decir, si y solo si la suma de sus dígitos es divisible por 3.
Ejercicio.
Mediante congruencias determine un criterio de divisibilidad por 11
GRACIAS