主題
Search

同餘


如果兩個數 bc 的差 b-c 可以被一個數 m 整除(即,(b-c)/m 是一個整數),那麼 bc 被稱為“模 m 同餘”。數 m 稱為模數,而語句“bcm 同餘”在數學上寫為

 b=c (mod m).
(1)

如果 b-c 不能m 整除,則稱“bcm 不同餘”,記為

 b≢c (mod m).
(2)

模數 m 在上下文中被理解時,顯式的“(mod m)”有時會被省略,因此在這種情況下,必須注意不要將符號 =等價符號混淆。

b 有時被稱為“基數”,量 c 被稱為剩餘餘數。有幾種型別的剩餘。常用剩餘定義為非負且小於 m,而最小剩餘cc-m,以絕對值較小者為準。

CongruenceClockMinutes

同餘算術可能是最熟悉的時鐘算術的推廣。由於一小時有 60 分鐘,“分鐘算術”使用模數 m=60。如果從過小時 40 分鐘開始,然後等待 35 分鐘,40+35=15 (mod 60),因此當前時間將是過(下一個)小時 15 分鐘。

CongruenceClockHours

類似地,12 小時制時鐘上的“小時算術”使用模數 m=12,因此上午 10 點加五個小時得到 10+5=3 (mod 12),即下午 3 點。

同餘滿足許多重要的性質,並且在數論的許多領域都非常有用。使用同餘,有時可以推匯出簡單的整除性檢驗來檢查給定數字是否可以被另一個數字整除。例如,如果一個數字的各位數字之和可以被 3 (9) 整除,則原始數字可以被 3 (9) 整除。

同餘也有其侷限性。例如,如果 a=bc=d (mod n),則可以得出 a^x=b^x,但通常不能得出 x^c=x^da^c=b^d。此外,透過“滾動溢位”,同餘會丟棄絕對資訊。例如,知道過小時的分鐘數很有用,但知道分鐘數是過哪個小時則通常更有用。

a=a^' (mod m)b=b^' (mod m),則同餘的重要性質包括以下內容,其中 => 表示“蘊含

1. 等價性:a=b (mod 0)=>a=b (可以視為定義)。

2. 確定性:a=b (mod m)a≢b (mod m)

3. 自反性:a=a (mod m)

4. 對稱性:a=b (mod m)=>b=a (mod m)

5. 傳遞性:a=b (mod m)b=c (mod m)=>a=c (mod m)

6. a+b=a^'+b^' (mod m).

7. a-b=a^'-b^' (mod m).

8. ab=a^'b^' (mod m).

9. a=b (mod m)=>ka=kb (mod m).

10. a=b (mod m)=>a^n=b^n (mod m).

11. a=b (mod m_1)a=b (mod m_2)=>a=b (mod [m_1,m_2]),其中 [m_1,m_2]最小公倍數

12. ak=bk (mod m)=>a=b (mod m/((k,m))),其中 (k,m)最大公約數

13. 如果 a=b (mod m),則 P(a)=P(b) (mod m),對於 P(x) 一個多項式

性質 (6-8) 可以透過簡單地定義來證明

a=a^'+rm
(3)
b=b^'+sm,
(4)

其中 rs整數。然後

a+b=a^'+b^'+(r+s)m
(5)
a-b=a^'-b^'+(r-s)m
(6)
ab=a^'b^'+(a^'s+b^'r+rsm)m,
(7)

因此這些性質成立。

同餘也適用於分數(即,有理數)以及整數,並且可以稱為分數同餘


參見

代數同餘, 消去律, 中國剩餘定理, 常用剩餘, 同餘公理, 同餘方程, 同餘的, 整除性檢驗, 向下取整函式, 分數同餘, 小數部分, 函式同餘, 幾何同餘, 最大公約數, 整數除法, 最小公倍數, 線性同餘方程, 最小剩餘, , 模逆元, 模數, 最近整數函式, 二次同餘方程, 二次互反律, , 剩餘, RSA 加密 在 課堂中探索此主題

相關 Wolfram 網站

http://functions.wolfram.com/IntegerFunctions/Mod/

使用 探索

WolframAlpha

更多嘗試

參考文獻

Burton, D. M. "The Theory of Congruences." Ch. 4 in Elementary Number Theory, 4th ed. Boston, MA: Allyn and Bacon, pp. 80-105, 1989.Conway, J. H. and Guy, R. K. "Arithmetic Modulo p." In The Book of Numbers. New York: Springer-Verlag, pp. 130-132, 1996.Courant, R. and Robbins, H. "Congruences." §2 in Supplement to Ch. 1 in What Is Mathematics?: An Elementary Approach to Ideas and Methods, 2nd ed. Oxford, England: Oxford University Press, pp. 31-40, 1996.Hardy, G. H. and Wright, E. M. "Congruences and Classes of Residues," "Elementary Properties of Congruences," "Linear Congruences," "General Properties of Congruences," and "Congruences to Composite Moduli." §5.2-5.4 and Chs. 7-8 in An Introduction to the Theory of Numbers, 5th ed. Oxford, England: Clarendon Press, pp. 49-52 and 82-106, 1979.Hilton, P.; Holton, D.; and Pedersen, J. "A Far Nicer Arithmetic." Ch. 2 in Mathematical Reflections in a Room with Many Mirrors. New York: Springer-Verlag, pp. 25-60, 1997.Jones, G. A. and Jones, J. M. "Congruences." Ch. 3 in Elementary Number Theory. Berlin: Springer-Verlag, pp. 37-63, 1998.Nagell, T. "Theory of Congruences." Ch. 3 in Introduction to Number Theory. New York: Wiley, pp. 68-131, 1951.Séroul, R. "Congruences." §2.5 in Programming for Mathematicians. Berlin: Springer-Verlag, pp. 11-12, 2000.Shanks, D. Solved and Unsolved Problems in Number Theory, 4th ed. New York: Chelsea, p. 55, 1993.

在 上引用

同餘

請引用為

Weisstein, Eric W. "同餘." 來源 Web 資源。 https://mathworld.tw/Congruence.html

學科分類