Difference between revisions of "Vehicle Checksum Formula"
Maple Story (talk | contribs) |
|||
Line 45: | Line 45: | ||
Mod 19 works in a way that the number 19 is deducted from a number until the remainder reaches 18 or less. | Mod 19 works in a way that the number 19 is deducted from a number until the remainder reaches 18 or less. | ||
For example, if you get a result of '''- | For example, if you get a result of '''-95''' from the given formula.<br> | ||
First, you '''remove the minus sign (modulus)'''<br> | First, you '''remove the minus sign (modulus)'''<br> | ||
Secondly, you '''deduct 19''' from | Secondly, you '''deduct 19''' from 95 '''as many times as you can''' before the '''remainder reaches 18 or less'''.( 64 - 19 - 19 - 19 = 64 - 57 = 7)<br> | ||
Lastly, you '''substitute remainder''' | Lastly, you '''substitute remainder''' 0 '''with the letter''' Z and it '''will be the suffix of the license plate'''. | ||
[[Category: Buses]] | [[Category: Buses]] |
Revision as of 17:38, 6 October 2017
The checksum, also known as the last alphabet of a vehicle license plate, of a bus registration number is derived from the following formula.
Prefix | |
---|---|
SG | 11 – (5 × 1st No.) – (4 × 2nd No.) – (3 × 3rd No.) – (2 × 4th No.) |
SBS | 2 – (5 × 1st No.) – (4 × 2nd No.) – (3 × 3rd No.) – (2 × 4th No.) |
SMB | 9 – (5 × 1st No.) – (4 × 2nd No.) – (3 × 3rd No.) – (2 × 4th No.) |
TIB | 7 – (5 × 1st No.) – (4 × 2nd No.) – (3 × 3rd No.) – (2 × 4th No.) |
Suffix Table
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 0 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | G | H | J | K | L | M | P | R | S | T | U | X | Y | Z |
- Note: Letters F, I, N, O, Q, V & W are omitted.
Example
For example, the registration plate of SG5999.
Using the above formula for SG-prefixed plates, you should get a statement like this: 11–(5×5)–(4×9)–(3×9)–(2×9). A quick input of the statement on Google should give a result of -95.
Using the result, mod the number with 19, you will get a number from 0 to 18. You can mod the number by 19 using Google. For the above example where the result is -95, type -95 mod 19 into the Google search bar and it would calculate the answer, 0.
Compare the answer against the table above for the suffix.
Hence the checksum for SG5999 is Z.
Alternatively, you may use this checksum calculator tool to find the suffix.
How mod 19 works
Mod 19 works in a way that the number 19 is deducted from a number until the remainder reaches 18 or less.
For example, if you get a result of -95 from the given formula.
First, you remove the minus sign (modulus)
Secondly, you deduct 19 from 95 as many times as you can before the remainder reaches 18 or less.( 64 - 19 - 19 - 19 = 64 - 57 = 7)
Lastly, you substitute remainder 0 with the letter Z and it will be the suffix of the license plate.