.
The remainders of dividing by 7 form a periodic sequence
n 1 2 3 4 5 6 7 8
mod 7: 5, 4, 6, 2, 3, 1, 5, 4
with the period length of 6.
So if somebody somewhen will ask you to find the remainder of division by 7, you do not need to calculate to get the answer.
You simply will look into the periodical sequence of the period 6 and easily will find the required remainder.