# How do I get the inverse of an element in a finite field GF(p)?

If I create a finite field,

```
K = GF(7)
```

and then select and element,

```
a = K(5)
```

what do I have to type in to get the inverse as an element of the same field K?