For two distinct letters and
and a positive integer
, an
-complete bayonet code is a set
of
distinct words of the form
with
, such that
is uniquely decipherable
(Cordero 2024). Unique decipherability means that any word
formed by concatenating members of
has only one decomposition into those members.
Exponents denote repetition, with
denoting the empty word. For example,
is a 2-complete bayonet code since
is a prefix code, meaning that no member is a proper
prefix of another.
A factorization of the cyclic group gives a rectangular construction. If each residue has a
unique representation as
, with
and
, take
using representatives from 0 to
. Between successive occurrences of
, the length of the run of
's modulo
determines the two adjacent exponents. The leading and trailing
runs determine the remaining exponents. The multiples of
in those runs then determine the copies of
.
Cordero (2024) also proved that multiplying the right exponents by an integer relatively prime
to
and reducing modulo
preserves the
-complete bayonet-code property. The lengths of the words in
are the subject of Cordero's strong
triangle conjecture.