Example

Let p be equal to

and q be equal to

Then p is congruent modulo q to