From 409625656d517f3935f92570b7832a5bd534f483 Mon Sep 17 00:00:00 2001 From: John Law Date: Fri, 8 May 2020 22:45:38 +0200 Subject: [PATCH] Fix descriptive comment --- math/mod_inverse_by_fermat_theorem.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/math/mod_inverse_by_fermat_theorem.cpp b/math/mod_inverse_by_fermat_theorem.cpp index 911613353..033027933 100644 --- a/math/mod_inverse_by_fermat_theorem.cpp +++ b/math/mod_inverse_by_fermat_theorem.cpp @@ -1,6 +1,7 @@ -// C++ Program to find the modular inverse using Fermat's Little Theorem. -// Fermat's Little Theorem state that => ϕ(m) = m-1, where m is prime number. -/* +/* + * C++ Program to find the modular inverse using Fermat's Little Theorem. + * Fermat's Little Theorem state that => ϕ(m) = m-1, where m is prime number. + * * (a * x) ≡ 1 mod m. * x ≡ (a^(-1)) mod m. * @@ -55,7 +56,3 @@ int main() { std::cout << "The modular inverse of a with mod m is (a^(m-2)) : "; std::cout << binExpo(a, m-2) << std::endl; } - - - -