For example, the CAS number of water is 7732-18-5: the checksum 5 is calculated as (8×1 + 1×2 + 2×3 + 3×4 + 7×5 + 7×6) = 105; 105 mod 10 = 5.
Контрольная сумма вычисляется так: 8×1 + 1×2 + 2×3 + 3×4 + 7×5 + 7×6 = 105; 105 mod 10 = 5.