I'll elaborate a little more on math_tutor2020's 2nd approach.
As he pointed out, even if you knew nothing about modular
arithmetic, and never heard of Fermat's little (or last)
theorem, you could do it with only long division, make an
indefinitely long string power of 10 like 1000000000000...
and start dividing
769230
13)1000000000000...
91
90
78
120
117
30
26
40
39
10
0
10
Now we see by the red remainders, that they are going to keep
going 10,9,12,3,4,1,... forever. That's a cycle of 6 remainders
since 101 had the reminder 10, we can find out by
division
48
6)241
24
1
This shows the remainders would go through the cycle of 6
48 times and since the remainder is 1, that means it had
started through the cycle the 49th time and was at the 1st
member of the cycle when it got to the 241st power of 10.
So the answer is the first member of the cycle, or 10.
No doubt Mr. Fermat started out this way and kept looking
for patterns, and even patterns of patterns, etc. and came
up with his little theorem.
Edwin