Is there any simpler way to compute this without calculating 3^20?
You are correct, I made a silly mistake at the end. If you can determine that without actually calculating , then yes. Personally, I don't know how you would do it. In most of these types of problems, the cycle is much shorter than 20.
You are correct, I made a silly mistake at the end. If you can determine that without actually calculating , then yes. Personally, I don't know how you would do it. In most of these types of problems, the cycle is much shorter than 20.
i see.. i asked because this was a test question and calculating 3^20 seems a bit harsh.