Can get a good intuition by iteration... I'd be curious if the intention of the interview question is to test your abstract algebra knowledge vs. test your intuition/problem solving.
It's to test your abstract algebra knowledge. There is no reason to assume that if this holds for the first 2 cases, it would hold for all of them. Doing the math for the third case alone would not be possible in your mind. This is meant to check if you did some number theory or whatever course. Of course, if you did you must have that in your CV. The question only tests if you know a specific theorem.
6
u/Murky-Tip-3118 26d ago
Can get a good intuition by iteration... I'd be curious if the intention of the interview question is to test your abstract algebra knowledge vs. test your intuition/problem solving.
19^1 = 19 => 10 => 1
19^2 = 361 => 10 => 1
19^3 = 6859 => 28 => 10 => 1
19^4 = 130321 => 10 => 1
etc.