Moduler Multiplicative inverse is not working under modulo 1e9+7!!!

Правка en2, от Dream_Coder10, 2021-04-18 17:13:48

why moduler multiplicative inverse is not working under modulo 1000000007 by fermats littile theorem ? let n=11 & k=3 ; n/k should be equal to 3. but its giving me 666666675. same thing goes for n=10 & k=4;

problem:

https://paste.ubuntu.com/p/vgTZcHQ8Rv/

my code:

https://paste.ubuntu.com/p/s2m5q4JtMs/

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский Dream_Coder10 2021-04-18 17:13:48 54
en1 Английский Dream_Coder10 2021-04-18 17:09:19 333 Initial revision (published)