15th or the last number of the IMEI is a check digit calculated using the Luhn algorithm.
The Check Digit is calculated according to Luhn formula. The Check Digit is calculated of all other digits in the IMEI. The purpose of the Check Digit is to help guard against the possibility of incorrect entries to the CEIR and EIR equipment.
The check digit is validated in three steps: