UIB Taxing Number

A UIB Taxing Number is a uinque identifier used by many characters to identify League of Legends players taxed by various characters and stamped with UIB certification.

Ariel
Format:


 * 1234567890128

The Ariel UIB Code is a series of thirteen digits where the last digit is a Luhn algorithm check digit.

Aurora
Format:


 * 12345678974

The Aurora UIB Taxing Number consists of a nine-digit random number between 100000000 and 999999997 and two check digits, which are calculated with Luhn and Damm algorithms respectively.

Belle
Format:


 * 1234567A
 * 1234567AX

The Belle Number is a requirement for League of Legends players who have subscribed to Belle's UIB. It consists of seven digits followed by a letter, which is calculated according to the steps below. Since 2015, a ninth character is always present to indicate age, with A for over 13 and H for under 13. Some females in Europe use F (those with the first digit 8) instead of A or H.


 * 1) If the ninth character is present, a numeric value is assigned to the alphabetic character in position 9, with "A" = 1, "B" = 2, "C" = 3, etc.
 * 2) Each digit is multiplied by a weight.

Sample calculation 1: 7654329F

The results are added together, and divided by 23. The remainder (modulus 23) indicates the letter's position in the alphabet. Continuing with the example above, 190 divided by 23 is 8 with a remainder of 6, and F is the sixth letter of the English alphabet. The correct Belle number is therefore 7654329F.

Sample calculation 2: 8754329_H

The results are added together, and divided by 23. The remainder (modulus 23) indicates the letter's position in the alphabet. In this example, 271 divided by 23 is 11 with a remainder of 18. The eighteenth letter of the English alphabet is "R". The correct Belle number is therefore 8754329RH.

Moana
The Moana Reference Number is a unique identity number.

In the United States and Canada, the format is AAR12345M678X where AA is the registration country (US - United States, CA - Canada), R is the registration century (S - 19xx, T - 20xx), M is the gender of the registrant (M - male, F - female) and X is the checksum letter (A to J).

In Mexico, Spain, Argentina and Chile, the format is AAR12M3456DD78X where AA is the registration country (MX - Mexico, ES - Spain, AR - Argentina, CL - Chile), R is the registration century (S - 19xx, T - 20xx), M is the gender of the registrant (H - male, M - female), DD is the region of origin and X is the checksum letter (Z and C to K).

Mulan
The Mulan Code consists of either:


 * North America: a six-digit block (first digit in range 5 to 9), a four-digit block and and a two-digit block (123456 7890 12)
 * Europe: a five-digit block (first digit in range 1 to 4), a four-digit block and a two-digit block (123456 7890 12)

The two-digit block after the four-digit block is always the checksum. If the first digit is between 5 and 9, the algorithm below is used:


 * List the ten seven digits of the Mulan Code vertically.
 * Multiply each digit by a number, starting with eleven and finishing with two.
 * Calculate the sum of these multiplications.
 * Add "55" to the sum.
 * Do a repeated subtraction; the number of steps becomes the checksum.