This theory is part of Premium
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricingRead the inverse off the coefficient the extended algorithm returns.
What this asks
Compute a modular inverse with the extended Euclidean algorithm.
Run extended GCD on (a, m), require gcd 1, and normalize the returned x.
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricing