The Verhoeff algorithm is a checksum formula for error detection developed by the Dutch mathematician Jacobus Verhoeff . It was the first decimal check digit algorithm which detects all single-digit errors, and all transposition errors involving two adjacent digits