Letter codes : shifting forward or backward
Friends play a game to write secret messages : write the next letter in place of each letter. "CAT" becomes "DBU". Only someone who knows the rule can read the message. This is a code.
A code is a secret way of writing a word. To decode is to turn the code back into the plain word. Here every letter moves a fixed number of steps forward (+) or backward (−). After Z comes A again.
Letter codes : shifting forward or backward
In the app you can move this figure with your finger.
Open in the appExample of shifting (+1)
| Original word | Letters | New letters | Code |
|---|---|---|---|
| CAT | C, A, T | D, B, U | DBU |
| DOG | D, O, G | E, P, H | EPH |
| XYZ | X, Y, Z | Y, Z, A | YZA |
Shift every letter by the same number of steps. The shift is the same for all letters.
- E.g. "CAT" 1 step forward : C→D, A→B, T→U. Code DBU.
To find the steps, look at the first pair of letters : number of the code letter − number of the original letter.
- E.g. "BAT = DCV". B (2) → D (4). Steps +2.
To decode go the opposite way : subtract the steps from the code.
- E.g. +3 code "KRXVH" : K−3 = H, R−3 = O, X−3 = U, V−3 = S, H−3 = E. The word is HOUSE.
Going beyond Z you come back to A; going back from A you come to Z.
- E.g. "XYZ" +3 : X→A, Y→B, Z→C. Code ABC.
If every letter is shifted 1 step forward, what is the code of "MANGO"?
- M→N, A→B, N→O, G→H, O→P.
- Answer : NBOHP.
In a code "PEN" = "RGP". In the same code what is "INK"?
- P→R, E→G, N→P. Steps +2.
- I→K, N→P, K→M. Answer : KPM.
In a code "SUN" = "VXQ". In the same code what does "KRXVH" mean?
- S→V, U→X, N→Q. Steps +3.
- Decode : K−3 = H, R−3 = O, X−3 = U, V−3 = S, H−3 = E. Answer : HOUSE.
Look at the first code letter and the first original letter to get the steps; then the same rule everywhere.
Going forward again while decoding. If the code was made by shifting forward, go backward to decode.
Memory clue : "Code forward, decode backward."
When letters near Z come, use numbers : if the number goes above 26, subtract 26.
Spot the difference
| Situation | What to do |
|---|---|
| Word given, code wanted | Shift the letters forward (the given steps) |
| Code given, word wanted | Shift the letters backward |
| Steps not known | Find them from one pair |
Practice questions
- 1If every letter is shifted 1 step forward, what is the code of "CAT"?
- 2If every letter is shifted 2 steps forward, what is the code of "BOX"?
- 3If every letter is shifted 1 step backward, what is the code of "DOG"?
- 4In a code "BAG" = "DCI". In the same code what is "MAP"?
- 5What does the +3 code "KHOOR" mean?
- 6In the +3 code what is the code of "XYZ"?
- 7In the +1 code what is the code of "ZOO"?
- 8In a code "FAN" = "HCP". In the same code what does "JCV" mean?
Show answers (try them yourself first)
- 1DBU.
- 2DQZ.
- 3CNF.
- 4B→D, A→C, G→I. Steps +2. MAP : M→O, A→C, P→R. Answer : OCR.
- 5K−3 = H, H−3 = E, O−3 = L, O−3 = L, R−3 = O. Answer : HELLO.
- 6X→A, Y→B, Z→C. Answer : ABC.
- 7Z→A, O→P, O→P. Answer : APP.
- 8F→H, A→C, N→P : +2. J−2 = H, C−2 = A, V−2 = T. Answer : HAT.
Opposite letter code and reverse word
In a mirror left becomes right. The alphabet can be seen like that too : in place of A comes Z, in place of B comes Y. And in a mirror a word looks reversed, which is also a code.
Opposite letter code : in place of every letter write its opposite letter (A↔Z, B↔Y, …). Number of the opposite letter = 27 − original number. Reverse word code : write the letters of the word in reverse order.
Pairs of opposite letters
| Original | Opposite | Original | Opposite |
|---|---|---|---|
| A | Z | N | M |
| B | Y | O | L |
| C | X | S | H |
| E | V | T | G |
Opposite letter = the letter with number 27 − original number.
- E.g. C (3) → 27 − 3 = 24 = X. A (1) → 26 = Z. T (20) → 7 = G. The code of "CAT" is XZG.
The opposite letter code works the same in both directions. So applying the same rule to the code gives the original word.
- E.g. Opposite letters of XZG : X→C, Z→A, G→T. The word is CAT.
In a reverse word code the letters are the same, only the order is reversed.
- E.g. The reverse word of "CAT" is "TAC".
To find which rule it is, look at the first letter : if A→Z, it is the opposite letter; if the letters are the same but the order is reversed, it is the reverse word.
- E.g. "ABC = ZYX" is an opposite letter code; "ABC = CBA" is a reverse word code.
In the opposite letter code what is the code of "BAG"?
- B (2) → 25 = Y, A → Z, G (7) → 20 = T.
- Answer : YZT.
In the opposite letter code what is the code of "DOG"?
- D (4) → 23 = W, O (15) → 12 = L, G (7) → 20 = T.
- Answer : WLT.
In a code "MAP" = "NZK". In the same code what is "SUN"?
- M (13) → N (14), A → Z, P (16) → K (11). This is the opposite letter code.
- S (19) → 8 = H, U (21) → 6 = F, N (14) → 13 = M. Answer : HFM.
In the opposite letter code you can recognise it at once from the first pair : A and Z, M and N, B and Y.
Using 26 − number to find the opposite letter. The right way is 27 − number.
Memory clue : "27 minus the number."
M and N are opposites of each other; so MN is in the middle. They come as a pair between the two halves A to M and N to Z.
Spot the difference
| Code | Word "CAT" | How to recognise it |
|---|---|---|
| Opposite letter | XZG | Z in place of A |
| Reverse word | TAC | Same letters, reverse order |
| +1 forward | DBU | Every letter is the next one |
Practice questions
- 1In the opposite letter code what is the code of "AB"?
- 2In the opposite letter code what does "ZYX" mean?
- 3What is the reverse word code of "STOP"?
- 4In the opposite letter code what is the code of "TEN"?
- 5In the opposite letter code what does "OLEV" mean?
- 6What is the reverse word code of "MARKET"?
- 7In a code "HOME" = "SLNV". In the same code what is "ROSE"?
- 8In a code the word is first reversed and then each letter is changed to its opposite letter. What is the code of "CAT"?
Show answers (try them yourself first)
- 1A→Z, B→Y. Answer : ZY.
- 2Z→A, Y→B, X→C. Answer : ABC.
- 3POTS.
- 4T→G, E→V, N→M. Answer : GVM.
- 5O→L, L→O, E→V, V→E. Answer : LOVE.
- 6TEKRAM.
- 7H→S, O→L, M→N, E→V : the opposite letter code. R (18) → 9 = I, O → L, S (19) → 8 = H, E → V. Answer : ILHV.
- 8Reversed word : TAC. Then T (20) → 7 = G, A → Z, C (3) → 24 = X. Answer : GZX.
Letter = number : number codes
In a row every student has a roll number. The letters A to Z also have numbers : A = 1, B = 2, … Z = 26. Using the numbers of the letters of a word we can make a number code.
Number code : write the number of each letter in its place. The value of a word is the sum of the numbers of its letters.
Numbers of letters
| Letter | Number | Letter | Number |
|---|---|---|---|
| A | 1 | O | 15 |
| E | 5 | T | 20 |
| J | 10 | Y | 25 |
Letter = number. The code of a word is a row of numbers.
- E.g. "CAT" = 3 - 1 - 20.
Value of a word = sum of the numbers of all its letters.
- E.g. "CAB" = 3 + 1 + 2 = 6.
If a code is given, find the letter for each number. Use the EJOTY landmarks.
- E.g. 8 - 5 - 12 - 16 : H, E, L, P. The word is "HELP".
If the sum and one letter are given, subtract to find the other letter.
- E.g. Value of two letters is 27 and one letter is Z (26). The other is 27 − 26 = 1, that is A.
What is the value of "DOG"?
- D = 4, O = 15, G = 7.
- 4 + 15 + 7 = 26.
What is the number code of "FISH"?
- F = 6, I = 9, S = 19, H = 8.
- Answer : 6 - 9 - 19 - 8.
What does the code 3 - 15 - 13 - 5 mean?
- 3 = C, 15 = O, 13 = M, 5 = E.
- Answer : COME.
Keep the EJOTY landmarks (5, 10, 15, 20, 25) in mind and the numbers come quickly.
Reading a two-digit number as two letters (e.g. reading 12 as 1 and 2). In a code 12 means L.
Memory clue : "Letter = number; number = letter."
After finding the value of a word, add once more; if one letter was wrong, the sum is wrong.
Spot the difference
| Question | How to solve it |
|---|---|
| Code of a word | Write the number of each letter |
| Value of a word | Sum of the numbers |
| Code given, word wanted | Find the letter for each number |
Practice questions
- 1What is the value of "BAG"?
- 2What is the number code of "CAB"?
- 3What does the code 1 - 2 - 3 mean?
- 4What is the value of "BOOK"?
- 5What does the code 19 - 21 - 14 mean?
- 6Which has the greater value : "AGE" or "EGG"?
- 7What is the difference between the values of "CAT" and "DOG"?
- 8The value of two letters is 27 and one of them is Z. Which is the other letter?
Show answers (try them yourself first)
- 12 + 1 + 7 = 10.
- 23 - 1 - 2.
- 3ABC.
- 42 + 15 + 15 + 11 = 43.
- 519 = S, 21 = U, 14 = N. Answer : SUN.
- 6AGE = 1 + 7 + 5 = 13. EGG = 5 + 7 + 7 = 19. EGG is greater.
- 7CAT = 3 + 1 + 20 = 24. DOG = 26. The difference is 2.
- 827 − 26 = 1, that is A.
Swapping words and the common-word trick
In a game we say, "From today let us call water milk." Then if someone asks, "What will you drink when thirsty?" the answer is "milk". The names change but the thing is the same.
In this code words are replaced by other words. In the question the thing stays the same, only its name changes. In the second kind, groups of letters are codes for sentences; by finding the common word in two sentences we can find the code of each word.
Chain of names
| Real thing | Its new name |
|---|---|
| Red | Blue |
| Blue | Green |
| Green | Yellow |
| Yellow | Black |
First recognise the real thing, then give its new name.
- E.g. The real colour of the sky is blue. Blue is called green, so the answer is green.
A new name is not changed again. Change once and stop.
- E.g. Sky = blue = green. Do not change "green" again into yellow.
If two sentences have a common word, the common code is the code of that word.
- E.g. "pit mun" = red flower; "mun kal" = flower beautiful. Common code mun, common word flower. So flower = mun.
The order of the words in a sentence may be changed. Look at the common code, not the order.
- E.g. "bu ka sa" and "ka ra". Common code ka.
Red = blue, blue = green, green = yellow, yellow = black. What do they call the colour of the sky?
- The sky is really blue. Blue is called green.
- Answer : Green.
In the same code what do they call the colour of grass?
- Grass is really green. Green is called yellow.
- Answer : Yellow.
"ka ra" = we school, "ra bu" = school go, "bu ka sa" = go we daily. What is the code of "daily"?
- First and second sentences : common ra, so school = ra. Second and third : common bu, so go = bu.
- First and third : common ka, so we = ka.
- The one left in the third sentence is sa = daily. Answer : sa.
The name changes, the thing does not. First the real thing, then the new name.
Changing the name twice. Stop at the new name you have.
Memory clue : "Real thing, new name; common word, common code."
If each word comes only once in three sentences, recognise and remove all the other words; the one left over is the one wanted.
Spot the difference
| Question | How to solve it |
|---|---|
| The name is changed | Real thing, then its new name |
| Two sentences, one common word | Common word = common code |
| Three sentences | Join the pairs and separate the words one by one |
Practice questions
- 1If night is called day and day is called night, what will they say when we sleep?
- 2In the same code what will they say when the sun is seen?
- 3"pit mun" = red flower, "mun kal" = flower beautiful. What is the code of "red"?
- 4In the same code what is the code of "beautiful"?
- 5"ta mi" = I eat, "mi lo" = eat fruit. What is the code of "fruit"?
- 6If an apple is called a mango and a mango is called a banana, what is a mango called?
- 7"ba ro" = he plays, "di ba" = ball he, "ma di" = red ball. What is the code of "plays"?
- 8Red = blue, blue = green, green = yellow, yellow = black. What do they call the colour of a sunflower?
Show answers (try them yourself first)
- 1Sleep comes at night. Night is called day. Answer : Day.
- 2The sun is seen in the day. Day is called night. Answer : Night.
- 3pit.
- 4kal.
- 5mi is in both sentences. mi = eat. Then lo = fruit. Answer : lo.
- 6A mango is called a banana. Answer : Banana.
- 7ba is in two sentences (he), di is in two sentences (ball). ro = plays, so the answer : ro.
- 8A sunflower is really yellow. Yellow is called black. Answer : Black.
Mixed codes : alternate, growing steps and swapping pairs
Climbing stairs, sometimes we climb one step, sometimes two. In some codes too the steps of each letter are different. Once the rule is understood, every letter can be solved.
In a mixed code the rule changes with the letter : alternate (+1, −1, +1, −1), growing steps (+1, +2, +3, +4) or swapping pairs (two neighbouring letters exchange places). To find the rule check two or three letters.
Examples of mixed codes
| Word | Rule | Code |
|---|---|---|
| BOAT | +1, −1, +1, −1 | CNBS |
| BEAT | +1, +2, +3, +4 | CGDX |
| BOOK | Swapping pairs | OBKO |
Alternate : the first and third letters by one rule; the second and fourth by another.
- E.g. BOAT : B+1 = C, O−1 = N, A+1 = B, T−1 = S. Code CNBS.
Growing steps : one more step for each next letter.
- E.g. BEAT : B+1 = C, E+2 = G, A+3 = D, T+4 = X. Code CGDX.
Swapping pairs : the first and second letters exchange places, the third and fourth exchange places.
- E.g. BOOK : (B, O) → O, B and (O, K) → K, O. Code OBKO.
Frame to find the rule : (1) Find the steps of each letter of the given pair. (2) If all steps are the same it is a simple code, if different it is mixed. (3) Apply the same rule to the next word. (4) Check the answer.
- E.g. MAKE = OZMD : M→O (+2), A→Z (−1), K→M (+2), E→D (−1). So alternate +2, −1.
With the alternate rule +1, −1, what is the code of "ROW"?
- R+1 = S, O−1 = N, W+1 = X.
- Answer : SNX.
With growing steps (+1, +2, +3, +4), what is the code of "PLAN"?
- P+1 = Q, L+2 = N, A+3 = D, N+4 = R.
- Answer : QNDR.
In a code "MAKE" = "OZMD". In the same code what is "LION"?
- MAKE : +2, −1, +2, −1.
- LION : L+2 = N, I−1 = H, O+2 = Q, N−1 = M. Answer : NHQM.
When solving a mixed code check the steps of each letter separately. Do not fix the rule from one letter.
Applying the rule of the first letter to all letters. If the second letter is not checked, the alternate rule is not seen.
Memory clue : "Check the steps of every letter."
At the end count the letters of the answer : the code must have as many letters as the word.
Spot the difference
| Sign | Rule |
|---|---|
| All steps the same | Simple code |
| Steps alternate | Alternate code |
| Steps grow 1, 2, 3 … | Growing steps |
| Same letters, places changed | Swapping code |
Practice questions
- 1With the alternate rule +1, −1, what is the code of "FUN"?
- 2With swapping pairs, what is the code of "BOOK"?
- 3With growing steps (+1, +2, +3), what is the code of "MAP"?
- 4With growing steps (+1, +2, +3, +4), what is the code of "SAND"?
- 5What does the alternate +1, −1 code "CNBS" mean?
- 6With swapping pairs, what is the code of "TEAM"?
- 7In a code "HAND" = "KZQC". In the same code what is "FOOT"?
- 8First swapping pairs, then every letter +1. What is the code of "PLAY"?
Show answers (try them yourself first)
- 1F+1 = G, U−1 = T, N+1 = O. Answer : GTO.
- 2OBKO.
- 3M+1 = N, A+2 = C, P+3 = S. Answer : NCS.
- 4S+1 = T, A+2 = C, N+3 = Q, D+4 = H. Answer : TCQH.
- 5C−1 = B, N+1 = O, B−1 = A, S+1 = T. Answer : BOAT.
- 6(T, E) → E, T and (A, M) → M, A. Answer : ETMA.
- 7H→K (+3), A→Z (−1), N→Q (+3), D→C (−1). FOOT : F+3 = I, O−1 = N, O+3 = R, T−1 = S. Answer : INRS.
- 8Swapping pairs : LPYA. Each +1 : L→M, P→Q, Y→Z, A→B. Answer : MQZB.
Quick revision of the whole lesson
| Type | Memory clue |
|---|---|
| Shifting forward or backward | Code forward, decode backward |
| Opposite letter | 27 minus the number |
| Letter = number | Letter = number; number = letter |
| Swapping words | Real thing, new name |
| Common word | Common word, common code |
| Mixed codes | Check the steps of every letter |
🎯 Most important points for the exam
- In a code find by numbers how many steps each letter moved.
- After Z comes A, and going back from A you reach Z.
- Opposite letter = 27 − number.
- Value of a word = sum of the numbers of its letters (A = 1, B = 2 …).
- If names are changed, first the real thing, then its new name; change the name only once.
- The common code of two sentences is the common word.
- In a mixed code check the steps of all the letters.
"Count the steps, find the rule; check at the end."