Hey, so I think your logic is ultimately the same as greg’s. Greg’s pattern already incorporates dividing the value by 5 ((7^1)/5 = 7/5 = remainder 2, then repeat for 4,3,1). On the other hand, your strategy is just waiting until you calculate the unit’s digit of 7^77 before dividing by 5 to find the remainder.