About 身分證字號精靈
規則與原理
第一碼:英文字母代表出生地區,城市
第二碼:性別,1是男性,2是女性
最後一碼是檢查碼,計算時,城市英文字母有相對應的二位數字
中間7碼是序號
前9個字換成數字共10位數字(城市占2位)
由左至右,每個數字乘以倍數後加起來,倍數依序是 1987654321
總和除以10求餘數,餘數為0則檢查碼為0,否則檢查碼等於10減餘數 Rules and principles
First code: English letters on behalf of birth regions, cities
The second code: Gender, one male, two female
The final code is to check the code, calculations, city letters of the alphabet have a corresponding two-digit number
Intermediate 7 yards is No.
Front nine total of 10 words into a digital number (the city accounted for 2)
From left to right, each number multiplied by multiples add up to a multiple of sequentially is 1987654321
The sum is divided by 10 seeking the remainder, the remainder is 0 check code is 0, otherwise check the code equal to 10 minus the remainder