Coding - Decoding
🔒 Log in to trackNumber coding
🔒 Log in to trackA word is coded as a number built from its letter positions (A = 1 … Z = 26). Most often the number is the sum of the positions. Test the plain sum first; if it does not match, look for one extra step.
What number coding is
A word is coded as a number. The number is built from the letter positions. SUN = 19 + 21 + 14 = 54.
Positions run A = 1, B = 2, … Z = 26. The EJOTY anchors make them fast: E = 5, J = 10, O = 15, T = 20, Y = 25.
Start with the plain sum
Add the positions of the sample word. Compare the total with the code.
SUN is coded 54. S = 19, U = 21, N = 14, and the sum is 54. That equals the code, so the rule is the plain sum. Then DOG = 4 + 15 + 7 = 26.
Add with anchors, not by counting. S is T − 1 = 19. U is T + 1 = 21. N = 14. The total comes out in seconds.
Rule: Your rule must give the sample's code exactly. If it is off by even 1, it is the wrong rule.
A full question, start to finish
"In a certain code, FISH is written as 42. How is TEA written in that code?"
- Add the sample's positions: F(6) + I(9) + S(19) + H(8) = 42.
- The sum equals the code, so the rule is the plain position sum.
- Add the new word: T(20) + E(5) + A(1) = 26.
- Write the answer: 26.
One check like this settles the rule. Then every other word in the question uses the same sum.
When the sum does not match
Compare the sum with the code and use this table.
| What you see | Rule |
|---|---|
| Code = sum | plain sum |
| Code = sum + a fixed number | sum + r |
| Code = 2 or 3 times the sum | sum × k |
| Short word, big code | reverse positions (A = 26 … Z = 1) |
| A long string of digits | positions written side by side |
| Letters followed by a number | mixed code |
Watch: One sample can fit two rules. BAT = 46 fits "sum × 2" and also "sum + 23". A second sample decides.
Reverse positions
Here A = 26, B = 25, … Z = 1. Each letter counts as 27 minus its normal position. CAT = 24 + 26 + 7 = 57.
Positions written side by side
Sometimes the positions are not added. They are written one after another. BAD = 2, 1, 4 → 214. CAT = 3, 1, 20 → 3120. FACE = 6, 1, 3, 5 → 6135.
Letters from J onwards take two digits. So when decoding, split the digits carefully. 3120 is C, A, T and not C, A, B, T.
Weighted sum
Each position is multiplied by the letter's place in the word, then everything is added.
DAB = 4×1 + 1×2 + 2×3 = 12. So CAD = 3×1 + 1×2 + 4×3 = 17.
Suspect it when no plain sum, sum + r or sum × k fits.
Mixed codes
TREE is written as USFF48. The letters moved +1 (TREE → USFF). The number is the position sum: 20 + 18 + 5 + 5 = 48.
Tip: Solve the letter part and the number part separately. Then join them in the sample's order.
For a new word, work out the number part again. Never copy the sample's number.
Question types you will see
Each type: how to recognise it, the method step by step, and one question to try.
Plain position sum
A word is coded as a number, often between 20 and 80. The question may say 'sum of positions'.
Add the positions of the sample word's letters.
If the sum equals the code, the rule is the plain sum.
Add the positions of the new word.
The plain sum is the most common number code in these exams.
In a certain code language, HAT is written as 29. How will PEN be written in that language?
Show solutionHide solution
H + A + T = 8 + 1 + 20 = 29. The rule is the plain sum.
P + E + N = 16 + 5 + 14.
35
Reverse-position sum (A = 26 … Z = 1)
The question says A = 26, B = 25 … Z = 1, or a short word has a large code.
Change each letter to 27 − its position.
Add them for the sample and confirm the code.
Repeat for the new word.
Reverse positions are the same table read from Z to A.
In a certain code, EAT is written as 55. How will TEN be written in that code?
Show solutionHide solution
Reverse values: E = 22, A = 26, T = 7. The sum is 55, so the rule fits.
TEN: T = 7, E = 22, N = 13.
42
Position sum with an extra step (× k or + r)
The plain sum of the sample is close to the code but not equal to it.
Work out the plain sum of each sample.
Find the step: code − sum, or code ÷ sum.
Keep the step that fits every sample.
Apply it to the new word's sum.
One extra operation turns the plain sum into the code.
In a certain code language, BAT is written as 46 and DOG is written as 52. How will CUP be written in that language?
Show solutionHide solution
BAT: 2 + 1 + 20 = 23, and 23 × 2 = 46.
DOG: 4 + 15 + 7 = 26, and 26 × 2 = 52. So the rule is sum × 2.
CUP: 3 + 21 + 16 = 40, and 40 × 2 = 80.
80
Weighted sum (position × place in the word)
No plain sum, sum + r or sum × k explains the code.
Multiply each letter's position by its place: 1st × 1, 2nd × 2, and so on.
Add the products and check the sample's code.
Do the same for the new word.
Weighting explains codes that no flat sum can reach.
In a certain code language, DAB is written as 12. How will CAD be written in that language?
Show solutionHide solution
DAB: 4×1 + 1×2 + 2×3 = 4 + 2 + 6 = 12. The rule fits.
CAD: 3×1 + 1×2 + 4×3 = 3 + 2 + 12.
17
Letters plus a number (mixed code)
The code is a string like USFF48: letters followed by a number.
Solve the letter part first. It is usually a shift.
Work out the number part for the new word from scratch.
Join both parts in the sample's order.
The two parts are separate small codes, and the number changes with the word.
In a certain code language, TREE is written as USFF48. How will LEAF be written in that language?
Show solutionHide solution
Letters: TREE +1 = USFF. Number: 20 + 18 + 5 + 5 = 48.
LEAF +1 = MFBG.
LEAF sum = 12 + 5 + 1 + 6 = 24.
MFBG24
Positions written side by side
The code is a long number with no obvious sum. Its digits match the letter positions in order.
Write the position of each letter of the sample.
Check that joining them gives the code.
Write the new word's positions side by side.
Nothing is added, so the code is just the positions in a row.
In a certain code language, BAD is written as 214 and FACE is written as 6135. How will HIDE be written in that language?
Show solutionHide solution
BAD = 2, 1, 4 and FACE = 6, 1, 3, 5. Positions are written side by side.
HIDE = 8, 9, 4, 5.
8945
Formula sheet
p = position of a letter, A = 1 … Z = 26.
Find k (multiply) or r (add) from the sample. Check with a second sample if one is given.
i = place of the letter in the word (1st, 2nd, 3rd …).
Z counts as 1 and A as 26.
Shortcuts that save time
Work out the position sum of the sample. If it equals the code, you are done. If not, compare: code − sum, then code ÷ sum. Only then try weighted or side-by-side codes.
If SUN is coded as 54, how is MOON coded?
Show solutionHide solution
S + U + N = 19 + 21 + 14 = 54. So the rule is the plain sum.
M + O + O + N = 13 + 15 + 15 + 14.
57
Letters near E, J, O, T and Y are small hops from 5, 10, 15, 20 and 25. Group them to add fast.
In position-sum coding, is CAT coded as 24?
Show solutionHide solution
C = 3, A = 1, T = 20.
3 + 1 + 20 = 24.
Yes, 24
Mistakes to avoid
Where most students lose marks on this subtopic.
Copying the sample's number into the code of a new word.
Work out the number part again for the new word.
Summing normal positions when the question says A = 26.
Use 27 − position for every letter.
Assuming the plain sum without checking the sample.
The rule must give the sample's code exactly.
Adding the constant to each letter instead of the total.
In 'sum + r' add r once, to the total.
Adding instead of multiplying in a weighted sum.
Multiply each position by its place, then add.
Quick revision
Read this the night before the exam.
Positions A = 1 … Z = 26; EJOTY anchors give fast look-ups.
Test order: plain sum → sum + r or × k → reverse positions → side by side → weighted.
The rule must reproduce the sample's code exactly.
Reverse position = 27 − position (A = 26, Z = 1).
Mixed codes: code the letters, then add the new word's own number.
One sample can fit two rules; use the second sample to decide.
Practice: 15 questions
Sets of 10, mixed across the question types above. Every answer has a step-by-step explanation.
Topic test · 10 questions
Suggested time 7 min · wrong answers go to your mistake notebook automatically.