SINGAPORE EXPATS FORUM
Singapore Expat Forum and Message Board for Expats in Singapore & Expatriates Relocating to Singapore
The Math Behind the NRIC
The Math Behind the NRIC
Some useless information that has come to light ... thanks to http://ayumilovemaple.wordpress.com/200 ... ification/
Regarding the NRIC math behind the letter, it’s called a checksum. This is to help check whether the actual IC numbers are valid and not just random numbers.
The math goes like this:
1) Take for example I want to test the NRIC number S1234567. The first digit you multiply by 2, second multiply by 7, third by 6, fourth by 5, fifth by 4, sixth by 3, seventh by 2. Then you add the totals together. So,1×2+2×7+3×6+4×5+5×4+6×3+7×2=106.
2) If the first letter of the NRIC starts with T or G, add 4 to the total.
3) Then you divide the number by 11 and get the remainder. 106/11=9r7
4) You can get the alphabet depending on the IC type (the first letter in the IC) using the code below:
If the IC starts with S or T: 0=J, 1=Z, 2=I, 3=H, 4=G, 5=F, 6=E, 7=D, 8=C, 9=B, 10=A
If the IC starts with F or G: 0=X, 1=W, 2=U, 3=T, 4=R, 5=Q, 6=P, 7=N, 8=M, 9=L, 10=K
Regarding the NRIC math behind the letter, it’s called a checksum. This is to help check whether the actual IC numbers are valid and not just random numbers.
The math goes like this:
1) Take for example I want to test the NRIC number S1234567. The first digit you multiply by 2, second multiply by 7, third by 6, fourth by 5, fifth by 4, sixth by 3, seventh by 2. Then you add the totals together. So,1×2+2×7+3×6+4×5+5×4+6×3+7×2=106.
2) If the first letter of the NRIC starts with T or G, add 4 to the total.
3) Then you divide the number by 11 and get the remainder. 106/11=9r7
4) You can get the alphabet depending on the IC type (the first letter in the IC) using the code below:
If the IC starts with S or T: 0=J, 1=Z, 2=I, 3=H, 4=G, 5=F, 6=E, 7=D, 8=C, 9=B, 10=A
If the IC starts with F or G: 0=X, 1=W, 2=U, 3=T, 4=R, 5=Q, 6=P, 7=N, 8=M, 9=L, 10=K
- Strong Eagle
- Moderator
- Posts: 11504
- Joined: Sat, 10 Jul 2004 12:13 am
- Location: Off The Red Dot
- Contact:
Most account numbers, like your checking account numbers, are checksum verified.
Simplest is mod 10, double add double... that is, a weight of 1-2-1-2... but also can return false positives, ie, account number is not OK but still calculates the correct check digit.
The formula you have shown is mod 11, weight 1-3-5-7 and very commonly used. Much better at catching errors, but unless you are using letters like NRIC, you have to reject some account numbers because the check digit turns out to be 10.
Checksums exist to reduce machine read errors... magnetic swipes, optical reads, RFID reads, etc... yes even product numbers have check digits.
Simplest is mod 10, double add double... that is, a weight of 1-2-1-2... but also can return false positives, ie, account number is not OK but still calculates the correct check digit.
The formula you have shown is mod 11, weight 1-3-5-7 and very commonly used. Much better at catching errors, but unless you are using letters like NRIC, you have to reject some account numbers because the check digit turns out to be 10.
Checksums exist to reduce machine read errors... magnetic swipes, optical reads, RFID reads, etc... yes even product numbers have check digits.
Re: The Math Behind the NRIC
now .. I was never strong in my maths .. my total comes to 132, and it is S, so what is the last letter again ??carteki wrote:Some useless information that has come to light ... thanks to http://ayumilovemaple.wordpress.com/200 ... ification/
Regarding the NRIC math behind the letter, it’s called a checksum. This is to help check whether the actual IC numbers are valid and not just random numbers.
The math goes like this:
1) Take for example I want to test the NRIC number S1234567. The first digit you multiply by 2, second multiply by 7, third by 6, fourth by 5, fifth by 4, sixth by 3, seventh by 2. Then you add the totals together. So,1×2+2×7+3×6+4×5+5×4+6×3+7×2=106.
2) If the first letter of the NRIC starts with T or G, add 4 to the total.
3) Then you divide the number by 11 and get the remainder. 106/11=9r7
4) You can get the alphabet depending on the IC type (the first letter in the IC) using the code below:
If the IC starts with S or T: 0=J, 1=Z, 2=I, 3=H, 4=G, 5=F, 6=E, 7=D, 8=C, 9=B, 10=A
If the IC starts with F or G: 0=X, 1=W, 2=U, 3=T, 4=R, 5=Q, 6=P, 7=N, 8=M, 9=L, 10=K
-
- Chatter
- Posts: 153
- Joined: Sat, 16 Apr 2011 12:27 pm
Thats really interesting, I didnt realise there was a maths behind it.
Maths is not my strength either but 132 / 11 is 12 with 0 remainder therefore your last letter should be J, Correct?now .. I was never strong in my maths .. my total comes to 132, and it is S, so what is the last letter again ??
Turns out, for my S IC, it is NOT JTigerslayer wrote:Thats really interesting, I didnt realise there was a maths behind it.
Maths is not my strength either but 132 / 11 is 12 with 0 remainder therefore your last letter should be J, Correct?now .. I was never strong in my maths .. my total comes to 132, and it is S, so what is the last letter again ??


- sundaymorningstaple
- Moderator
- Posts: 40212
- Joined: Thu, 11 Nov 2004 1:26 pm
- Location: Retired on the Little Red Dot
-
- Chatter
- Posts: 153
- Joined: Sat, 16 Apr 2011 12:27 pm
if you are questioning the IC issued by ICA, then there nothing I could say ...Tigerslayer wrote:I have a few questions to clear this up...
- From which merchant did you purchase your NRIC?
- Where in Geylang did you buy it?
- and Do you still have the receipt?

No, I don't loiter around Geylang - punlike you ..

PS: I don't have a habit of buying ICs from merchants .. and I don't 'collect' IDs .. or ICs ..

- sundaymorningstaple
- Moderator
- Posts: 40212
- Joined: Thu, 11 Nov 2004 1:26 pm
- Location: Retired on the Little Red Dot
And how does the fact that Moi knows a bit more than am expected to know, and occasionally gets to shine, help solve the "MATH" problem here ?
And .. err ... as per HRH, does it mean I have a "FAKE" IC ? (as per the drift of 'knowing people' is implying ?? )
Yah, After all, it is not my turf .. so will wind my neck in ..


And .. err ... as per HRH, does it mean I have a "FAKE" IC ? (as per the drift of 'knowing people' is implying ?? )
Yah, After all, it is not my turf .. so will wind my neck in ..


-
- Chatter
- Posts: 153
- Joined: Sat, 16 Apr 2011 12:27 pm
Yes .. or maybe I should try a different calculator ..Tigerslayer wrote:Joking aside the maths behind it seem pretty standard for all... If your NRIC isnt matching are you sure 132 is the correct outcome of all the multiplying and addition?


let me verify on another person's ic now and see how it goes !!!!
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Landlord wants to collect my visitors NRIC
by Tourtles » Tue, 16 Jun 2020 12:42 am » in Property Talk, Housing & Rental - 5 Replies
- 2390 Views
-
Last post by TropicalExpat
Sun, 12 Jul 2020 2:11 pm
-
-
-
Why malaysia is falling behind Singapore
by Wd40 » Mon, 26 Dec 2022 9:27 pm » in General Discussions - 18 Replies
- 2302 Views
-
Last post by Wd40
Sun, 01 Jan 2023 2:54 pm
-
-
- 0 Replies
- 1605 Views
-
Last post by Daniel_Wanderer
Thu, 05 Sep 2019 11:10 pm
Who is online
Users browsing this forum: No registered users and 22 guests