I Modulo N. Modulo is also referred to as 'mod.' the standard format for mod is: The value of an integer modulo n is equal to the remainder left when the number is divided by n.
Given an integer n > 1, called a modulus, two integers are said to be congruent modulo n, if n is a divisor of their difference (i.e., if there is an integer k such that a − b = kn). Due to ongoing organism additions, this information may be out of date. The function mod is the most convenient way to find if a number is odd or even.
Depending on the value of \(n\) there may be other restrictions.
The multiplicative group of integers modulo \(n\). For example, you're calculating 15 mod 4. Sometimes, we are only interested in what the remainder is when we divide by. 11 mod 4 = 3, because 11 divides by 4 (twice), with 3 remaining.
Nessun commento:
Posta un commento