In
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
and
computer science
Computer science is the study of computation, information, and automation. Computer science spans Theoretical computer science, theoretical disciplines (such as algorithms, theory of computation, and information theory) to Applied science, ...
, the Wedderburn–Etherington numbers are an
integer sequence
In mathematics, an integer sequence is a sequence (i.e., an ordered list) of integers.
An integer sequence may be specified ''explicitly'' by giving a formula for its ''n''th term, or ''implicitly'' by giving a relationship between its terms. For ...
named after
Ivor Malcolm Haddon Etherington[.][.] and
Joseph Wedderburn[.] that can be used to count certain kinds of
binary tree
In computer science, a binary tree is a tree data structure in which each node has at most two children, referred to as the ''left child'' and the ''right child''. That is, it is a ''k''-ary tree with . A recursive definition using set theor ...
s. The first few numbers in the sequence are
:0, 1, 1, 1, 2, 3, 6, 11, 23, 46, 98, 207, 451, 983, 2179, 4850, 10905, 24631, 56011, ... ()
Combinatorial interpretation

These numbers can be used to solve several problems in
combinatorial enumeration. The ''n''th number in the sequence (starting with the number 0 for ''n'' = 0)
counts
*The number of unordered
rooted trees with ''n'' leaves in which all nodes including the root have either zero or exactly two children.
[.] These trees have been called Otter trees, after the work of Richard Otter on their combinatorial enumeration. They can also be interpreted as unlabeled and unranked
dendrogram
A dendrogram is a diagram representing a Tree (graph theory), tree graph. This diagrammatic representation is frequently used in different contexts:
* in hierarchical clustering, it illustrates the arrangement of the clusters produced by ...
s with the given number of leaves.
[.]
*The number of unordered rooted trees with ''n'' nodes in which the root has degree zero or one and all other nodes have at most two children.
Trees in which the root has at most one child are called planted trees, and the additional condition that the other nodes have at most two children defines the weakly binary trees. In
chemical graph theory, these trees can be interpreted as
isomer
In chemistry, isomers are molecules or polyatomic ions with identical molecular formula – that is, the same number of atoms of each element (chemistry), element – but distinct arrangements of atoms in space. ''Isomerism'' refers to the exi ...
s of
polyenes with a designated leaf atom chosen as the root.
*The number of different ways of organizing a
single-elimination tournament
A single-elimination knockout, or sudden-death tournament is a type of elimination tournament where the loser of a match-up is immediately eliminated from the tournament. Each winner will play another in the next round, until the final match-up, ...
for ''n'' players (with the player names left blank, prior to seeding players into the tournament). The pairings of such a tournament may be described by an Otter tree.
*The number of different results that could be generated by different ways of grouping the expression
for a binary multiplication operation that is assumed to be
commutative
In mathematics, a binary operation is commutative if changing the order of the operands does not change the result. It is a fundamental property of many binary operations, and many mathematical proofs depend on it. Perhaps most familiar as a pr ...
but neither
associative
In mathematics, the associative property is a property of some binary operations that rearranging the parentheses in an expression will not change the result. In propositional logic, associativity is a valid rule of replacement for express ...
nor
idempotent
Idempotence (, ) is the property of certain operations in mathematics and computer science whereby they can be applied multiple times without changing the result beyond the initial application. The concept of idempotence arises in a number of pl ...
.
For instance
can be grouped into binary multiplications in three ways, as
,
, or
. This was the interpretation originally considered by both Etherington
and Wedderburn.
An Otter tree can be interpreted as a grouped expression in which each leaf node corresponds to one of the copies of
and each non-leaf node corresponds to a multiplication operation. In the other direction, the set of all Otter trees, with a binary multiplication operation that combines two trees by making them the two subtrees of a new root node, can be interpreted as the
free commutative magma on one generator
(the tree with one node). In this algebraic structure, each grouping of
has as its value one of the ''n''-leaf Otter trees.
Formula
The Wedderburn–Etherington numbers may be calculated using the
recurrence relation
In mathematics, a recurrence relation is an equation according to which the nth term of a sequence of numbers is equal to some combination of the previous terms. Often, only k previous terms of the sequence appear in the equation, for a parameter ...
:
:
beginning with the base case
.
In terms of the interpretation of these numbers as counting rooted binary trees with ''n'' leaves, the summation in the recurrence counts the different ways of partitioning these leaves into two subsets, and of forming a subtree having each subset as its leaves. The formula for even values of ''n'' is slightly more complicated than the formula for odd values in order to avoid double counting trees with the same number of leaves in both subtrees.
Growth rate
The Wedderburn–Etherington numbers grow
asymptotically as
:
where ''B'' is the
generating function of the numbers and ''ρ'' is its
radius of convergence, approximately 0.4027 , and where the constant given by the part of the expression in the square root is approximately 0.3188 .
Applications
use the Wedderburn–Etherington numbers as part of a design for an
encryption
In Cryptography law, cryptography, encryption (more specifically, Code, encoding) is the process of transforming information in a way that, ideally, only authorized parties can decode. This process converts the original representation of the inf ...
system containing a hidden
backdoor. When an input to be encrypted by their system can be sufficiently
compressed by
Huffman coding
In computer science and information theory, a Huffman code is a particular type of optimal prefix code that is commonly used for lossless data compression. The process of finding or using such a code is Huffman coding, an algorithm developed by ...
, it is replaced by the compressed form together with additional information that leaks key data to the attacker. In this system, the shape of the Huffman coding tree is described as an Otter tree and encoded as a binary number in the interval from 0 to the Wedderburn–Etherington number for the number of symbols in the code. In this way, the encoding uses a very small number of bits, the base-2 logarithm of the Wedderburn–Etherington number.
describe a similar encoding technique for rooted unordered binary trees, based on partitioning the trees into small subtrees and encoding each subtree as a number bounded by the Wedderburn–Etherington number for its size. Their scheme allows these trees to be encoded in a number of bits that is close to the information-theoretic lower bound (the base-2 logarithm of the Wedderburn–Etherington number) while still allowing constant-time navigation operations within the tree.
use unordered binary trees, and the fact that the Wedderburn–Etherington numbers are significantly smaller than the numbers that count ordered binary trees, to significantly reduce the number of terms in a series representation of the solution to certain
differential equations.
[.]
See also
*
Catalan number
The Catalan numbers are a sequence of natural numbers that occur in various Enumeration, counting problems, often involving recursion, recursively defined objects. They are named after Eugène Charles Catalan, Eugène Catalan, though they were p ...
*
Cryptography
Cryptography, or cryptology (from "hidden, secret"; and ''graphein'', "to write", or ''-logy, -logia'', "study", respectively), is the practice and study of techniques for secure communication in the presence of Adversary (cryptography), ...
*
Information theory
Information theory is the mathematical study of the quantification (science), quantification, Data storage, storage, and telecommunications, communication of information. The field was established and formalized by Claude Shannon in the 1940s, ...
References
Further reading
*.
{{DEFAULTSORT:Wedderburn-Etherington number
Integer sequences
Trees (graph theory)
Graph enumeration