Everything we buy, from books to baked beans, has a product code printed on it. More sophisticated check-digit codes exist on official documents, bank notes and air tickets. What are they for and what do they mean? We take a look at the mathematical structure of these codes and explain their...