I'm trying to work out a question found in my textbook for college on modular exponentiation, {11^399 mod 19}.
These are the steps I took:
- 11^399 mod 19
- 8^339 mod 19 [19 - 11 = 8]
- (8^388 * 8) mod 19 [subtracted the exponent by 1 and multiplying the base by itself to make up for the subtracted exponent]
- [This part is where I'm stuck :] My next step was to multiply Step 3 () but when I put 8^338 into the calculator it either showed a very very long number or mostly infinity on the online calculators.
Also the answer is supposed to be 7 from what I'm seeing, using the online calculators but I don't even know how to arrive at that. I have tried this same process for other questions and they have worked without any obnoxious remainders (at most 2 digits). If anyone could help me out with this one that'd be much appreciated!