What is the remainder when 13 to the 51st power is divided by 5?

2 answers

131 mod 5 =13 mod 5 = 3
132=169 mod 5 = 4
133=2197 mod 5 = 2
134=28561 mod 5 = 1

135=371293 mod 5 = 3
136=4826809 mod 5 = 4
137=62748517 mod 5 = 2
138=815730721 mod 5 = 1
....

1348 mod 5 = 1
1349 mod 5 = 3
1350 mod 5 = 4
1351 mod 5 = ?

Note:
13^51=647307989872865201422284359961937038113215496061434545237
yolo