For this question we can get a pattern and solve this
51 when divided by 13 is 12
51^2 2601 divided by 13 is 1
for 51^3 remainder is 12
51^4 remainder is 1
PS you don't have to test the values for 3 and 4 just multiply the remainder values and divide by 13 for example
for the remainder of 51^3 multiply the remainder of 51^2 which is 12 and 51^1 which is 1 and divide that by 13
so when we divide 25/ 2( which is the pattern) we get remainder 1 so the final remainder will be 12
51 when divided by 13 is 12
51^2 2601 divided by 13 is 1
for 51^3 remainder is 12
51^4 remainder is 1
PS you don't have to test the values for 3 and 4 just multiply the remainder values and divide by 13 for example
for the remainder of 51^3 multiply the remainder of 51^2 which is 12 and 51^1 which is 1 and divide that by 13
so when we divide 25/ 2( which is the pattern) we get remainder 1 so the final remainder will be 12