Luhn algorithm: Difference between revisions

Content deleted Content added
Description: grammar
Example for computing check digit: The odd even rules calculated from the rightmost digit.
Line 31:
|-
! Multipliers
| 1
| 2
| 1
Line 41 ⟶ 40:
| 1
| 2
| 1
|-
!
Line 55:
|-
!
| style="background: #FFA;" | '''1814'''
| 7
| style="background: #FFA;" | '''18'''
| 9
| style="background: #FFA;" | '''418'''
| 72
| style="background: #FFA;" | '''614'''
| 93
| style="background: #FFA;" | '''1618'''
| 78
| style="background: #FFA;" | '''214'''
| 71
|-
! Sum digits
|'''95''' (1+84)
|7
|'''9''' (1+8)
|9
|'''49''' (1+8)
|72
|'''65''' (1+4)
|93
|'''79''' (1+68)
|78
|'''25''' (1+4)
|71
|}
 
The sum of the resulting digits is 6756.
 
The check digit is equal to <math>10 - (6756\operatorname{mod} 10) = 34</math>.
 
This makes the full account number read 7992739871379927398714.
 
=== Example for validating check digit ===