7^1 = 7 (mod 50)
7^2 = 49 = -1 (mod 50)
7^3 = 7^2*7 = (-1)*7 = -7 (mod 50)
7^4 = (7^2)*(7^2) = (-1)*(-1) = 1 (mod 50)
7^5 = (7^4)*7 = 1*7 = 7 (mod 50)
So 7^5 = 7 (mod 50)
In other words, if we divided 7^5 over 50, the remainder would be 7. We don't need to worry about the quotient.