Hi. Today,i try a problem about number theory. This is a problem : Given three positive integers M, A, P where P is a prime number and find minimum positive integer B : M ≡ A^B (mod P) Sorry because my english is not good . Thanks your help about this problem