Uniform Civil Number - Structure

Structure

The initial six digits correspond to the birth date (YYMMDD). Since there are only two digits reserved for the year, only years between 1900 and 1999 can be encoded directly. Other years get represented as follows:

  • for births before 1 January 1900, 20 is added to the month
  • for births from 31 December 1999 to 31 December 2099, 40 is added to the month

The next three digits designate the birth order number, the third digit being even for males and odd for females. Each district is assigned a range of three-digit numbers, used consecutively, altering even and odd numbers between males and females born on the particular day. In rare cases, numbers are "borrowed" from an adjacent district.

The tenth digit is a checksum, calculated using the following algorithm:

  1. Each digit is multiplied by its weight (see below)
  2. The products obtained are added
  3. The sum is divided by 11 ( use sum % 11, not /, modulus, not division)
  4. If the remainder is less than 10, the remainder is the checksum digit, otherwise the checksum digit is zero
+------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+ | Position | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | +------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+ | Weight | x2 | x4 | x8 | x5 | x10 | x9 | x7 | x3 | x6 | | +------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+

The weights are the powers of 2, modulo 11. (See also: Galois field applications)

Read more about this topic:  Uniform Civil Number

Famous quotes containing the word structure:

    “When a house is tottering to its fall,
    The strain lies heaviest on the weakest part,
    One tiny crack throughout the structure spreads,
    And its own weight soon brings it toppling down.”
    —Ovid (Publius Ovidius Naso)

    “Communism is a proposition to structure the world more reasonably, a proposition for changing the world. As such, we have to analyze it and, if we deem it reasonable, act upon it.”
    —Friedrich Dürrenmatt (1921–1990)

    “A committee is organic rather than mechanical in its nature: it is not a structure but a plant. It takes root and grows, it flowers, wilts, and dies, scattering the seed from which other committees will bloom in their turn.”
    —C. Northcote Parkinson (1909–1993)