### Related

inv_mod(138,83);

Calculate

##### inv_mod-mod

inv_mod(1253,2088);

Calculate

inv_mod(2,18);

Calculate

##### inv_mod-mod-power_mod

power_mod(11793079, 2...

mod(8018767^1,26);

power_mod(6050520, 2...

Calculate

##### inv_mod-mod-power_mod

power_mod(66,173,323);

inv_mod(223,1560);

Calculate

##### inv_mod-mod

inv_mod(16*113*126,143);

Calculate

##### inv_mod-mod-phi-print

/* First find the pri...

n : 66177964244735206...

P: 18909736861978...

Calculate

##### inv_mod-mod

inv_mod((163678512388...

Calculate

inv_mod(53,120);

Calculate

##### inv_mod-mod-numer-true

numer:true;

inv_mod(173,432);

Calculate

### inv_mod

Run Example
```(%i1)p:47;
(%o1)                                 47
(%i2) q:59;
(%o2)                                 59
(%i3) n:p*q;
(%o3)                                2773
(%i4) phi_n: (p-1)*(q-1);
(%o4)                                2668
(%i5) e:79;
(%o5)                                 79
(%i6) gcd(e,phi_n);
(%o6)                                  1
(%i7) d:inv_mod(e,phi_n);
(%o7)                                 743
(%i8) m:65;
(%o8)                                 65
(%i9) c:power_mod(m,e,n);
(%o9)                                 870
(%i10) power_mod(c,d,n);
(%o10)                                65
(%i11) ```
Run Example
```inv_mod(59,210);
(%o1)                                 89
(%i2) ```
Run Example
```inv_mod(97,751);
(%o1)                                 511
(%i2) ```

Help for Inv_mod