The mathematics behind a barcode!
Consider the barcode: 036000291452
The last digit (2) is called the check digit.
Step 1: Add the digits at odd positions.
0 + 6 + 0 + 2 + 1 + 5 = 14
Step 2: Multiply by 3.
14 × 3 = 42
Step 3: Add the digits at even positions, excluding the check digit.
3 + 0 + 0 + 9 + 4 = 16
Step 4: Add both results.
42 + 16 = 58
Step 5: Add the check digit.
58 + 2 = 60
Since 60 ≡ 0 (mod 10), the barcode passes the validity test.
This simple application of modular arithmetic detects all single-digit errors and most adjacent-digit swapping errors.
Number theory at your supermarket!
“Cha" and "te" are both Chinese words for tea. If a territory came into contact with the drink by:
• The Silk Road = "cha"
• Sea shipping routes (starting with Dutch traders) = "tea"
As PW’s editors put together our lists of this year’s gift-worthy titles for adults, teens, and kids, a few common threads emerged. Our 150 picks highlight a taste for the classics, the nostalgic, and the idiosyncratic. Each one is destined to find and delight the right reader. https://t.co/JsQPw6yKiO
My go to iPhone edit lately:
Vibrance-30
Highlights-15
Shadows-23
Brightness-21
Contrast+25
Saturation+6
Color Clarity+13
Temperature-10
Tint+16
Sharpness+25
Clarity+12