ExamShortcut

Coding - Decoding

Log in to track
high importance~4 Q in Tier 16 formulas⚡ 10 shortcuts7 subtopics

Every formula in this topic, grouped by subtopic.

Letter shift coding

Shift list
\text{code}_i = \text{letter}_i + d_i \pmod{26}

d is the shift for place i, found from the sample. Above 26, subtract 26.

Decoding
\text{letter}_i = \text{code}_i - d_i \pmod{26}

To decode, subtract the same shifts. At 0 or below, add 26.

Number coding

Position sum
\text{code} = \sum p_i

p = position of a letter, A = 1 … Z = 26.

Sum with an extra step
\text{code} = k \cdot \sum p_i + r

Find k (multiply) or r (add) from the sample. Check with a second sample if one is given.

Weighted sum
\text{code} = \sum i \cdot p_i

i = place of the letter in the word (1st, 2nd, 3rd …).

Reverse positions
p^{\text{rev}} = 27 - p

Z counts as 1 and A as 26.

How these Coding - Decoding formulas are used

The cards above hold 6 formulas across 2 subtopics: Letter shift coding (2) and Number coding (4). Of the 37 recurring question types catalogued for this topic, 9 are solved directly from a formula; the rest need a method or a table rather than a single relation. A formula sheet only helps when you know which words in a question call for which formula, so the section below pairs each subtopic with the question types that use its formulas, a worked case taken from the lessons, and a note on when to apply it.

Jump to: Letter shift coding · Number coding

Formulas in action

For each subtopic: what it deals with, when the formula applies, and a worked example from our lessons.

Letter shift coding

2 formulas on this page

Every letter moves forward or backward by some steps in the alphabet. Find the steps from the sample pair, slot by slot. Then move the letters of the new word by the same steps. After Z the alphabet starts again at A.

Flat shift (+k or −k on every letter) · asked very common

Use it when: Every code letter is the same number of steps ahead of (or behind) its word letter.

\text{code}_i = \text{letter}_i + k
Worked example

In a certain code language, SILK is written as UKNM. How will COTTON be written in that language?

  1. S→U, I→K, L→N, K→M: each is +2.

  2. COTTON +2: C→E, O→Q, T→V, T→V, O→Q, N→P.

Answer:

EQVVQP

Rising or falling shift (+1, +2, +3, …) · asked common

Use it when: The differences are not equal but grow or fall by place: +1, +2, +3, +4 or −1, −2, −3.

\text{code}_i = \text{letter}_i + d_i
Worked example

In a certain code language, LAMP is written as MCPT. How will DESK be written in that language?

  1. L→M +1, A→C +2, M→P +3, P→T +4.

  2. DESK: D+1 = E, E+2 = G, S+3 = V, K+4 = O.

Answer:

EGVO

Full lesson: Letter shift coding →

Number coding

4 formulas on this page

A 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.

Plain position sum · asked very common

Use it when: A word is coded as a number, often between 20 and 80. The question may say 'sum of positions'.

\text{code} = \sum p_i
Worked example

In a certain code language, HAT is written as 29. How will PEN be written in that language?

  1. H + A + T = 8 + 1 + 20 = 29. The rule is the plain sum.

  2. P + E + N = 16 + 5 + 14.

Answer:

35

Reverse-position sum (A = 26 … Z = 1) · asked common

Use it when: The question says A = 26, B = 25 … Z = 1, or a short word has a large code.

\text{code} = \sum (27 - p_i)
Worked example

In a certain code, EAT is written as 55. How will TEN be written in that code?

  1. Reverse values: E = 22, A = 26, T = 7. The sum is 55, so the rule fits.

  2. TEN: T = 7, E = 22, N = 13.

Answer:

42

Full lesson: Number coding →

Common mistakes when applying Coding - Decoding formulas

Knowing a formula and applying it correctly are different skills. These are the slips flagged in the lessons.

  • The coding-decoding family

    Common slip: Using a different shift for the new word than the sample showed.

    Instead: Apply exactly the rule you found on the sample pair.

  • Letter shift coding

    Common slip: Adding the shift in a decoding question.

    Instead: Decoding runs backwards. Subtract where the rule adds.

  • Reversal and reverse-plus-shift coding

    Common slip: Reversing the word but forgetting the extra shift.

    Instead: After reversing, compare with the code letter by letter for a leftover shift.

  • Number coding

    Common slip: Copying the sample's number into the code of a new word.

    Instead: Work out the number part again for the new word.

  • Symbol and digit coding

    Common slip: Coding straight from the table without checking the conditions.

    Instead: Test every condition on the word first. Then use the table.

  • Substitution and sentence coding

    Common slip: Answering with the real-world word ('rain') instead of its new name.

    Instead: Find the real answer, then look up what it is called.

  • Language (sentence) coding with common words

    Common slip: Matching code words by position.

    Instead: The order is jumbled. Match by common words and common codes.

  • The coding-decoding family

    Common slip: Checking only one letter and trusting the rule.

    Instead: Check at least three letters. A rising shift looks flat on one letter.

How to memorise this sheet

These are rules and short relations, not long derivations. Say each one in your own words, then build one tiny example of your own and check it against the rule.

With 6 formulas, do not try to learn them in one sitting. Take one subtopic at a time, test yourself the next day, then again after a few days; the revision planner can schedule those repeats.

Put them to use: read the lessons, work through the 4 solved examples and then take the 93-question practice test. The combined sheet for every topic is on the all-topics formula sheet.