Math 2.0

statement theorem

Existence of inverses modulo n

Statement

Let nn be a positive integer and let aa be an integer. Then aa has a modular multiplicative inverse modulo nn if and only if aa and nn are coprime.

Remarks

If gcd⁡(a,n)=1\gcd(a, n) = 1, Bézout's identity gives integers xx and yy with ax+ny=1a x + n y = 1. Then ax≡1(modn)a x \equiv 1 \pmod n. Conversely, if ax≡1(modn)a x \equiv 1 \pmod n, then ax+ny=1a x + n y = 1 for some integer yy, so each common divisor of aa and nn divides 11. The extended Euclidean algorithm computes the inverse. For example, 44 has no inverse modulo 66, because gcd⁡(4,6)=2\gcd(4, 6) = 2.

Explanations

L1 human

You can "divide by aa" modulo nn exactly when aa and nn have no common factor. Modulo 1010, the numbers 1,3,7,91, 3, 7, 9 have inverses, since 1⋅11 \cdot 1, 3⋅73 \cdot 7 and 9⋅99 \cdot 9 all end with the digit 11. The numbers 2,4,5,6,82, 4, 5, 6, 8 have no inverse modulo 1010.

What this node needs for W1
  • an inventory row: the row of the inventory that the node accounts for (0 of 1)

The writing levels say how complete the text of a node is. They do not measure its truth.

What this needs

To read this node, read these 7 nodes in this order. The foundations come first, and the list ends with this node.

Each node uses the nodes above it. The colour of the bar on a box shows the evidence level, and the box also gives it as text. The list below has the same nodes.
  • no evidence level
  1. Divisibility definition
  2. Congruence modulo n definition
  3. Greatest common divisor definition
  4. Modular multiplicative inverse definition
  5. Bézout's identity statement
  6. Coprime integers definition
  7. Existence of inverses modulo n statement

What depends on this

1 node uses this node, directly or through other nodes.

Sources

  1. Web https://en.wikipedia.org/wiki/Modular_multiplicative_inverse, Integers modulo m