Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jayknoxqu authored Dec 3, 2018
1 parent c8c9972 commit 0028486
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<script type="text/javascript" async src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML"></script>
### 身份组成方式

[中华人民共和国国家标准](https://zh.wikipedia.org/wiki/%E4%B8%AD%E5%8D%8E%E4%BA%BA%E6%B0%91%E5%85%B1%E5%92%8C%E5%9B%BD%E5%9B%BD%E5%AE%B6%E6%A0%87%E5%87%86)[GB 11643-1999《公民身份号码》](https://zh.wikisource.org/wiki/GB_11643-1999_%E5%85%AC%E6%B0%91%E8%BA%AB%E4%BB%BD%E5%8F%B7%E7%A0%81)中规定:公民身份号码是特征组合码,由十七位数字本体码和一位校验码组成。
Expand All @@ -16,10 +17,10 @@
- 最后一位是**校验码**,这里采用的是**ISO 7064:1983,MOD 11-2**校验码系统。校验码为一位数,但如果最后采用校验码系统计算的校验码是“10”,碍于身份证号码为18位的规定,则以“X”代替校验码“10”。

### 校验码计算方法
<script type="text/javascript" async src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">

- **1.** 将身份证号码从右至左标记为$a_1 , a_2 , \cdots , a_{18}$,$a_1$即为校验码;
- **2.** 计算权重系数 $W_i=2^{i-1}\ \bmod \{11}$
</script>

所以:


Expand Down

0 comments on commit 0028486

Please sign in to comment.