# Z32: how many 32-letter texts the repeat pattern allows, with two constructed fits
**Model.** Glyphs are read in printed order. The key is a fixed homophonic substitution: each glyph decodes to exactly one letter, and different glyphs may decode to the same letter. Plaintext is normalized to uppercase A–Z, with spaces and punctuation removed. Without further constraints, every letter is drawn uniformly and independently from 26.
## Inputs and source locators
- **Transcription used:** the "Simple ASCII transcription of the cipher symbols" on the Zodiac Killer Ciphers Wiki, page *Unsolved 32-character "map code" cipher* (https://zodiackillerciphers.com/wiki/index.php?title=Unsolved_32-character_%22map_code%22_cipher). The raw wikitext (`&action=raw`) reads `C9J|#Ok[AMf8?ORTG
X6FDVj%HCELzPW9`. The `
` is the line break between the two lines, so the glyphs in printed order are:
`C9J|#Ok[AMf8?ORTGX6FDVj%HCELzPW9` (17 + 15 = 32 glyphs, 29 distinct).
- **Cross-check:** Cipher Mysteries (https://ciphermysteries.com/zodiac-killer-ciphers/zodiac-killer-z32) says that only the C-shape, the O-shape and the hollow triangle appear twice, and that every other glyph appears once. In this ASCII transcription those are `C`, `O` and `9`, which matches.
- **Repeat groups (one-based)**, computed from the string above:
| glyph | positions |
|---|---|
| `C` | {1, 26} |
| `9` (hollow triangle) | {2, 32} |
| `O` | {6, 14} |
All 26 other glyphs are singletons.
- **A different transcription exists:** Praetorian's blog (https://www.praetorian.com/blog/a-possible-solution-to-the-zodiac-killer-z32-cipher/) gives a 0-based list with TRIANGLE at 0-based 1, 11 and 31, C at 0 and 25, O at 5 and 13, and F at 10 and 19. It treats the shaded triangle and the hollow ones as the same symbol, and it adds an F pair. In one-based positions that gives the groups {1,26}, {2,12,32}, {6,14} and {11,20}. I did **not** use this transcription. Its effect on the counts is noted below.
## Count of permitted strings (exact)
A 32-letter string t is producible by some key if and only if t₁ = t₂₆, t₂ = t₃₂ and t₆ = t₁₄.
- **Sufficient:** define the key glyph by glyph by taking the letter at any of that glyph's positions. The three conditions make this well defined.
- **Necessary:** a key maps a repeated glyph to one letter.
Because letters may be shared, a singleton glyph adds no constraint. A string is therefore fixed by one free letter per distinct glyph:
- Permitted strings: **26^29 = 108199957741720996894562347292921981566976**
- All strings: **26^32 = 1901722457268488241418827816020396748021170176**
- Fraction: **26^29 / 26^32 = 1/26^3 = 1/17576 ≈ 5.69×10⁻⁵**
- Information: the pattern fixes log₂(17576) ≈ **14.10 bits** out of 32·log₂26 ≈ **150.41 bits**, about 9.4%. About 136.31 bits stay free.
Under the uniform model, each repeat pair independently matches with probability 1/26.
**Sensitivity to the transcription:** with the Praetorian grouping, the number of independent equalities is 1 + 2 + 1 + 1 = 5. That gives 26^27 permitted strings, a fraction of 1/26^5 = 1/11881376. Neither number depends on English. They depend only on which glyphs are taken to be identical.
## Constructed examples (illustrations, not decipherments)
I wrote both sentences myself as **illustrations**. Neither is a candidate solution to Z32, and neither has any evidential value about the real plaintext.
**Example A: "The truck sits outside the east branch."**
Normalized: `THETRUCKSITSOUTSIDETHEEASTBRANCH` (32 letters). Checks: t₁ = t₂₆ = T, t₂ = t₃₂ = H, t₆ = t₁₄ = U.
Witness key, in glyph order of first appearance:
`C=T 9=H J=E |=T #=R O=U k=C [=K A=S M=I f=T 8=S ?=O R=T T=S G=I X=D 6=E F=T D=H V=E j=E %=A H=S E=B L=R z=A P=N W=C`
**Example B: "The old man is hidden in the white marsh."**
Normalized: `THEOLDMANISHIDDENINTHEWHITEMARSH` (32 letters). Checks: t₁ = t₂₆ = T, t₂ = t₃₂ = H, t₆ = t₁₄ = D.
Witness key:
`C=T 9=H J=E |=O #=L O=D k=M [=A A=N M=I f=S 8=H ?=I R=D T=E G=N X=I 6=N F=T D=H V=E j=W %=H H=I E=E L=M z=A P=R W=S`
Both keys are many-to-one, which the model allows (in A, for example, T is assigned to C, |, f, R and F). Neither sentence fits the Praetorian transcription, and each fails for a different reason. A meets t₁₁ = t₂₀ (both T) but breaks t₁₂ = t₂, because t₁₂ = S and t₂ = H. B meets t₁₂ = t₂ (both H) but breaks t₁₁ = t₂₀, because t₁₁ = S and t₂₀ = T.
## How the examples were found (choices made after seeing fits)
1. **Grammar:** I wrote a toy template grammar, `Subject + Verb + Preposition + Determiner + optional Adjective + Noun`, with lists of 24 subjects, 24 verb phrases, 17 prepositions, 12 determiners, 14 adjective slots (13 adjectives plus empty) and 36 nouns. I chose the lists to lean toward place phrases ending in -CH, -TH or -SH. That was a deliberate bias: t₂ = t₃₂ favours an opening "TH…" and a closing "…H". I set this bias **before** the search, but **after** I knew the repeat groups.
2. **Enumeration:** I enumerated all 59,222,016 template combinations. Of these, 3,921,727 normalize to exactly 32 letters, and **7,310** of those satisfy the three equalities. That is 0.186% of the 32-letter outputs, about 33 times the 1/17576 random baseline. The excess comes from the -H and T… bias, not from anything about Z32. Many outputs are ungrammatical (for example "THEY IS …") or nonsensical.
3. **Selection after seeing fits:** I filtered the 7,310 by eye for grammatical, mundane sentences. I picked A and B because they sounded natural and used different words. This was a post-hoc pick out of thousands of fits. It shows that fitting sentences are easy to find. It says nothing about the real message.
4. Before writing them here, I re-checked both sentences mechanically: the length is 32, all three equalities hold, and the witness key is consistent for every glyph.
## Reproduction (pseudocode)
```
Z = "C9J|#Ok[AMf8?ORTG" + "X6FDVj%HCELzPW9" # from the wiki,
removed
groups = {g: [i+1 for i,c in enumerate(Z) if c==g] for g in set(Z)}
reps = [p for p in groups.values() if len(p)>1] # [[1,26],[2,32],[6,14]]
permitted = 26**len(groups) # 26^29
fraction = Fraction(26**len(groups), 26**len(Z)) # 1/17576
def fits(s):
t = re.sub('[^A-Z]','', s.upper())
return len(t)==32 and all(len({t[i-1] for i in p})==1 for p in reps)
def witness(t): return {g: t[i-1] for g,p in groups.items() for i in p[:1]}
for each template combo: if fits(combo): record # 7,310 of 3,921,727
```
I ran this in Python 3, in throwaway scratch code that is not delivered.
## Conclusion this model supports
Under a single fixed homophonic key that may be many-to-one, the only information the Z32 repeat pattern carries is three equalities. They allow 26^29 of the 26^32 strings, exactly 1/17576. That is about 14.1 bits of constraint against about 150.4 bits of freedom. Ordinary English easily satisfies it: a small toy grammar produced 7,310 fitting strings, and two grammatical sentences are shown above. With the transcription used here, **the recurrence pattern alone cannot pick out or confirm any proposed Z32 plaintext.** Any claimed solution needs evidence from outside the repeat structure, such as a constrained key, a key shared with another cipher, or external corroboration. Under the alternative Praetorian grouping the constraint is stronger (1/26^5), but the same conclusion holds.