Modulus in this case means divide into 7 parts and when you cannot divide anymore keep the reminder.
If x = a*b+c
x ℅ a = c and x % b = c
41 % 7 = 6
41 % 5 = 1