modular arithmetic کیا ہے؟

17 = 5 (mod 12)
17 اور 5 کو 12 سے تقسیم کرنے پر ایک ہی remainder ملتا ہے

modular arithmetic دراصل دائرے پر arithmetic ہے۔ دو اعداد modulo n congruent تب ہوتے ہیں جب ان کا فرق n کے کسی multiple کے برابر ہو۔ گھڑی mod 12 arithmetic کرتی ہے: 5 بجے کے 10 گھنٹے بعد 3 بجتے ہیں، 15 نہیں۔ یہی سادہ تصور جدید cryptography، hash functions، error-correcting codes اور number theory کے بڑے حصے کی بنیاد بنتا ہے۔

The mod 12 clock: addition wraps around
1 2 3 4 5 6 7 8 9 10 11 12 17 mod 12 = 5 17 = 1 × 12 + 5
Fermat's Little Theorem verification
a^(p−1) ≡ 1 (mod p) when p is prime, p∤a
مثال p=5, a=2: 2⁴ = 16 = 3×5 + 1 ≡ 1 (mod 5) ✓
مثال p=7, a=3: 3⁶ = 729 = 104×7 + 1 ≡ 1 (mod 7) ✓
RSA encryption میں یہی idea ثابت کرتا ہے کہ decryption اصل پیغام واپس دیتا ہے۔
Addition table for ℤ/5ℤ (integers mod 5)

mod 4، mod 5 یا mod n میں addition اور multiplication نئے، بند arithmetic systems بناتے ہیں۔

+01234
001234
112340
223401
334012
440123
متعلقہ موضوعات
اولی اعدادکامل اعدادعددی نظام
modular arithmetic کے اہم حقائق

modular arithmetic congruence کو بیان کرتی ہے: a ≡ b (mod n) تب جب n، a−b کو divide کرے۔ Gauss نے 1801 میں اسے منظم theory کی شکل دی۔ جدید public-key cryptography اسی پر کھڑی ہے: RSA encryption Fermat’s Little Theorem اور متعلقہ modular identities پر انحصار کرتی ہے۔ hash functions بھی modular operations کے ذریعے بڑی inputs کو fixed-size outputs میں map کرتے ہیں۔ integers mod n ایک مکمل ring بناتے ہیں، اور جب n prime ہو تو یہی structure ایک finite field بن جاتا ہے۔

Used in
Mathematics
Physics
Engineering
🧬Biology
💻Computer Sci
📊Statistics
📈Finance
🎨Art
🏛Architecture
Music
🔐Cryptography
🌌Astronomy
Chemistry
🦉Philosophy
🗺Geography
🌿Ecology
Want to test your knowledge?
Question
a = b (mod n) کا کیا مطلب ہے؟
tap · space
1 / 10