Chapter 20: Every Letter Counts: A Hidden Name in the Song of the Sea, section 3 of 7 Overview of chapter 20 Book contents Previous Next

How a Code Is Found

To understand what a code search involves, it helps to walk through one step by step. Our example will be the name Sisera, the Canaanite general of chapter 16. In Hebrew the name has five letters, S-Y-S-R-A: samekh, yod, samekh, resh, alef. (In earlier chapters we usually set aside the letters V and Y. In a code search no letter is set aside: every letter of the text counts, and every letter of the word must be found.) The name Sisera never appears in the plain text of the Torah. If it is in the Torah at all, it must be hidden.

Step 1: Prepare the text. Write out the entire Torah, Genesis through Deuteronomy, as one continuous string of letters. Spaces between words, verse numbers, chapter divisions and the open and closed breaks are all removed. Hebrew has five letters that take a special shape at the end of a word, and these are treated as their ordinary forms, since in the string there are no “ends of words.” The text used here has 304,815 letters. Number them from 1 to 304,815.

Step 2: Choose an interval. Begin with an interval of 2, that is, every second letter. (An interval of 1 is simply the ordinary text, which we already know does not contain the name.)

Step 3: Try every starting point. Start at letter 1 and ask whether it is an S. If it is, look at letter 3 and ask whether it is a Y; then letter 5 (S), letter 7 (R) and letter 9 (A). If all five match, a code has been found. Record where it starts and its interval. If any letter fails, the attempt is over. Then start at letter 2 and check letters 2, 4, 6, 8 and 10. Then start at letter 3, and so on. The starting point moves forward one letter at a time until the five letters would run past the end of the text. With an interval of 2, the last possible start is letter 304,807, whose fifth letter is letter 304,815.

Step 4: Read backward. A code may also run backward through the text. So each starting point is checked a second time, stepping toward the beginning rather than the end. (In practice this is the same as searching forward for the name spelled in reverse, A-R-S-Y-S.)

Step 5: Move to the next interval. When every starting point has been tried in both directions, raise the interval to 3 and repeat Steps 3 and 4. Then 4, then 5, and so on.

Step 6: Stop when the word no longer fits. A five-letter word at interval d covers 4d + 1 letters from first to last. The interval can therefore grow until 4d + 1 equals the length of the text. Here that limit is an interval of 76,203. At that interval the five letters are spread across the whole Torah, with one letter at the start of Genesis and one near the end of Deuteronomy.

How many attempts? At each interval the number of starting points is the length of the text minus four intervals. At an interval of 2 there are 304,807 starting points, and at the largest interval only 3. Counting both directions and adding over every interval from 2 to 76,203 gives about 23.2 billion separate attempts. Each attempt is a single question: do these five letters, at these positions, spell Sisera?

How likely is each attempt to succeed? That depends on how common the letters are. In this text:

Letter Occurrences Share of the text
S (samekh) 1,833 0.60%, about 1 letter in 166
Y (yod) 31,539 10.35%
R (resh) 18,125 5.95%
A (alef) 27,058 8.88%

Samekh is one of the rarest letters in the Torah, and Sisera’s name needs it twice. That is what makes the name hard to find. Suppose the letters were scattered at random, with each position independent of its neighbors. Then the chance that a single attempt spells the name is the product of the five shares: 0.60% × 10.35% × 0.60% × 5.95% × 8.88%. That comes to about 1 in 50.6 million.

How many times should the name turn up by chance? One chance in 50.6 million is very small. But 23.2 billion attempts is a very large number. Multiplying the two gives the number of times we should expect to find the name by chance alone: about 459. The table shows how the expected count grows as the search is allowed to range further:

Intervals searched Attempts (both directions) Expected chance finds
2 to 10 5.5 million 0.1
2 to 100 60 million 1.2
2 to 1,000 605 million 12
2 to 10,000 5.7 billion 112
2 to 76,203 (all) 23.2 billion 459

At any single small interval, the chance of finding the name anywhere in the Torah is only about 1 in 83. Over the whole search, however, it would be surprising not to find it, and many times over. So the bare fact that a name “is encoded in the Torah” means nothing in itself. Whatever meaning a code may have must come from something else: its interval, and above all where in the text it lies.

Two Names Already Found

In fact we have already met two hidden names of judges, both at the smallest possible interval, and in both cases what mattered was where they lie.

The first is Gideon. As we saw in the chapter on Gideon, the verb “you shall hew down,” tegadde’un, contains all five letters of his name, G-D-E-V-N, in order, spelled exactly as the Book of Judges spells it. The word occurs in the Torah only twice (Deut 7:5; 12:3), and both verses command Israel to break down altars and cut down Asherim. Gideon’s first act is to tear down the altar of Baal and cut down the Asherah (Judg 6:25–32). Since the name lies inside a single word, we treated it as a word connection, not a code.

The second is Samson. His name, Shimshon, S-M-S-V-N, appears as five consecutive letters exactly once in the Torah, in the account of the manna: “and when the sun grew hot (ha-shemesh), it melted (ve-namas)” (Exod 16:21). Here the name spans two words, the end of ha-shemesh and the first two letters of ve-namas. In the terms of this chapter it is a code at an interval of 1: no letter is skipped, but the space between the words is ignored. And as we saw in the chapter on the Book of Judges, it too lies on a word related to the judge’s story. The verb “to melt” appears in the Book of Judges only once, when the bonds of Samson “melted from off his hands” (Judg 15:14).

In both cases the name stands in a passage that the story of the judge recalls in other ways. That is the kind of agreement between hidden letters and plain text that this chapter looks for.

Last revised 13 November 2026