An airline ticket identification number is a 14-digit number and a check digit. The check digit is the number between 0 and 6 that represents what the 14 digit serial number is equivalent to using a mod 7 clock. This check digit is the same as the remainder when the ticket identification number is divided by 7.