On calcule l’inverse d’un entier n dans ℤ/pℤ en tapant 1/n%p ou inv(n%p) ou inverse(n%p). On tape :
On obtient :
En effet : 3×−4=−12=1 (mod 13)