PPRuNe Forums - View Single Post - Checking on a potential 'Mitty'
View Single Post
Old 14th Sep 2016, 00:00
  #116 (permalink)  
Stuff
 
Join Date: Aug 2003
Location: Stamford
Posts: 498
Likes: 0
Received 1 Like on 1 Post
A slight change to the algorithm fixes it. Multiply the last digit by 1 (not 5), discard "I" and "O" in the alphabet and start at zero when counting through.

This works for all examples in the thread.

Service Number
1941305

1x8=8
9x17=153
4x4=16
1x16=16
3x2=6
0x13=0
5x1=5

A= 204
B= 184
A-B= 20

ABCDEFGHJKLMNPQRSTUVWXYZ (Starting with A=0)

Checkdigit W
Stuff is offline