Topic:Check Digit Algorithms/RUT Numbers (Nintendo)

RUT numbers consist of 7 to 10 alphanumeric characters followed by one check digit, which can be either a number or the letter 'A'.

Transliterate letters to numbers
Letters are transliterated to numbers according to the table below. Note that the letters D, F, O, Q, U and Z are not allowed in RUT; they are not listed on the table below.

Weights
According to the table below, depending on the position, the following weights will be used:

Getting a check digit
Divide the sum of all the products of the individual digits by 11 and determine the remainder.
 * If remainder is 10, check digit is A
 * If remainder is between 0 and 9, check digit is the remainder.

Example of check digit calculation
Your RUT number is 1.234.567.8YX-5 and the last digit is derived from the following steps:
 * Y = 29, X = 28
 * (1 × 1) + (2 × 3) + (3 × 5) + (4 × 7) + (5 × 9) + (6 × 11) + (7 × 1) + (8 × 3) + (29 × 5) + (28 × 7) = 533
 * 533 ÷ 11 = 48 R 5, check digit 5