Successive Powers

The following integers: are successive large powers of an integer , modulo a three digit prime .

Find and to obtain the flag.

This means that we have a system of equations like:

We can restructure the system of equations like:

So getting the second one means finding a :