I have to write a small program with the following instructions:
Given are p and q with p and q different prime numbers. Write a small program that calulates the following values: 1) Determine a solution z for qz ≡ 1 mod p ...
My question is: As p and q have to be prime numbers (do I get this right?), the solution for z is always 1, right? As z should be the gcd and the gcd of prime numbers is always 1?
Thank you very much.
Update: Ok, I was completely wrong. I have no clue where to start with the problem. So I can solve it with the extended euklidean algorithm?