Computing the last digit
- Input
- 1 3 0 6 9 2 5 4 x 1 2 1 2 1 2 1 2
- Expected output
- 1+6+0+3+9+4+5+8 = 36, então o dígito é 4: 130 692 544
The product 12 becomes 1+2 = 3. The total 36 must reach 40, hence the 4.
how to validate a Canadian SIN (Luhn)
A SIN has 9 digits and the last one checks the other eight. This page shows the arithmetic step by step, explains what canada.ca actually states, and opens the tool ready to validate.
The product 12 becomes 1+2 = 3. The total 36 must reach 40, hence the 4.
The validator shows the ninth digit that would make the first 8 pass.
Nine, usually written 123 456 789. Canada.ca describes it as a unique 9-digit number.
No. According to canada.ca, it is the SIN issued to temporary residents, and it expires with the work permit, study permit or visitor record.
No official source consulted confirms it. It is popular in examples because it passes Luhn, so it is not presented here as an official test number.