Hi,
I am trying to calculate:
99^7 (mod 123) = 93,206,534,790,699 mod 123 = 93,206,534,790,699- 757,776,705,615 * 123
93,206,534,790,699 - 93,206,534,790,645 44= 45
However, when I am doing it by breaking it into small powers I am getting wrong results like:
= [(99 mod 123) * (99 ^2 mod 123) * (99^4 mod 123)] mod 123
= [24* 75 * 75 * 75] mod 123 = 10,125,000 mod 123 = 82,317 * 123= 10,125,000-10,124,991=9
Somebody please guide me what is the problem.
Zulfi.
I am trying to calculate:
99^7 (mod 123) = 93,206,534,790,699 mod 123 = 93,206,534,790,699- 757,776,705,615 * 123
93,206,534,790,699 - 93,206,534,790,645 44= 45
However, when I am doing it by breaking it into small powers I am getting wrong results like:
= [(99 mod 123) * (99 ^2 mod 123) * (99^4 mod 123)] mod 123
= [24* 75 * 75 * 75] mod 123 = 10,125,000 mod 123 = 82,317 * 123= 10,125,000-10,124,991=9
Somebody please guide me what is the problem.
Zulfi.