IJMMSInternational Journal of Mathematics and Mathematical Sciences1687-04250161-1712Hindawi Publishing Corporation67898710.1155/2009/678987678987Research ArticleClassification of All Associative Mono-n-ary Algebras with 2 ElementsAndresStephan DominiqueRedfieldRobertDepartment of Mathematics and Computer ScienceFern Universität in HagenLützowstraße 125, 58084 HagenGermanyfernuni-hagen.de200905012010200909072009221220092009Copyright © 2009This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

We consider algebras with a single n-ary operation and a certain type of associativity. We prove that (up to isomorphism) there are exactly 5 of these associative mono-n-ary algebras with 2 elements for even n2 and 6 for odd n3. These algebras are described explicitly. It is shown that a similar result is impossible for algebras with at least 4 elements. An application concerning the assignment of a control bit to a string is given.

1. Introduction

One of the most demanding tasks of combinatorics consists in counting finite algebraic structures with certain properties or even in classifying them up to isomorphism. Various types of structures can be enumerated by the number of their elements using the methods of Pólya [1, 2]. However, there are some very difficult combinatorial problems that have not been solved until now. One of these problems is to determine the number of semigroups with k elements, where k is a positive integer. An asymptotic formula for the number of labelled semigroups with k elements was found in . But a different problem consists in counting up to isomorphism. Let us reformulate this problem into the language of universal algebra. An n-ary operation μ on a set A is a function AnA. In this article the ground set A will always be finite. (A,μ) is called mono- n-ary algebra (with #A elements). Two mono-n-ary algebras (A,μ) and (B,ν) are isomorphic if there is a bijection f from A to B, so that for all x1,x2,,xnA

f(μ(x1,x2,,xn))=ν(f(x1),f(x2),,f(xn)).

This is the standard notion of isomorphism for algebras, (cf. )

Hence we have asked how many associative mono-2-ary algebras with k elements exist up to isomorphism. We may consider the more general problem of determining the number of associative mono-n-ary algebras with k elements, where n and k are positive integers. But what does it mean for an algebra with a single operation to be associative?

In fact, there are many different ways to generalize associativity from binary to n-ary operations. A well-known example is superassociativity, introduced by Menger . Another example is the associativity of diagonal algebras . This paper will treat only a natural kind of associativity which could be called left-right-pushing. Let (A,μ) be a mono-n-ary algebra. It is called associative (in the left-right sense) if for all 1i<n and a1,a2,,a2n-1A

μ(a1,,ai-1,μ(ai,ai+1,,an+i-1),an+i,an+i+1,,a2n-1)=μ(a1,,ai-1,ai,μ(ai+1,,an+i-1,an+i),an+i+1,,a2n-1). Note that a list of the type am+1,,am denotes an empty list.

This type of associativity implies a general associativity law that will be explained in Section 2.

Left-right-pushing was introduced by Dörnte  who generalized the notion of groups to m-groups where the binary operation is replaced by an m-ary. These m-groups (or polyadic groups) were investigated further by Post . Later the concept was widened to polyadic semigroups by Zupnik  or associatives as Gluskin and Shvarts  called them. These are other names for the associative mono-n-ary algebras we study here. Whilst Zupnik, Gluskin, and Shvarts investigated the representation of certain polyadic semigroups by (associative) binary and unary operations, we are interested in counting polyadic semigroups with no restrictions on their structure, only depending on their order and arity.

We would like to complete Table 1 which lists the numbers of associative mono-n-ary algebras with k elements (up to isomorphism) for some small values of n and k. The entries of the table were computed by the author using brute force algorithms.

Number of nonisomorphic associative mono-n-ary algebras with k elements.

 n k 1 2 3 4 5 6 7 8 ⋯ 1 1 3 7 19 47 130 343 951 ⋯ 2 1 5 24 188 ⋯ ⋯ ⋯ ⋯ 3 1 6 ⋯ ⋯ ⋯ ⋯ ⋯

Since it seems to be very difficult to find general formulas for the rows even for small values of n, one might try to find formulas for the columns for small values of k. Surprisingly we will find a simple formula for the case k=2. Moreover, we explicitly classify all associative mono-n-ary algebras with 2 elements using purely elementary methods. Note that we even need not make use of the methods of Zupnik  to prove our result. The occurring algebras will be introduced in Section 3.1. In Section 3.2 we prove that every associative mono-n-ary algebra with 2 elements is isomorphic to one of these algebras which will be the main subject of this article. Similar results for the columns with k3 could not be found, but in Section 4 we will see that the entries of the columns with k4 are at least exponentially increasing.

These results might be interesting for some aspects of nonlinear coding theory. An example of an application is given in Section 5.

2. The General Associativity Law

When denoting a (multi)product of several elements of a semigroup it is not necessary to write brackets in order to indicate the order of calculation since the value of the product only depends on the elements and their total order. This is called “general associativity law,” and it may be generalized for multiproducts in associative mono-n-ary algebras.

Let us fix some terms. If (A,μ) is a mono-n-ary algebra, then a product is a formal expression μ(x1,,xn) with some entries x1,,xn. A term is defined recursively by the following:

every element of the algebra is a term,

every product with terms as entries (the subterms) is a term.

Furthermore, a right-tower-term is a term where for each occurring product all entries are single elements of the algebra except for the last entry.

We can formulate now a basic result that was remarked by Dörnte . Because of its importance for this article the idea of a formal proof is added.

Theorem 2.1.

In an associative mono-n-ary algebra the value of any term does not depend on the structure of the subterms, only on the total order of the entries.

Proof.

By induction on the number of subterms of a given term we prove that every term can be transformed into a right-tower-term. By induction we may assume that the left-most subterm that is not a single element is a right-tower-term; thus we have μ(x1,,xj-1,μ(y1,,yn-1,μ()),tj+1,,tn), where xi,yi are single elements and ti are terms. Applying associativity n-j times we may shift the left-most inner product to the right and obtain μ(x1,,xj-1,y1,,yn-j,μ(yn-j+1,,yn-1,μ(),tj+1,,tn)). By using the induction hypothesis again the right subterm can be transformed into a right-tower-term, and we are done.

3. The 2-Element-Column

Here we consider associative mono-n-ary algebras with 2 elements. This main section is organized as follows: In Section 3.1 the main result is presented whereas Section 3.2 is devoted to its proof.

3.1. The Occurring Algebras

We define the following types of algebras on the set {0,1} with single n-ary operation μ:

type 0:

μ(x1,x2,,xn):=0,

type A:

μ(x1,x2,,xn):=0ifi:  xi=0,μ(1,1,,1):=1,

type L:

μ(x1,x2,,xn):=x1,

type R:

μ(x1,x2,,xn):=xn,

type G0:

μ(x1,x2,,xn):=0if#{i    xi=0}1mod2,μ(x1,x2,,xn):=1if#{i    xi=0}0mod2,

type G1:

μ(x1,x2,,xn):=0if#{i    xi=0}0mod2,μ(x1,x2,,xn):=1if#{i    xi=0}1mod2. It is easy to see that these algebras are associative. (For type G0 and type G1 distinguish cases according to the parity of the number of zeros in the inner and outer brackets when verifying the associativity laws.)

In case of odd n3 these types are pairwise nonisomorphic. The same holds in case of even n2 except for type G0 and type G1 which are then isomorphic. In the latter case we also call type G0 and type G1 simply type G. In the trivial case n=1 type L, type R and type G0 are isomorphic to type A.

The types G0 and G1 are the only polyadic groups with 2 elements which can be seen easily . However, the analogue classification of polyadic semigroups is more complicated because of the lack of invertibility.

The main result of this article will be as follows.

Theorem 3.1.

Let (A,μ) be an associative mono-n-ary algebra with #A=2 and n2. Then (A,μ) is isomorphic to one of the types defined above.

3.2. Proof of Theorem <xref ref-type="statement" rid="thm2">3.1</xref>

Let 𝒜=({0,1},μ) be an associative mono-n-ary algebra, n2. In order to simplify the notation we denote the products only with brackets, that is,

(a1a2an):=μ(a1,a2,,an).

The general idea of the proof is to distinguish cases according to the values of certain products. In each case 𝒜 will be determined only by these values.

There are four possibilities for the values of the products (00) and (11). The case 1, 0 is treated in Lemma 3.3, and the case 0, 0 in Lemmas 3.4 and 3.5. Obviously, by exchanging 0 and 1, the case 1, 1 leads to isomorphic algebras as in the case 0, 0.

The case (00)=0 and (11)=1 is more complicated. Here we need to consider the products (001), (100), (011), and (110), too. The subcases 1, 0 and 0, 1, respectively, 0, 0 for (001),(100) and the subcases 0, 1 and 1, 0, respectively, 1, 1 for (011),(110) are examined by Lemma 3.6, respectively, Lemma 3.7. Note that these cases are not excluding each other and may be contradictory which has no effect on our proof. The remaining case is Lemma 3.8.

Lemma 3.2.

If (11)=0 in 𝒜, then the value of a product depends only on the number of zeros in the product and not on the order of the elements.

Proof.

Indeed, whenever two products have the same number of zero entries, each zero can be replaced by the product (11) and the new expressions contain both the same number of ones and thus have the same value because of the general associativity law.

Lemma 3.3.

If (00)=1 and (11)=0, then n is odd and 𝒜 is isomorphic to type G1.

Proof.

Using the assumptions and the associativity of 𝒜 we obtain 1=(00)=(00n-1(11))=((00n-11)11n-1). Thus (in order to avoid the contradiction 1=(11)) we conclude (00n-11)=0. Assume that n is even. Then, using (3.9) we have the contradiction 0=(11)=((00)1̲(00)1̲)n/2=(0(00n-11)̲0(00n-11)̲n/2  )=(3.9)(00)=1. So n is odd. We will now establish the following claim.Claim 1.

(002k11n-2k)=0 and (002k+111n-2k+1)=1 for k=0,,(n-1)/2.

We prove the claim by induction. The first assertion is clear for k=0. Assume that the first assertion has been proved for all kK and that the second assertion has been proved for all k<K and that 02Kn-1. Then by assumption 0=(002K11n-2K)=(002K(00)11n-2K-1)=(00n-1(002K+111n-2K-1)). Let us fist consider the case (002K+111n-2K-1)=0.Then in (3.11) we obtain the contradiction 0=1. Thus we have (002K+111n-2K-1)=1. Now assume that the first and the second assertions have been proved for all 0k<K and that 0<2Kn-1. Then by (3.13) we conclude 1=(3.13)(002K-111n-2K+1)=(002K-1(00)11n-2K)=(00n-1(002K11n-2K)). Let us first consider the case (002K11n-2K)=1.Then we obtain the contradiction 1=(3.14)(00n-11)=(3.9)0.Therefore we have (002K11n-2K)=0.This proves the claim.

By Lemma 3.2 it follows immediately from Claim 1 that a product is 0 if and only if the number of its zero entries is even. Thus 𝒜 is of type G1.

Lemma 3.4.

If (00)=0 and (11)=0 and (00n-11)=0, then 𝒜 is isomorphic to type 0.

Proof.

Prove by induction that (00n-k11k)=0for  k=1,,n-1. The induction step (1kn-2) is 0=(00n-k11k)=(00n-k-1(00n-11)11k)=((00)00n-k-211k+1)=(00n-k-111k+1). Use Lemma 3.2 again and conclude that every product is 0.

Lemma 3.5.

If (00)=0 and (11)=0 and (00n-11)=1, then n is even and 𝒜 is isomorphic to type G.

Proof.

1=(00n-11)=(00n-2(11)1)=((00n-211)11n-1). In order to avoid the contradiction (11)=1 we have (00n-211)=0,(011n-1)=1.Claim 1.

(00n-2k112k)=0 for k=1,,(n-1)/2.

For k=1 this is (3.23). Assume the claim has been proved for 1k(n-3)/2. Then

0=(00n-2k112k)=(3.23)(00n-2k-1(00n-211)112k)=((00)00n-2k-3112k+2)=(00n-2k-2112k+2), that is, the claim is true for k+1.

Claim 2.

(002k-111n-2k+1)=1 for k=1,,(n-1)/2.

For k=1 this is (3.24). Assume that the claim has been proved for 1k(n-3)/2. Then

1=(002k-111n-2k+1)=(3.24)(002k-1(011n-1)11n-2k)=(002k(11)11n-2k-1)=(002k+111n-2k-1), that is, the claim is true for k+1.

If n is odd, then the two claims contradict each other. So n is even and according to Lemma 3.2, the premises, and Claims 1 and 2 a product is 0 if and only if it contains an even number of zeros; that is, 𝒜 is of type G.

Lemma 3.6.

If (00)=0 and (11)=1 and (00n-11)=1,(100n-1)=0, then 𝒜 is isomorphic to type R.

Proof.

For all x1,x2,,xn-1{0,1} we have (x1xn-10)=(x1xn-1(100n-1))=((x1xn-11)  00n-1)=0(x1xn-11)=(x1xn-1(00n-11))=((x1xn-10)  00n-21)=(3.28)(00n-11)=1. Thus 𝒜 is isomorphic to type R.

If we had instead of (001)=1 and (100)=0 the alternative conditions (110)=0 and (011)=1 in Lemma 3.6, we also would obtain type R since exchanging 0 and 1 does not affect this type. On the other hand, if we exchanged the order of the entries of all products, that is, if we had (001)=0 and (100)=1 (or (110)=1 and (011)=0),𝒜 would be isomorphic to type L.

By a similar argument (transposition of 0 and 1) one could change the conditions (001)=0 and (100)=0 in the next lemma into (110)=1 and (011)=1.

Lemma 3.7.

If (00)=0 and (11)=1 and (00n-11)=0,(100n-1)=0, then 𝒜 is isomorphic to type A.

Proof.

For all x1,x2,,xn{0,1} we have (0x2xn)=((00n-11)x2xn)=(00n-1(1x2xn))=0,(x1xn-10)=(x1xn-1(100n-1))=((x1xn-11)00n-1)=0, and for arbitrary 1kn-2(11k0xk+2xn-11)=(11k(100n-1)xk+2xn-11)=(11k+100n-k-2(00k+1xk+2xn-11))=(3.31)(11k+100n-k-1)=(3.32)0. Thus 𝒜 is isomorphic to type A.

Lemma 3.8.

If (00)=0 and (11)=1 and (00n-11)=1,(100n-1)=1,(11n-10)=0,(011n-1)=0, then n is odd and 𝒜 is isomorphic to type G0.

Proof.

We need some preparations before realizing that for all types of entries of a product the values are fixed by the premises. Note that we may not use the remark, since the algebra restricted on the main diagonal is the identical combination.

For n=2 the premises

(00n-11)=1,(011n-1)=0 are contradictory. So assume that n3. We will now establish three claims.Claim 1.

(00n-211)=0.

Assume that the assertion is not true, that is, that

(00n-211)=1. Then we obtain the contradiction 0=(011n-1)=(0(00n-211)11n-2)=((00n-11)11n-1)=(11)=1. This proves Claim 1.

Claim 2.

(00n-2k+1112k-1)=1 for k=1,,n/2.

The proof is by induction. The case k=1 is given by a premise. Now assume that 1k(n-2)/2 and that the assertion is true for k. Then by assumption and Claim 1

1=(00n-2k+1112k-1)=(00n-2k(00n-211)112k-1)=((00)00n-2k-2112k+1)=(00n-2k-1112k+1), and thus the assertion is true for k+1.

This proves Claim 2.

Claim 3.

n is odd.

Indeed, if n was even, we would have

(011n-1)=0 by premise and (011n-1)=1 by Claim 2 which is a contradiction.

This proves Claim 3.

We are now ready to prepare the main argument in the proof of Lemma 3.8. If we write (x1x2xk), the dots at the beginning and at the end denote an arbitrary number of arbitrary entries, so that the total number of entries is n. Let 2bn-1 be even. By Claim 2 we obtain (00b)=(00b-1(011n-1))=((00b11n-b)11b-1)=(11b). According to (3.41) we may shift even numbers of zeros (resp., ones) as ones (resp., zeros) to the left without changing the value of a product, so that every product can be written in an equivalent normal form: (00n-2k10̲10̲k),k=0,1,2,,n-12,(11n-2k01̲01̲k)),k=0,1,2,,n-12. For example, the product (0111011) can be transformed in three steps into the normal form: (0111011̲)=(011100̲0)=(01111̲10)=(0000010). The next claims determine the values of these normal forms.Claim 4.

(11n-2a01̲01̲a)=0 for a{1,,n-1/2} odd and (11n-2b01̲01̲b)=1 for b{1,,(n-1)/2} even.

Claim 5.

(00n-2a10̲10̲a)=1 for a{1,,n-1/2} odd and (00n-2b10̲10̲b)=0 for b{1,,(n-1)/2} even.

By symmetry arguments it is sufficient to prove Claim 4. We use the same kind of double-step-induction as in the proof of Claim 1.

Suppose that

(11n-201)=1. Then we obtain the contradiction 0=(11n-10)=(11n-2(11n-201)(011n-1))=(11n-3(11n-10)(1011n-2)1)=(3.41)(11n-3(11n-10)(11n-201)1)=(11n-3(11n-10)11)=(11n-2(11n-201)1)=(11)=1. Thus (11n-201)=0. Now let B2 be even and, the assertion be true for all a,b<B. Then (11n-2B01̲01̲B)=(11n-2B01̲01̲B-1(011n-1)1)=(11n-2B0(10̲10̲B-111n-2B+2)112B-2)=(3.41)(11n-2B0(11n-2B+201̲01̲B-1)112B-2)=(11n-2B00112B-2)=(3.41)(11)=1. Finally let A3 be odd and, the assertion be true for all a,b<A. Then (11n-2A01̲01̲A)=(11n-2A01̲01̲A-1(011n-1)1)=(11n-2A0(10̲10̲A-111n-2A+2)112A-2)=(3.41)(11n-2A0(11n-2A+201̲01̲A-1)112A-2)=(11n-2A0112A-1)=(3.41)(11n-201)=0. This completes the proof of Claim 4. Now the value of every product is determined. Observe that these values are 0 if and only if the number of zero entries is odd; so 𝒜 is isomorphic to type G0.

This completes the proof of the lemma.

Now we continue with the proof of the main theorem. As described in the beginning of this subsection and by the notice between Lemma 3.6 and Lemma 3.7 the case distinctions are complete, which proves Theorem 3.1.

4. The Columns with Several Elements

We have seen that, for any fixed n, the number of nonisomorphic associative mono-n-ary algebras with 2 elements is bounded by the global constant 6, which does not depend on n. A classification of the associative mono-n-ary algebras with 3 elements has not been completed successfully until now. It would be an interesting question whether the number of these algebras, for fixed n, is bounded by a global constant independent from n.

If we consider the case of 4 or more elements, the numbers in the column of Table 1 are not bounded but at least exponentially growing. Indeed every mono-n-ary algebra with at least four elements 0, 1, 2, 3 of the following type is associative.

If there is a 0 or an 1 entry, then the product is 0.

Otherwise the product is 0 or 1.

There are at least 2n such algebras, and at least 2n-1 pairwise nonisomorphic among them.

The question arises whether or not a classification of the associative mono-n-ary algebras with more than 3 elements in finitely many series of algebras exists.

5. An Application: Control Bits

As an application of Theorem 3.1 we study recursive allocation of control bits for a given word of length 1+(n-1) over the alphabet {0,1} taking into consideration equal inner structures of length n.

To be precise we want to assign a single control bit i to a very long string a1a2a1+(n-1), (n2,  1). Regarding our available memory space we do not want to use a map {0,1}1+(n-1){0,1}, but only a map

μ:{0,1}n{0,1}

which we apply recursively on substrings, replacing these substrings by the value of the mapping. For reasons of efficiency it might be advantageous not to choose the substrings in canonical order, rather in a randomlike order. This may be the case if it is cheaper to find and calculate two identical substrings than to calculate two different substrings. In order to have for each possible word a well-defined control bit i (i.e., independent of the choice of the substrings) we must claim that μ is associative (in the left-right sense). So only associative mono-n-ary algebras ({0,1},μ) are a solution to this (very special) control bit allocation problem.

From Theorem 3.1 we know that there are only 8 of these algebras. (Note that type A and type 0 appear twice since their automorphism group is trivial.) The control bits resulting from type 0, type A, type L, and type R are somewhat pathological, for example, for type L it is simply the repetition of the first bit of the string. In this context the commonly used control bits are those depending on the parity of the stringsum and stringlength produced by the polyadic groups G0 and G1, and by Theorem 3.1 there is no sensible alternative.

The situation changes for an alphabet with k3 letters. In this case we should speak rather of control characters than of control bits. Even there the majority of associative mono-n-ary algebras which are not polyadic groups will lead to pathological control characters, see the algebras in Section 4. But there exist associative mono-n-ary algebras that are not polyadic groups with interesting associated control characters, for example, for n=2 and k=3 consider the addition of a neutral element to the group /2:

μ012001011012012

Although the control character produced by this semigroup contains hardly any information about the number of the letters 2 and 0 in the string it provides a lot of information about letter 1, namely the parity of its occurrence.

Acknowledgments

The author would like to thank A. Romanowska, P. Burmeister, U. Faigle, B. Fuchs, and B. Peis for some hints and comments.

PólyaG.Kombinatorische Anzahlbestimmungen für Gruppen, Graphen und chemische VerbindungenActa Mathematica19376811452542-s2.0-5164914651510.1007/BF02546665ZBL0017.23202PólyaG.ReadR. C.Combinatorial Enumeration of Groups, Graphs, and Chemical Compounds1987New York, NY, USASpringerviii+148Pólya's contribution translated from the German by Dorothee AepplMR884155KleitmanD. J.RothschildB. R.SpencerJ. H.The number of semigroups of order nProceedings of the American Mathematical Society1976551227232MR041438010.2307/2041879ZBL0324.05010GrätzerG.Universal Algebra19792ndNew York, NY, USASpringerxviii+581MR538623MengerK.Superassociative systems and logical functorsMathematische Annalen1964157278295MR017792810.1007/BF01360871ZBL0126.03601PlonkaJ.Remarks on diagonal and generalized diagonal algebrasColloquium Mathematicum1966151923MR0194377ZBL0166.27501DörnteW.Untersuchungen über einen verallgemeinerten GruppenbegriffMathematische Zeitschrift192829119PostE. L.Polyadic groupsTransactions of the American Mathematical Society194048208350MR000289410.2307/1990085ZBL0025.01201ZupnikD.Polyadic semigroupsPublicationes Mathematicae Debrecen196714273279MR0222205ZBL0159.02401GluskinL. M.ShvartsV. Ya.Towards a theory of associativesMathematical Notes of the Academy of Sciences of the USSR19721153323372-s2.0-3425045917910.1007/BF01158647ZBL0256.20097