Difference between revisions of "Vehicle Checksum Formula"

From SgWiki
Jump to navigation Jump to search
m (Protected "Vehicle Checksum Formula" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(18 intermediate revisions by 10 users not shown)
Line 1: Line 1:
The checksum, also known as the last alphabet of a vehicle license plate, of a bus registration number is derived from the following formula.
A vehicle checksum is the last alphabet of a vehicle license plate. It is derived from the following formula.


{| class="wikitable"
{| class="wikitable"
Line 19: Line 19:
|}
|}


== SMB Prefix ==
===Suffix Table===
For example, the British-built Enviro 500 registration plate of '''SMB5001'''. Using the above formula for '''SMB'''-prefixed plates, we should get a statement like this: ''9–(5×'''5''')–(4×'''0''')–(3×'''0''')–(2×'''1''')''. [https://www.google.com.sg/search?q=9%E2%80%93%285%C3%970%29%E2%80%93%284%C3%971%29%E2%80%93%283%C3%977%29%E2%80%93%282%C3%979%29&oq=9%E2%80%93%285%C3%970%29%E2%80%93%284%C3%971%29%E2%80%93%283%C3%977%29%E2%80%93%282%C3%979%29#newwindow=1&safe=active&q=9%E2%80%93(5%C3%975)%E2%80%93(4%C3%970)%E2%80%93(3%C3%970)%E2%80%93(2%C3%971) A quick input of the statement on Google] should give a result of '''-18'''.
{| class="wikitable" style="text-align:center;"
|-
!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.


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 '''-18''', [https://www.google.com.sg/search?q=-18+mod+19 type ''-18 mod 19'' into the Google search bar] and it would calculate the answer, '''1'''.<br>Compare the answer against the table below for the suffix.
===Example===
For example, the registration plate of '''SG5999'''.  


Hence, the checksum for '''SMB5001''' is '''A'''.
Using the above formula for '''SG'''-prefixed plates, you should get a statement like this: ''11–(5×'''5''')–(4×'''9''')–(3×'''9''')–(2×'''9''')''. [https://www.google.com/search?q=11%E2%80%93%285%C3%975%29%E2%80%93%284%C3%979%29%E2%80%93%283%C3%979%29%E2%80%93%282%C3%979%29 A quick input of the statement on Google] should give a result of '''-95'''.


== SG Prefix ==
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''', [https://www.google.com.sg/search?q=--95+mod+19 type ''-95 mod 19'' into the Google search bar] and it would calculate the answer, '''0'''.
For example, the 3-Door Double Deck MAN bus registration plate of '''SG5999'''. Using the above formula for '''SG'''-prefixed plates, we should get a statement like this: ''11–(5×'''5''')–(4×'''9''')–(3×'''9''')–(2×'''9''')''. [https://www.google.com.sg/search?q=9%E2%80%93%285%C3%970%29%E2%80%93%284%C3%971%29%E2%80%93%283%C3%977%29%E2%80%93%282%C3%979%29&oq=9%E2%80%93%285%C3%970%29%E2%80%93%284%C3%971%29%E2%80%93%283%C3%977%29%E2%80%93%282%C3%979%29#newwindow=1&safe=active&q=11%E2%80%93(5%C3%975)%E2%80%93(4%C3%979)%E2%80%93(3%C3%979)%E2%80%93(2%C3%979) 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''', [https://www.google.com.sg/search?q=--95+mod+19 type ''-95 mod 19'' into the Google search bar] and it would calculate the answer, '''0'''.<br>Compare the answer against the table below for the suffix.
Compare the answer against the table above for the suffix.


Hence the checksum for '''SG5999''' is '''Z'''.
Hence the checksum for '''SG5999''' is '''Z'''.


== Suffix Table(Used for comparison to find the suffix.) ==
''Alternatively, you may use [https://jayl.io/ this checksum calculator tool] to find the suffix.''
<nowiki>*</nowiki>Letters F, I, N, O, Q, V & W have been omitted.
{| class="wikitable" style="text-align:center;"
|-
!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
|}
 


Alternatively, you may use [https://docs.google.com/spreadsheets/d/1cMU-X_Ph4N7G87p010JaZyJ7QZfuXF2JAwuTgqNPRzA/edit?usp=sharing this checksum calculator created using Google Spreadsheet to get the letters] or [http://xeroy.net/tooxsg/#carplate this checksum calculator tool] instead.
===How "Mod 19" works===
Mod 19 works in a way that the number <code><nowiki>19</nowiki></code> is deducted from a number until the remainder reaches 18 or less.


For the Google Spreadsheet calculator, go to File then click Make a Copy. The checksum calculator is then for your own use.
For example, if you get a result of <code><nowiki>-95</nowiki></code> from the given formula.
# Remove the minus sign (modulus)
# Deduct <code><nowiki>19</nowiki></code> from <code><nowiki>95</nowiki></code> as many times as you can before remainder reaches 18 or less<br><code><nowiki>95 - 19 - 19 - 19 - 19 - 19 = 0</nowiki></code>
# Substitute remainder <code><nowiki>0</nowiki></code> with the letter Z and it will be the suffix of the license plate


[[Category: Buses]]
[[Category:Buses]]

Latest revision as of 00:28, 25 July 2022

A vehicle checksum is the last alphabet of a vehicle license plate. It 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.

  1. Remove the minus sign (modulus)
  2. Deduct 19 from 95 as many times as you can before remainder reaches 18 or less
    95 - 19 - 19 - 19 - 19 - 19 = 0
  3. Substitute remainder 0 with the letter Z and it will be the suffix of the license plate