Imagine a friend sends you four numbers written in secret symbols. But the codes do not arrive in the order of the numbers: they are mixed up. You know one thing: every digit is always written with the same symbol. Can you still crack the code? In the TR-YÖS Numerical Ability test (Sayısal Yetenek) this puzzle usually appears among the number-and-symbol questions at the start of the test. With a method it takes about a minute.
What the question looks like
You get 3–5 numbers and their codes. In a code every digit is replaced by a symbol (sometimes by a letter or another digit). Two rules always hold: same digit — same symbol, different digits — different symbols. The codes, however, are listed in another order. You are asked to encode a new number or to decode a new code.
Why it works: every number has a fingerprint
The coding replaces each digit by its own symbol. The digits change their look, but the places of equal digits do not change. In 3443 the first and the last digits are equal, and so are the two middle ones. So its code must also have one symbol in places 1 and 4 and another equal pair in places 2 and 3. We write this shape with letters: 3443 → ABBA.
Repetition patternDefinition
the places of equal digits in a number, written with letters: 3443 → ABBA, 3456 → ABCD, 7172 → ABAC. A number and its code always have the same pattern.
Three more things survive the coding. The table shows which clues you can trust and which you cannot.
| Feature | Kept in the code? |
|---|---|
| Length (number of digits) | yes |
| Places of equal digits (ABBA, ABCD…) | yes |
| The same digit in the same place of two numbers | yes |
| How often each digit occurs in the whole list | yes |
| Order of the list | no |
| Value of a digit (even/odd, large/small) | no |
Example 1: matching by pattern
Problem
The numbers 3443, 3456 and 6534 are coded. The codes in mixed order: ◆▲■●, ■●●■, ■●▲◆. What is the code of 5463?
Show solutionHide solution
Solution
2) There is only one ABBA on each side: 3443 = ■●●■. So 3 = ■ and 4 = ●.
3) 3456 starts with 34, so its code starts with ■●: 3456 = ■●▲◆. So 5 = ▲ and 6 = ◆.
4) Check: 6534 → ◆▲■● is in the list ✓.
5) 5463 → ▲ ● ◆ ■. Answer: ▲●◆■.
The method in five steps
Write the patterns
Under every number and every code write its pattern (ABBA, ABCD…). A pattern that occurs only once on each side gives a sure pair.
Compare positions
Find a digit that several numbers share in the same place (often the first digit). The same number of codes must share a symbol in that place.
Count if needed
If all patterns look alike, count how often each digit appears in all numbers and each symbol in all codes. Equal counts belong together.
Fix one symbol and spread it
Every symbol you know shows where it stands in the other codes. Pair the next number, read off the new symbols, repeat.
Check every pair, then answer
Write the full key (digit → symbol), encode all the given numbers and make sure you get exactly the listed codes. Then encode or decode the asked number and compare it with the options.
Example 2: when patterns do not help — count
Problem
The numbers 157, 195, 715, 913 and 915 are coded. Codes in mixed order: ★▲●, ■▲●, ▲●★, ■▲◆, ▲■●. What is the code of 3971?
Show solutionHide solution
Solution
2) Count the digits in the numbers: 1 — 5 times, 5 — 4 times, 9 — 3 times, 7 — twice, 3 — once.
3) Count the symbols in the codes: ▲ — 5, ● — 4, ■ — 3, ★ — 2, ◆ — 1.
4) All counts are different, so the key is complete: 1 = ▲, 5 = ●, 9 = ■, 7 = ★, 3 = ◆.
5) Check: 157 → ▲●★, 195 → ▲■●, 715 → ★▲●, 913 → ■▲◆, 915 → ■▲● — all five are in the list ✓.
6) 3971 → ◆■★▲. Answer: ◆■★▲.
Example 3 (TR-YÖS style): four four-digit numbers
Problem
The numbers 6136, 6413, 4861 and 1386 are coded with symbols. Codes in mixed order: ■★◆●, ●▲★◆, ◆●▲◆, ◆■●▲.
1) Which is the code of 8134?
A) ★▲●■ B) ★●▲■ C) ■●▲★ D) ★●■▲ E) ◆●▲■
2) Which number has the code ▲■★◆?
Show solutionHide solution
Solution
2) Two numbers start with 6 and two codes start with ◆. 6136 is already used, so 6413 = ◆■●▲ and 4 = ■.
3) The code of 4861 must start with ■: ■★◆●. So 8 = ★.
4) Check the last pair: 1386 → ●▲★◆ ✓.
5) Key: 1 = ●, 3 = ▲, 4 = ■, 6 = ◆, 8 = ★. 8134 → ★●▲■ — answer B.
6) Decoding goes backwards: ▲■★◆ → 3, 4, 8, 6 → 3486.
Example 4: letters instead of symbols
Problem
Each letter stands for a digit (same letter — same digit, different letters — different digits). The letter strings DAL, LAD, ADA and LAL are written as 939, 639, 363, 936 (in mixed order). How is LADA written?
Show solutionHide solution
Solution
2) The patterns leave two choices in each group, so look at positions. DAL and LAD have the same middle letter (A); 639 and 936 have the same middle digit (3). So A = 3.
3) ADA has A = 3 at both ends: ADA = 363, D = 6. LAL = 939, L = 9.
4) Check: DAL = 639 ✓, LAD = 936 ✓.
5) LADA → 9 3 6 3. Answer: 9363.
Traps and an incomplete key
Example 5: when the key is not complete
Problem
The numbers 123 and 321 are coded as ●▲■ and ■▲● (in mixed order). For which of these do we know the code for sure: 22, 13, 212?
Show solutionHide solution
Solution
2) If 123 = ●▲■, then 1 = ●, 3 = ■; if 123 = ■▲●, then 1 = ■, 3 = ●. Both keys fit the list.
3) So: 22 → ▲▲ — sure. 13 → ●■ or ■● — not fixed. 212 → ▲●▲ or ▲■▲ — not fixed.
In the exam such a list is followed only by a question about the fixed part, or the options leave a single choice.
Practice task
Practice: when all patterns are the same
Problem
The numbers 6021, 2610, 1206 and 6102 are coded with symbols. Codes in mixed order: ■▲●◆, ◆●▲■, ◆■●▲, ▲◆■●. Which is the code of 2016?
A) ▲■●◆ B) ●▲■◆ C) ▲●■◆ D) ▲●◆■ E) ■●▲◆
Show solutionHide solution
Solution
2) Positions: two numbers start with 6 (6021, 6102) and two codes start with ◆ (◆●▲■, ◆■●▲). So 6 = ◆.
3) Where else is 6? In 2610 it is in place 2. Only one code has ◆ in place 2: ▲◆■●. So 2610 = ▲◆■●: 2 = ▲, 1 = ■, 0 = ●.
4) Check: 6021 → ◆●▲■ ✓, 6102 → ◆■●▲ ✓, 1206 → ■▲●◆ ✓.
5) 2016 → ▲●■◆. Answer: C.
Remember
- Same digit — same symbol, different digits — different symbols; the codes come in mixed order.
- A number and its code have the same repetition pattern (3443 → ABBA): a unique pattern gives a sure pair.
- Shared digits in the same place and the counts of symbols pair the rest.
- Write the full key and check every given pair before answering.
- Cross out options as soon as one symbol of the answer is known.