Proposition. Reciprocals of modular integers [01D7]

Let m be a positive integer. A modular integer k:\mathbb {Z}_m has a reciprocal if and only if there exist integers i,j such that k\cdot i+m\cdot j = 1.