• 沒有找到結果。

Congruence Equations

N/A
N/A
Protected

Academic year: 2022

Share "Congruence Equations"

Copied!
12
0
0

加載中.... (立即查看全文)

全文

(1)

Aº+

»ñ¬È/P.ó.

(2)

Chapter 4

Congruence Equations

ÉQ3 modulo m ì “≡” |A “=” ×øºÕ, &Æ!øÝ|"DŠ]PÝ®Þ.

9øÝ]PµÌ congruence equation. ÍýL, &Æ©D¡ŠŽŽóÝ congruence equation. 9×a, &ÆÞ"DŠ congruence equation Ý׿J, ¬D¡»yõ§

|CŠ×gÝ congruence equation.

4.1. Š Congruence Equation ÝæJ

›×J;ó94P f(x) (Ç f(x) = cnxn+ · · · + c1x + c0,Í ci ∈ Z),ãy f(x) Ý;ó ÎJó, Þ x ‚×Jó a `, f(a) ) Jó. .hu› m ∈ N, &Ɲ|®§øÝJó aº¸ÿ f(a) ≡ 0 (mod m) (Ç m|f(a)). 09øXbÝJóеÎXÛ݊ congruence equation.

› f(x) = cnxn+ · · · + c1x + c0,Í ci ∈ Z. uáEy m ∈ N, a ∈ Z Î f(x) ≡ 0 (mod m)Ý×͊, Ç f(a) ≡ 0 (mod m). ƒ' b ≡ a (mod m), ã Proposition 3.2.2 á, EŒ i ∈ N /b bi ≡ ai (mod m). ã!× Proposition á cibi ≡ ciai (mod m), ‚ ÿ f(b) ≡ f(a) (mod m). ôµÎ1, u x = a Î f(x) ≡ 0 (mod m) Ý×ÍJóŠ, JE

Œ b ∈ Z ”• b ≡ a (mod m), x = b ù f(x) ≡ 0 (mod m) Ý×͊. X|u x = a Î f (x) ≡ 0 (mod m)Ý×ÍJóŠ, &Æ;ðº1 x ≡ a (mod m) Î f(x) ≡ 0 (mod m) Ý

×͊. Qbb̀3 modulo m ìõ a !õÝJóºÎ f(x) ≡ 0 (mod m) ݊. &ÆÄ6.9°Šà modulo m Ý!õvÝ]PI¶ì, 9øÝ¾]°Þ XbÝJóжì. X|&Æ3— f(x) ≡ 0 (mod m) ݊`, —ÝÎ modulo m Ý!õ v, .h &Æ1 f(x) ≡ 0 (mod m) ݊ÝÍó`, —ÝÎ3 modulo m ìb9KÝ8

²!õvº”• f(x) ≡ 0 (mod m), ‚Ηb9KÍJóŠ.

9͍—¼:, &Æ©ŠŒ×Í modulo m Ý complete residue system S, Q¡Þ S Ý-ô××ñá f(x) , ::ø×°º¸ÿ f(x) ≡ 0 (mod m), £‚µ|0ÕXb ݊Ý. Ä9]°3 m œ`µ•ÿ6@jÝ. .h&ÆTs"×§¡, ‹ 43

(3)

K§Š×°´©„Ý congruence equation ͊ݩP. Äѧø, &Æá¼×Í congruence equation3 modulo m ì͊ÝÍó‹9µÎ m.

Í@î, &ÆGµ#ÇÕ×°Š congruence equation Ý®ÞÝ. 3 modulo m ì 0 a ∈ Z ݶ°D-ôݮޯ@îµÎ3Š ax ≡ 1 (mod m) (Ç ax − 1 ≡ 0 (mod m)) 9×Í congruence equation. ã Proposition 3.2.5 á a õ m !²`, h congruence equation PŠ. ¨²î Proposition 3.2.3, &Æá¼ a õ m !²`h congruence equation 3 modulo m ìb°×Š.

A Lemma 3.4.2 ÎD¡ p βó` x2 ≡ 1 (mod p)݊. h`ã Lemma 3.4.2 &

Æá p βó`bË͊, 5½Î x ≡ 1 (mod p) õ x ≡ −1 (mod p). &ÆèÄ m

βó`, 4Q x ≡ ±1 (mod m) ) x2 ≡ 1 (mod m)9×Í congruence equation Ý Ë͊, ¬h congruence equation bb9yË͊. »A x2 ≡ 1 (mod 15)݊µÎ x ≡ ±1 (mod 15) õ x ≡ ±4 (mod 15) 9 4 ͊. 9õ&Æ×!á×Í n g94P‹

9b n ͊!, T©½¥Œ.

×Í n gÝ@;ó94P‹9b n ÍŠÝæ.Î. @;ó94P ôbXÛÝ t°æ§, 9Íæ§¬à3Jó94P. Ä tPÎ×Ít{g4;ó 1 ÝJ;ó94P`, )àt°æ§. ãy&ƬmŠ×ÝP², 9…&ÆG"Dt PÎ×g94Pݵ.

Lemma 4.1.1. ƒ' f(x) Î×Í n g (n ≥ 1) ÝJ;ó94Pv a ∈ Z. JD3×Í n − 1 gÝJ;ó94P h(x) |C r ∈ Z ”•

f (x) = (x − a)h(x) + r.

Proof. E f(x) Ýgó n †ó.hû°. ƒ' f(x) Î 1 g94P, Ç f(x) = c1x + c0,J

ƒ h(x) = c1 v r = ac1+ c0,&Æÿ (x − a)h(x) + r = f(x).

Tàó.hû°, ƒ'Egó n < k ÝJ;ó94P g(x), /D3 n − 1 gÝJ;ó 94P h0(x) |C r0 ∈ Z ¸ÿ g(x) = (x − a)h0(x) + r0. ¨Ê f(x) Ýgó n = k Ý, ôµÎ1 f(x) = ckxk+ ck−1xk−1+ · · · + c1x + c0, Í ci ∈ Z v ck 6= 0. ƒ g(x) = f (x) − (x − a)ckxk−1,J g(x) = (ck−1+ cka)xk−1+ · · · c1x + c0 Î×Ígóy k ÝJ;ó94P. Æàhûƒ'áD3×góy k − 1 ÝJ;ó94P h0(x) |C r0 ∈ Z¸ÿ g(x) = (x − a)h0(x) + r0. ôµÎ1 f(x) = (x − a)ckxk−1+ (x − a)h0(x) + r0. ƃ h(x) = ckxk−1+ h0(x) |C r = r0,&Æb h(x) Î×Ígó k − 1 ÝJ;ó94

Pv r ∈ Z ”• f(x) = (x − a)h(x) + r. ¤

à Lemma 4.1.1, &Ɲ|Jÿ p Îײó`3 modulo p ì×Í n gÝ congruence equation t9b n ͊. Ä´&ÆmE×Í congruence equation ÝgóìÍL.

Definition 4.1.2. ƒ' f(x) = cnxn+ · · · + c1x + c0 Î×ÍJ;ó94P, › m ∈ N.

(1) u m - cn,J&ÆÌ f(x) 3 modulo m ìÎ×Ígó (degree) n Ý94P.

(4)

4.1. Š Congruence Equation ÝæJ 45

(2) u m - cr ¬ m|ci, for r < i ≤ n, J&ÆÌ f(x) 3 modulo m ìÎ×Ígó r Ý94P.

AŒ×ÍJ;ó94P g(x) Í3 modulo m ìgó n, J&ÆÌ g(x) ≡ 0 (mod m)Î×Í n gÝ congruence equation.

ãhL&Æá¼u f(x) Î×Í3 modulo m ìgó n ÝJ;ó94P, b

 f(x) ͖ÝgóÎy n Ý. Ä&Ɲ|0Õ×Ígó n ÝJ;ó94P g(x) (»AÀœ f(x) | m JtÝ4) ¸ÿE×Jó a, /b f(a) ≡ g(a) (mod m).

X| f(x) ≡ 0 (mod m) ݊ºõ g(x) ≡ 0 (mod m) 8!. ãy&Æ©nT congruence equation݊, X|*¡ D¡×Í n gÝ congruence equation f(x) ≡ 0 (mod m) `, 

´P, &Ƶà#ƒ' f(x) Ýgó n.

Theorem 4.1.3 (Lagrange). ›ײó p |C×J;ó94P f(x). AŒ3 modulo p

ì f(x) ≡ 0 (mod p) Î×Ígó n Ý94P, J f(x) ≡ 0 (mod p) 3 modulo p  ì‹9b n ͊.

Proof. ´×P, &ƃ' f(x) = cnxn+ · · · + c1x + c0,Í p - cn. &ÆE n †hû°.

´ f(x) = c1x + c0 Î×gJ;ó94P`, ƒ' x ≡ a (mod p) Î f(x) ≡ 0 (mod p) Ý×͊. ¨¨ƒ' x ≡ b (mod p) ôÎ×͊, ùÇ c1a + c0 ≡ c1b + c0 (mod p). . gcd(p, c1) = 1, ã Lemma 3.2.4 ÿ a ≡ b (mod p). ôµÎ1 n = 1 `‹9b×͊.

àhûƒ' n < k `×Í n gÝ congruence equation ‹9b n ͊. ¨Ê n = k Ý. u x ≡ a (mod p) Î f(x) ≡ 0 (mod p) Ý×͊, ¿à Lemma 4.1.1 áD3

×Ígó k − 1 ÝJ;ó94P h(x) |C r ∈ Z ¸ÿ f(x) = (x − a)h(x) + r. µƒ

' x ≡ a (mod p) Î f(x) ≡ 0 (mod p) Ý×͊, Ç f(a) ≡ 0 (mod p), Þ a ‚áÿ f (a) = r ≡ 0 (mod p). ¨¨ƒ' x ≡ b (mod p) ôÎ×͊, Jã f(b) = (b − a)h(b) + r á (b − a)h(b) ≡ 0 (mod p). ðŽ, u b 6≡ a (mod p), Ç p - (b − a), Jã Lemma 1.4.2 á, p|h(b), ôµÎ1 x ≡ b (mod p) Î h(x) ≡ 0 (mod p) Ý×͊. .h&Æá¼ k g congruence equation f (x) ≡ 0 (mod p)݊ x ≡ a (mod p) T h(x) ≡ 0 (mod p) ݊.

Q‚ h(x) ≡ 0 (mod p) Î×Ígóy k Ý congruence equation, Ƶhû°ƒ'͋

9b k − 1 ͊, ÆÿJ f(x) ≡ 0 (mod p) ‹9b k ͊. ¤

t¡&Ægèø, ŠŠ congruence equation f(x) ≡ 0 (mod m) mފÝXbµ¶

ì¼, ׺ފ| x ≡ a (mod m) 9øÝP¶ì¼. Äb` Ý]-&ƺފ|

modulo½ÝóÝ]P¶ì. »AŠ x2≡ 1 (mod 8), &Æs¨XbÝóK”•, X|

Ý]-&Ɲ|ފ| x ≡ 1 (mod 2) ¶ì. Ċ¥Œ9ËP¶ì¡ &ÆèCŠÝ Íó`mèC3 modulo %‚ì݊ÝÍó. »A3h»&Ɲ|1 x2≡ 1 (mod 8) 3 modulo 8 ìb x ≡ 1, 3, 5, 7 (mod 8), 4 ͊, ô|13 modulo 2 ìb×͊.

(5)

4.2. ËÍðàÝ]°

&Æ+ÛËËðàÝ]°Þ×͛Ý congruence equation ;WŽ×FÝP, ¼O

Š.

39×;&ÆKƒ' f(x) = anxn+ · · · + a1x + a0,Í ai ∈ Z,‚ m ∈ N Îכ

ÝÑJó. &Ɗ—¡ f(x) ≡ 0 (mod m) 9×Í congruence equation.

Ï×ËÎ9øÝ: AŒ d Î an, . . . , a1, a0 |C m ÝÑ2.ó. ôµÎ1&Ɲ|Þ ai C m ¶W an= a0nd, . . . , a1 = a01d, a0 = a00d|C m = m0d, Í9° a0i∈ Z v m0 ∈ N.

ƒ g(x) = a0nxn+ · · · a01x + a00,&Ƽ"D f(x) ≡ 0 (mod m) C g(x) ≡ 0 (mod m0) 9Ë Í congruence equation  Ýn;.

Proposition 4.2.1. › m ∈ N C f(x) = anxn+ · · · + a1x + a0, Í ai ∈ Z. ƒ' d Î an, . . . , a1, a0 C m ÝÑ2.óv an= a0nd, . . . , a1 = a01d, a0 = a00d |C m = m0d. ƒ g(x) = a0nxn+ · · · + a01x + a00.

u x ≡ c (mod m0) Î g(x) ≡ 0 (mod m0) Ý×͊, JEŒ t ∈ Z, x ≡ c + m0t (mod m) f(x) ≡ 0 (mod m) ݊. ¨×]«, u g(x) ≡ 0 (mod m0) PŠ, J f(x) ≡ 0 (mod m) PŠ.

Proof. x ≡ c (mod m0) g(x) ≡ 0 (mod m0)Ý×͊, î m0|a0ncn+ · · · + a01c + a00. . hÿ m0d|a0ndcn+ · · · + a01dc + a00d,ôµÎ1 m|ancn+ · · · a1c + a0. .h x ≡ c (mod m) Î f(x) ≡ 0 (mod m) Ý×͊.

EŒ t ∈ Z |C r ∈ N, ãy (c + m0t)r = cr+ rcr−1m0t + · · · + rc(m0t)r−1+ (m0t)r,

&Ɲ|Þ (c + m0t)r ¶W cr+ m0λr, Í λr ∈ Z. .h

f (c + m0t) = an(c + m0t)n+ · · · + a1(c + m0t) + a0 = f (c) + anm0λn+ · · · + a1m0λ1. . d|ai,Æá dm0|aim0,ôµÎ1 aim0 ≡ 0 (mod m). X|&Æÿ

f (c + m0t) ≡ f (c) ≡ 0 (mod m),

ôµÎ1EŒ t ∈ Z, x ≡ c + m0t ôºÎ f(x) ≡ 0 (mod m) Ý×͊.

¨×]«, u x ≡ c (mod m) f(x) ≡ 0 (mod m) Ý×͊, Ç m|ancn+· · ·+a1c+a0, J m0|a0ncn+ · · · + a01c + a00. ôµÎ1 x ≡ c (mod m0) g(x) ≡ 0 (mod m0) Ý×͊.

.hu g(x) ≡ 0 (mod m0) PŠ, J f(x) ≡ 0 (mod m) ùPŠ. ¤ Proposition 4.2.1×å&Æ, AŒ x ≡ c (mod m0) Î g(x) ≡ 0 (mod m0) Ý×͊, J EŒ t ∈ Z, x ≡ c + m0t (mod m) -ºÎ f(x) ≡ 0 (mod m) Ý×͊. Ä9…ãy&

ƊÊ3 modulo m ݵ, œ9ŠÎ¥Ý. ¯@îu t ≡ t0 (mod d),Jã d|t − t0,

ÿ dm0|m0(t − t0). ôµÎ1 c + m0t ≡ c + m0t0 (mod m). .h&Æ©ŠÊ x ≡ c + m0t (mod m)Í 0 ≤ t ≤ d − 1, µ|Ý.

Proposition 4.2.1Þ×Í modulo m Ý congruence equation ;W×Í modulo f´

Ý m0 Ý congruence equation. 9ø×¼ãy3 modulo m0 슁ÊÝó´K, TŒÞ

(6)

4.2. ËÍðàÝ]° 47

æ¼Ý®Þ;Ý. Q‚u an, . . . , a1, a0 õ m Î!²Ý, &Æ)Q|Ê modulo ´

ÝÂ::b^bŠ. ¯@î, &Æb|씌.

Lemma 4.2.2. › m ∈ N C×J;ó94P f(x). u m0|m v f(x) ≡ 0 (mod m0) P

Š, J f(x) ≡ 0 (mod m) ùPŠ.

Proof. ƒ' f(x) ≡ 0 (mod m) bŠv x ≡ c (mod m) Í׊, Ç m|f(c). ãy m0|m, á m0|f (c), ôµÎ1 x ≡ c (mod m0) f(x) ≡ 0 (mod m0) ׊. hƒ' f(x) ≡ 0 (mod m0)PŠë;, ÆÿJ f(x) ≡ 0 (mod m) PŠ. ¤ Lemma 4.2.2 õ Proposition 4.2.1 ! 3y Proposition 4.2.1 Þæ94P&;ó t|2.ó¡Ê modulo m0 Š, ‚v¿à͊ÿÕæ94P3 modulo m Š, ‚ Lemma 4.2.2¬^b;Ž94P, vGáæ94P3 modulo f´Ý m0 ìPŠ.ÿ æ94P3 modulo m ìPŠ. ¬P¾\3 modulo m0 ìbŠÎ͝ÿ3 modulo m

ìbŠ, ‚vôP.ÿŠP. Äu&Æ9Ê¿Í m Ý.óXÿÝ congruence equations, @@|Q&ÆÿáŠ. 9µÎ&Ɗ"DÝÏÞË]°.

9×ËðàÝ]°µÎÞ m ¶W².óÝ5Š, Ç m = pn11· · · pnrr, Í9° pi 8²²ó. #½GŠ"DEXb i = 1, . . . , r, f(x) ≡ 0 (mod pnii)ŠÝµ, . &

Æb|씌.

Proposition 4.2.3. ƒ' m = pn11· · · pnrr, Í9° pi 8²²óv f(x) ×J;ó9 4P. uD3 i ∈ {1, . . . , r}, ¸ÿ f(x) ≡ 0 (mod pnii) PŠ, J f(x) ≡ 0 (mod m) PŠ.

¨×]«, EŒ i ∈ {1, . . . , r}, x ≡ c (mod pnii) / f(x) ≡ 0 (mod pnii) ݊uv°u x ≡ c (mod m) f(x) ≡ 0 (mod m) ÍŠ.

Proof. ´, ãy pnii|m, .hà Lemma 4.2.2 á, u f(x) ≡ 0 (mod pnii) PŠ, J f (x) ≡ 0 (mod m)PŠ.

¨ƒ' x ≡ c (mod m) f(x) ≡ 0 (mod m) Ý×͊, ôµÎ1 m|f(c), ãyEŒ

i ∈ {1, . . . , r} /”• pnii|m, á pnii|f (c). .háEXbÝ i ∈ {1, . . . , r}, x ≡ c (mod pnii) f(x) ≡ 0 (mod pnii) ݊.

D, uEXb i ∈ {1, . . . , r}, x ≡ c (mod pnii) / f(x) ≡ 0 (mod pnii) ݊. Ç pnii|f (c). Jãy9° pnii ÎËË!²Ý, ¿à Proposition 1.2.7(2) á pn11· · · pnrr|f (c),ùÇ

m|f (c). ÆÿJ x ≡ c (mod m) f(x) ≡ 0 (mod m) Ý×͊. ¤

Proposition 4.2.3×å&Æ, ub×Í pi ¸ÿ f(x) ≡ 0 (mod pnii)PŠ, £‚ f(x) ≡ 0 (mod m) µPŠ. ¬ÎAŒEXbÝ pi, f (x) ≡ 0 (mod pnii) /bŠ, ÎÍî f(x) ≡ 0 (mod m)bŠ÷? ŒnÎùÝ. 9Î. 4QEŒÝ pi Šÿ݊ÎÄ8!, ¬¿à|

¡º"DÝ»yõ§0Õ×Jó!`”• modulo pnii ìN͊ÝP, .hã Proposition 4.2.3ÿá f(x) ≡ 0 (mod m) bŠ. nyhI |¡3"D»yõ§`&

ƺ1€.

(7)

4.3. ×gÝ Congruence Equations

&Æ"DtŽÝ×Ë congruence equation, ×gÝ congruence equation. &ÆÞºá¼ ͊ÝÍóCŠÝP.

› m ∈ N XÛ modulo m Ý×g congruence equation Ç ax ≡ b (mod m) 9ø

PÝ congruence equation, Í a, b ∈ Z v m - a. ´&Ƽ::A¢¾½×Í×gÝ congruence equationÎÍbŠ.

Proposition 4.3.1. › m ∈ N. Ê×gÝ congruence equation ax ≡ b (mod m), Í

 m - a. ƒ' d = gcd(m, a). J d|b uv°uh congruence equation bŠ.

Proof. . d = gcd(m, a) Æã Corollary 1.2.5 áD3 r, s ∈ Z ¸ÿ d = rm + sa.

¨ƒ' d|b, ÇD3 b0 ∈ Z¸ÿ b = b0d. .h b = b0d = b0rm + b0sa,Æuƒ x = sb0,J ax = asb0 = b − b0rm. ôµÎ1 m|ax − b, ÿJ x ≡ sb0 (mod m) ax ≡ b (mod m) 

׊.

D, u x ≡ c (mod m) ax ≡ b (mod m) ׊, Ç m|ac − b. ðŽ, D3 r ∈ Z

¸ÿ ac − b = mr, ôµÎ1 b = ac − mr. ¨ãy d = gcd(m, a), &Æb d|m v d|a, Æÿ

J d|b. ¤

ã Proposition 4.3.1 ÝJ€&Æá¼, › m ∈ N, v a, b ∈ Z. ƒ' gcd(m, a) = d v d|b. u r, s, b0 ∈ Z ”• d = rm + sa v b = b0d, J x ≡ sb0 (mod m) ax ≡ b (mod m) Ý×͊. Ä9¬îXb݊KµhÿÕ. ŠA¢0ÕXb݊÷? ¶ï|G&

ÆðàÝ]°µÎ"Dˊ Ýn;, ¿àáÝ×͊¼0ÕXb݊. #ì¼

&Ƽ: ax ≡ b (mod m) ͊ Ýn;.

Proposition 4.3.2. › m ∈ N, Ê×gÝ congruence equation ax ≡ b (mod m). ƒ ' d = gcd(m, a) vá x ≡ c (mod m) Î ax ≡ b (mod m) Ý×͊, JEŒ ax ≡ b (mod m) ݊ c0 Kº”• c0 ≡ c (mod m/d). D, EŒÝ t ∈ Z,

x = c +m dt ù ax ≡ b (mod m) Ý×͊.

Proof. ƒ' x ≡ c0 (mod m)ù ax ≡ b (mod m) Ý×͊, Jãyá x ≡ c (mod m) ׊, Æÿ ac ≡ b ≡ ac0 (mod m). .hã Proposition 3.2.3 á c ≡ c0 (mod m/d).

D, u c0 = c + (m/d)t, Í t ∈ Z, J ac0 = ac + (a/d)mt. . d = gcd(m, a), Æ á a/d ∈ Z, ôµÎ1 ac0 ≡ ac (mod m). Äá ac ≡ b (mod m), X|ÿJ ac0 ≡ b

(mod m). ¤

Proposition 4.3.2 ×å&ÆÊ congruence equation ax ≡ b (mod m). u x ≡ c (mod m)Î×͊, J͸݊/ c + (m/d)t 9øÝP, Í d = gcd(m, a) v t ∈ Z.

.há3 modulo m ì x ≡ c + (m/d), x ≡ c + 2(m/d), . . . , x ≡ c + (d − 1)(m/d) Kº

(8)

4.3. ×gÝ Congruence Equations 49

Î ax ≡ b (mod m) ݊. &ÆÞºJ€9°Š3 modulo m ì/8², ‚v3 modulo mìXb݊K 9°P, .há) Proposition 4.3.1 |C Proposition 4.3.2, &

Æb|씌.

Theorem 4.3.3. › m ∈ N, a, b ∈ Z Ê×gÝ congruence equation ax ≡ b (mod m).

ƒ d = gcd(m, a).

(1) u d - b, J ax ≡ b (mod m) PŠ.

(2) u d - b, J ax ≡ b (mod m), 3 modulo m ìb d ͊. vuá x ≡ c (mod m) ׊, J

x ≡ c +m

dt, t = 0, 1, . . . , d − 1 ax ≡ b (mod m) 3 modulo m ìXb݊.

©½2, a õ m !²`, EyXb b ∈ Z, ax ≡ b (mod m) /bŠ, v͊3 modulo m

ìΰ×Ý.

Proof. µ Proposition 4.3.1 |C Proposition 4.3.2, &Æ©yìŠJ€ ax ≡ b (mod m) u bŠ, J3 modulo m ìb d ͊. .h&ÆmJ€Ë¯: (×) 0 ≤ i, j ≤ d − 1 v i 6= j ` c + mi/d 6≡ c + mj/d (mod m) (Ah-ÿ 0 ≤ i ≤ d − 1 ` c + mi/d 3 modulo m ì/8²). (Þ) EŒ t ∈ Z, /D3 i ∈ {0, 1, . . . , d − 1} ¸ÿ c + mt/d ≡ c + mi/d (mod m) (Ah-ÿJXb݊@¶ c + mi/d, Í 0 ≤ i ≤ d − 1 ÝP).

ƒ' 0 ≤ i, j ≤ d − 1 v i 6= j. ´×P&ƃ' i > j, h` 1 ≤ i − j ≤ d − 1. u c + mi/d ≡ c + mj/d (mod m), Ç (m/d)i ≡ (m/d)j (mod m). ãy gcd(m/d, m) = m/d, Æã Proposition 3.2.3 á i ≡ j (mod m/(m/d)), Ç i ≡ j (mod d). ôµÎ1 d|i − j. h õ 1 ≤ i − j ≤ d − 1 ë;, ÆÿJ c + mi/d 6≡ c + mj/d (mod m).

¨á ax ≡ b (mod m) ݊/ c + mt/d, Í t ∈ Z 9øÝP. EŒ t ∈ Z, ã Theorem 1.2.1áD3 h, r ∈ Z ¸ÿ t = hd + r, Í 0 ≤ r ≤ d − 1. .hÿ

c + mt/d = c + m(hd + r)/d = c + mh + mr/d.

ƃ i = r, &Æb 0 ≤ i ≤ d − 1 v c + mt/d ≡ c + mi/d (mod m). ôµÎ1 ax ≡ b (mod m)݊/ c + mi/d, Í 0 ≤ i ≤ d − 1 9øÝP. ¤ ã Theorem 4.3.3 &Æáu ax ≡ b (mod m) bŠ, ©ŠŠŒÍ×͊, ̀݊µ

ÿÕ. ‹y0ŠÝ]°, tÝ Proposition 4.3.1 ÝJ€X+ÛÝ]°², ¯@î&Æ

|¿à Proposition 4.2.1 XèÝ]°¼Š. . h`u d = gcd(m, a), J d|b, ôµÎ 1 d Î a, b õ m Ý2.ó. ÆuÞ a, b, m 5½¶W a = a0d, b = b0dõ m = m0dÝ

P (Í a0, b0, m0 ∈ Zv gcd(m0, a0) = 1),¿à Proposition 4.2.1 &Æá|Š a0x ≡ b0 (mod m0) 9×Í congruence equation. ãy gcd(a0, m0) = 1,µ Proposition 3.2.5 áD3 e ∈ Z¸ÿ a0e ≡ 1 (mod m0). ÆÞ a0x ≡ b0 (mod m0) Ë\¶î e ÿ

x ≡ a0ex ≡ b0e (mod m0).

(9)

.hÿ x ≡ b0e (mod m0) a0x ≡ b0 (mod m0) Ý×͊, .‚ã Proposition 4.2.1 ÿ á x ≡ b0e (mod m) ax ≡ b (mod m) Ý×͊. ‹yh e (Ç a0 3 modulo m0 ì ݶ°D-ô) u|0, ¿à Corollary 3.3.3 (Euler’s Theorem) 0Õ. &Æ:|ì Ý».

Example 4.3.4. &ƊŠ 16x ≡ 8 (mod 52). . gcd(52, 16) = 4 v 4|8, Æáh congruence equation ÄbŠ, v3 modulo 28 ìb 4 ͊.

´&ÆŠ 4x ≡ 2 (mod 13). ãy 4 × 10 ≡ 1 (mod 13), &Æÿá x ≡ 2 × 10 ≡ 7 (mod 13) 4x ≡ 2 (mod 13) Ý×͊. .‚ÿ x ≡ 7 (mod 52) 16x ≡ 8 (mod 52) Ý

×͊ (Ç 16 × 7 = 112 = 52 × 2 + 8).

‹ỳ݊, ãy 52/4 = 13 Ƶ Theorem 4.3.3 á3 modulo 52 ì x ≡ 7, 20, 33, 46 (mod 52) 16x ≡ 8 (mod 52) ÝXbŠ.

4.4. Chinese Remainder Theorem

ƒ' m = pn11· · · pnrr Í pi 8²²óv f(x) Î×ÍJ;ó94P. Proposition 4.2.3

×å&ÆuEXb i ∈ {1, . . . , r}, f(x) ≡ 0 (mod pnii) /bŠvb!Š, J f(x) ≡ 0 (mod m)-bŠ. A¢0Õ!Š÷? »yõ§ (Chinese Remainder Theorem) ×å

&Æ©ŠÍ½2Þ f(x) ≡ 0 (mod pnii) ݊0Õ, µÿÕ!Š.

Theorem 4.4.1 (Chinese Remainder Theorem). ›×à m1, . . . , mr ∈ N Í9° mi

/ËË!² (Ç i 6= j `, gcd(mi, mj) = 1). JEŒÝ×à c1, . . . , cr∈ Z /0Õ×

Jó c ¸ÿ

c ≡ ci (mod mi), ∀ i ∈ {1, . . . , r}.

Proof. Ý]-, &ƃ M = m1· · · mr vEŒ i ∈ {1, . . . , r}, ƒ Mi = M/mi.

Š¥Œ9… Mj õ mi b|ìÝn;: (1) u i 6= j, J mi|Mj. (2) gcd(Mi, mi) = 1. 9… (1)ã Mj ÝL8*œ|ÿá, ‹y (2) ´×P (Žð×ì mi Ý5), &ÆG mJ€ gcd(M1, m1) = 1. ƒ' M1, m1 !², ÇD3ײó p ¸ÿ p|M1 v p|m1. Q‚

µL M1 = m2· · · mr,Æã Corollary 1.4.3 áD3 i ∈ {2, . . . , r} ¸ÿ p|mi. ¬Î i 6= 1, µƒ' gcd(m1, mi) = 1,Æ p|m1 v p|mi õ m1, mi !²8ë;, ÆÿJ gcd(M1, m1) = 1.

#ì¼&ƏŠ0Õ×à t1, . . . , tr ∈ Z ¸ÿEXbÝ i ∈ {1, . . . , r}, t = c1M1t1+ · · · + crMrtr

/”• t ≡ ci (mod mi). Q‚E¢Ý×à t1, . . . , tr ∈ Z |CכÝ i ∈ {1, . . . , r}, ã (1) (Ç mi|Mj for i 6= j) &Æ/b t ≡ ciMiti (mod mi). Æ&ÆGm0Õ ti ∈ Z¸ÿ ciMiti≡ ci (mod mi)ǝ. Q‚ã (2) (Ç gcd(Mi, mi) = 1)|C Proposition 3.2.5 áD3 ei ∈ Z ¸ÿ Miei≡ 1 (mod mi),Æuƒ ti = ei,Jÿ t ≡ ciMiei ≡ ci (mod mi). .hEX b i ∈ {1, . . . , r}, &Æ0Õ ei ¸ÿ Miei ≡ 1 (mod mi),ƒ c = c1M1e1+ · · · + crMrer, Jÿ c ≡ ci (mod mi), ∀ i ∈ {1, . . . , r}. ¤

(10)

4.4. Chinese Remainder Theorem 51

Š¥Œ! 9° mi ÎËË!²`, ›ŒÝ c1, . . . , cr Œÿ0Õ×ÍJó c

¸ÿ c ≡ ci (mod mi) EXbÝ i ∈ {1, . . . , r} KWñ. »A m1 = 4, m2 = 6`uÊ c1 = 1, c2 = 2, J0Õ×Jó c !`”• c ≡ 1 (mod 4) v c ≡ 2 (mod 6). 9Î.

u c ≡ 1 (mod 4) î c 4k + 1 ÝP, ÆÄ ó. Q‚u c ≡ 2 (mod 6), J c 6k + 2 P, Ä ‰ó. .h Q0Õ×JóÎóêΉó.

×¼1&Ɲ|Þ»yõ§:WΊA









x ≡ c1 (mod m1) x ≡ c2 (mod m2)

... ... x ≡ cr (mod mr)

9øÝÐñ]P. ×¼1Ðñ]PΊ0Õ×Í!Š!`Ð)9 r ÍPŽÆR

¼´p. ‚3 Theorem 4.4.1 ÝJ€, |:Œ¢ó t1, . . . tr Ý', µÎŠ.9 r ÍÐñÝP;W r Í}ñÝPͽŠŒ ti ¼, ŠQµŽŽÝ. &Ƽ::|ìÝ»

.

Example 4.4.2. › m1= 3, m2 = 4, m3 = 5|C c1 = 2, c2= 1, c3 = 3&ÆT0Õ

×Jó c ¸ÿ c ≡ ci (mod mi), ∀ i ∈ {1, 2, 3}. ôµÎ10Õ c !`”•



c ≡ 2 (mod 3) c ≡ 1 (mod 4) c ≡ 3 (mod 5)

µï Theorem 4.4.1 ÝÐr°&Æb M1 = 20, M2 = 15 |C M3 = 12. ´&Æ0Õ e1 ∈ Z ¸ÿ M1e1 ≡ 1 (mod m1), Ç 20e1 ≡ 1 (mod 3), ôµÎ1”• 2e1 ≡ 1 (mod 3).

ãh0Õ e1= 2. !§&Ɗ0Õ e2, e3 5½”• 15e2≡ 1 (mod 4) (Ç 3e2 ≡ 1 (mod 4))

|C 12e3 ≡ 1 (mod 5) (Ç 2e3≡ 1 (mod 5)). ÿ e2 = 3õ e3 = 35½”•îP. ƃ

c = 2 × 20 × 2 + 1 × 15 × 3 + 3 × 12 × 3 = 233”• 233 ≡ 2 (mod 3), 233 ≡ 1 (mod 4) | C 233 ≡ 3 (mod 5).

G«èÄ, › m ∈ N, ƒ' m = pn11· · · pnrr, Í pi 8²²ó. AŒ f(x) Î×Í J;ó94P, ŠŠ f(x) ≡ 0 (mod m), &Ɲ|ENÍ pi ÊŠ f(x) ≡ 0 (mod pnii).

AŒb×Í pi sß f(x) ≡ 0 (mod pnii)PŠÝµ, £‚µ Proposition 4.2.3 á f(x) ≡ 0 (mod m) PŠ. AŒN×Í pi /º¸ÿ f(x) ≡ 0 (mod pnii), Jµ Proposition 4.2.3 á,

mŠÐñ]P 









f (x) ≡ 0 (mod pn11) f (x) ≡ 0 (mod pn22)

... ...

f (x) ≡ 0 (mod pnrr)

b×!Šÿ f(x) ≡ 0 (mod m) ݊. ŠÐñ]ÎæpÝ, ‚»yõ§×å&

Ɲ|āʊÐñP, ͽފOŒ-ÿÕ!݊.

(11)

Corollary 4.4.3. ƒ' m = pn11· · · pnrr, Í9° pi 8²²óv f(x) ×J;ó94 P. JEŒ i ∈ {1, . . . , r}, f(x) ≡ 0 (mod pnii) /bŠuv°u f(x) ≡ 0 (mod m) bŠ.

Proof. µ Proposition 4.2.3 á, AŒ f(x) ≡ 0 (mod m) bŠ, JEŒ i ∈ {1, . . . , r}, f (x) ≡ 0 (mod pnii)/bŠ.

¨ƒ'EŒ i ∈ {1, . . . , r}, f(x) ≡ 0 (mod pnii) /bŠv x ≡ ci (mod pnii) Í׊.

ãy9° pnii ÎËË!²ÝƵ Theorem 4.4.1 á, D3 c ∈ Z ”•EŒ i ∈ {1, . . . , r} / b c ≡ ci (mod pnii). ôµÎ1Œ i ∈ {1, . . . , r}, x ≡ c (mod pnii) f(x) ≡ 0 (mod pnii)

׊. Æ¿à Proposition 4.2.3 ÿá x ≡ c (mod m) f(x) ≡ 0 (mod m) ׊. ¤

&Ƶ¼:×Í9]«ÝŽ». 4Q9ìÝ»|à#‚óCÿՊŒ, ¬Î&

Æ©ÎT¿àh»¼ýŠ9…XàÝÃF, X|T݊T½¥yA¢TàX.Ý ]°‚3yŠŒ ¢.

Example 4.4.4. &ƼŠ x2 ≡ 1 (mod 15). µG«”Œá&Ɲ|5½Ê x2 ≡ 1 (mod 3) C x2 ≡ 1 (mod 5) ݊. . 3 õ 5 / ²ó, µ Lemma 3.4.2 á x ≡ ±1 (mod 3)õ x ≡ ±1 (mod 5) 5½ x2≡ 1 (mod 3) õ x2 ≡ 1 (mod 5) Š. .h&Ɗ

0Õ|ìݰÍÐñÝ congruence equation:

(1)

½ x ≡ 1 (mod 3) x ≡ 1 (mod 5) , (2)

½ x ≡ −1 (mod 3) x ≡ −1 (mod 5) , (3)

½ x ≡ −1 (mod 3) x ≡ 1 (mod 5) , (4)

½ x ≡ 1 (mod 3) x ≡ −1 (mod 5) .

(1) õ (2) &Ɯ|:Œ5½ãJó 1 õ −1 µ5½”• (1) õ (2). ‚ 11 |”

• (3), 4 |”• (4). X|ã Proposition 4.2.3 &Æá x ≡ 1, −1, 11, 4 (mod 15) K x2 ≡ 1 (mod 15)݊. &Æ0Õ x2≡ 1 (mod 15)3 modulo 15 ìÝ 4 ͊, ¬î µ©b9 4 ͊. ĝ|Š•™J×ì3 modulo 15 ì@@Gb9 4 ͊.

3îÍ»&ƊŒ x2≡ 1 (mod 15)3 modulo 15 ìÝ 4 ͊¬ö@ÎÍ Gb9 4 ŠÎ. &Æá3¿à»yõ§`, ÎÍb̀݊. ôµÎ1 Theorem 4.4.1©×å&ƊÝD3P, ¬Î×å&ÆÎÍb̀Š. Q&ÆKἺbPM9Š,

¬Î̀݊A¢ÿá÷? &Æà×gðà݀]°, ::Ë͊ Ýn; ¢, Š QµÞXb݊¶ìÝ.

Theorem 4.4.5. ›×à m1, . . . , mr∈ N Í9° mi /ËË!². ƒ M = m1· · · mr, JEŒÝ×à c1, . . . , cr∈ Z |ìÐñÝ congruence equation









x ≡ c1 (mod m1) x ≡ c2 (mod m2)

... ... x ≡ cr (mod mr)

3 modulo M ìD3°×Ý×͊. ¯@îu c ∈ Z ”•hÐñ congruence equation, JEŒ c0 ∈ Z ”• c0 ≡ c (mod M ) /º”•hÐñ congruence equation.

(12)

4.4. Chinese Remainder Theorem 53

Proof. Theorem 4.4.1JÿD3P, &ƊJ€3 modulo m1· · · mr ì͊°×.

ƒ' c, c0∈ Z /”•|îÐñÝ congruence equation. ôµÎ1EŒ i ∈ {1, . . . , r}

&Æ/b c ≡ ci (mod mi)v c0≡ ci (mod mi). .hEŒ i ∈ {1, . . . , r} /b mi|c − c0. Q‚9° mi ËË!², Æ¿à Proposition 1.2.11(2), &Æÿ m1· · · mr|c − c0, Ç c ≡ c0 (mod M ).ôµÎ13 modulo M ì͊°×.

¨×]«, u c ”•Ðñ congruence equation v c0 ∈ Z ”• c0 ≡ c (mod M ), Jãy EŒ i ∈ {1, . . . , r}, mi|M ,Æá c0 ≡ c ≡ ci (mod mi). ùÇ c0 ”•hÐñ congruence

equation. ¤

»A3 Example 4.4.2 , &Æá¼ x = 233 ”•



x ≡ 2 (mod 3) x ≡ 1 (mod 4) x ≡ 3 (mod 5)

9×àÐñÝ congruence equation, X|ã Theorem 4.4.5 áŒÝJó c ”• c ≡ 233 ≡ 53 (mod 60)K|”•9×àÐñ congruence equation. QÝôGb”• c ≡ 53 (mod 60) ÝJ󺔕hÐñ congruence equation.

Theorem 4.4.5f Theorem 4.4.1 J. . 3 Theorem 4.4.1 &ÆGèCŠÝD3 P, ‚ Theorem 4.4.5 èCŠ3 modulo m1· · · mr ìÎD3v°×Ý, ‚v.‚ã×

Š0ÕXb݊. bÝhºÞ˧5¼—, ‚à#—¡´JÝ Theorem 4.4.5 ¬ Ì Chinese remainder theorem. &ÆÞ˧5xŠÎ. úŸ»yõ§

ŠÝD3PCA¢0Õ׊.

參考文獻

相關文件

• To the right of the Draw mode buttons you find push buttons through which you can access all the functions that you need to define and solve the PDE problem: define

The five-equation model system is composed of two phasic mass balance equations, the mixture momentum equation, the mixture total energy equation, and an evolution equation for

The first equation gives  = −1, but this does not satisfy the other equations, so the particles do not collide.. All

[r]

“On the Congruence of Numbers”, David Smith E., eds., A Source Book in Mathematics (New York: Dover Publications, INC), pp. The Rainbow

這一組聯立的 congruence equation, 所以由 Theorem 4.4.5 知任意的整數 c 滿足 c ≡ 233 ≡ 53 (mod 60) 都可以滿足這一組聯立 congruence equation.. 有的書不會將兩定理分開來談,

既然在 modulo m 之下 “ ≡” 可以如 “=” 一樣運算, 我們同樣的可以探討解方程式的問題.. 這樣的方程式就稱為

Silverman A Friendly Introduction to Number Theory (Prentice Hall, Third