Many printed airline tickets contain a 10-digit document number followed by a check digit.
Many printed airline tickets contain a 10-digit document number followed
by a check digit. The check digit is chosen to be the sum of the first 10 digits mod 7. Determine whether the given number is a valid document number.
5329649758 2
valid or invalid