M

Modulare Addition

Modifikation hinzufügen

Modular Addition ist eine mathematische Operation, die bei Erreichen eines bestimmten Wertes, des Modulus, umkringelt wird.

Modulare Addition is a mathematical operation that involves adding two integers and then taking the remainder when divided by a third integer known as the modulus. This operation is commonly used in various fields, including Informatik, cryptography, and number theory.

Mathematisch kann die modulare Addition ausgedrückt werden als:

a + b (mod m)

Hier ist a and b are the integers being added, and m is the modulus. The result of the operation is the remainder of the sum a + b when divided by m.

Zum Beispiel, wenn wir eine modulare Addition mit a = 7, b = 5, and m = 6, we first add the two numbers:

7 + 5 = 12

Als Nächstes finden wir den Rest, wenn 12 durch 6 dividiert wird:

12 mod 6 = 0

Somit, 7 + 5 (mod 6) = 0.

Die modulare Addition hat mehrere wichtige Eigenschaften, darunter:

  • Abschluss: The sum of any two integers under a given modulus will always yield another integer within the same modulus.
  • Assoziative Eigenschaft: Die Reihenfolge, in der Additionen durchgeführt werden, beeinflusst das Ergebnis nicht.
  • Kommutative Eigenschaft: Die Summe bleibt gleich, unabhängig von der Reihenfolge der Operanden.

Diese Eigenschaften machen die modulare Addition besonders nützlich in algorithms where a fixed range of values is needed, such as in cyclic tasks, scheduling, and even in creating hash functions.

Strg + /