The value of the modular exponentiation (should equal 1 in coprime form)
Fermat's Little Theorem: 3^6 ≡ 1 (mod 7)
Next stepUse the modular inverse in RSA-style key exchange or to solve linear congruences of the form ax ≡ b (mod p).