Question DSA-MATH-0016
HardBy Fermat's little theorem, what is the modular inverse of a modulo a prime p (a not divisible by p)?
- A.
a^(p−2) mod p
- B.
p − a
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Math and Number Theory question
By Fermat's little theorem, what is the modular inverse of a modulo a prime p (a not divisible by p)?
a^(p−2) mod p
p − a
Sign up free to see the answer and a step-by-step explanation.
a^(p−1) mod p
a mod p