Current location - Training Enrollment Network - Mathematics courses - Mathematical representative of ID card
Mathematical representative of ID card
The penultimate digit of the ID number means (gender), the singular number means (male), and the even number means (female).

Structure and form of ID number

1, number structure

Citizenship number is a characteristic combination code, which consists of 17 bit ontology code and check code. The order from left to right is: six-digit address code, eight-digit date of birth code, three-digit serial code and one-digit check code.

2. Address code

The administrative division code of the county (county-level city, flag, district) where the permanent residence of the coding object is located shall be implemented according to GB/T2260.

3. Date of birth code

Indicates the year, month and day when the coded object was born, which is implemented according to GB/T7408. There is no separator between the year, month and day codes.

4, serial code

It refers to the serial number of people born in the same year, month and day in the area identified by the same address code. Odd numbers of serial numbers are assigned to men and even numbers to women.

5. Check code

According to the previous 17 bit code, the check code is calculated according to the check code of ISO 7064: 1983. MOD 1 1-2。

Extended data

Eighteen-digit ID card meaning:

Starting from 1999, 10 and 1, a national ID number system has been established and implemented.

The citizen ID number is compiled according to the national standard GB11643-1999 "Citizen ID Number", and consists of 18 digits.

1, the first six digits are administrative division codes. Represents the location of the permanent residence of the coded object.

2. The 7th to14th digits are the birth date code. Represents the year, month and day when the coded object was born.

3. Bits 15 to 17 are sequential codes. Represents the serial number of people born in the same year, the same month and the same day in the area identified by the same address code. Generally, the odd number of serial number is male, and the even number is assigned to female.

4. 18 bit is the check code. When the inspection code is "10", in order to ensure that the citizen ID number is 18 digits, it is represented by "X".

Baidu encyclopedia-ID number