Next Article in Journal
Path-Dependent Infrastructure Planning: A Network Science-Driven Decision Support System with Iterative TOPSIS
Previous Article in Journal
Robust Multi-Objective Optimization of Ore-Drawing Process Using the OGOOSE Algorithm Under an ε-Constraint Framework
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Conjugation of Colored Compositions

by
Augustine O. Munagi
School of Mathematics, University of the Witwatersrand, Johannesburg 2050, South Africa
Symmetry 2026, 18(2), 257; https://doi.org/10.3390/sym18020257
Submission received: 20 December 2025 / Revised: 19 January 2026 / Accepted: 23 January 2026 / Published: 30 January 2026

Abstract

An n-color composition is a colored composition in which a part of size m may come in m colors. This paper gives a new set of n-color-type compositions that admits exhaustive conjugation of its members. Previous attempts at conjugation of n-color compositions have yielded partial results at best. Instead of importing the coloring scheme previously used for partitions, we apply colors directly to the parts of compositions while treating any maximal string of ones as a single part under color assignment. This leads to the definition of n-color compositions of the second kind. As with ordinary compositions, a conjugate may be found using equivalent techniques: symbolic algebra, zig-zag graphs, and line graphs. We conclude with a derivation of the relevant enumeration formulas.
MSC:
11P81; 05A17; 05A15

1. Introduction

A composition of a positive integer n is an ordered partition of n or a sequence of positive integers that sum to n. The summands are also called parts, and n is the weight of the composition. For example, n = 3 has four compositions: ( 3 ) , ( 1 , 2 ) , ( 2 , 1 ) , and ( 1 , 1 , 1 ) . It is well-known that there are 2 n 1 compositions of n (see, for example, [1,2]).
Colored compositions are generalized compositions in which a part’s size may come in a prescribed number of types or colors, usually denoted by subscripts 1 1 , 1 2 , , 2 1 , 2 2 , . In particular, an n-color composition is a colored composition in which a part of size m may come in m colors: m 1 , m 2 , , m m , m 1 [3]. For example, there are eight n-color compositions of three, namely,
( 3 1 ) , ( 3 2 ) , ( 3 3 ) , ( 1 1 , 2 1 ) , ( 1 1 , 2 2 ) , ( 2 1 , 1 1 ) , ( 2 2 , 1 1 ) , ( 1 1 , 1 1 , 1 1 ) .
The n-color notion originated from the paper of Agarwal and Andrews [4], who investigated combinatorial identities for “partitions with n copies of n”, that is, n-color partitions. Subsequently Agarwal [3] defined n-color compositions and explored their enumeration and combinatorial properties. For instance, he proved that the number of n-color compositions of a positive integer ν is given by F 2 ν , where the Fibonacci numbers are defined by F 1 = F 2 = 1 , F n = F n 1 + F n 2 , n > 2 .
The conjugate of a composition is given by the composition corresponding to the columns of its zig-zag graph, read from left to right. For example, the zig-zag graph of C = ( 5 , 3 , 1 , 2 , 2 ) is shown in Figure 1.
Thus the conjugate C from Figure 1 is C = ( 1 , 1 , 1 , 1 , 2 , 1 , 3 , 2 , 1 ) . Two further methods of obtaining C are mentioned below.
It appears that the n-color compositions cannot all be conjugated like ordinary compositions. Brian Hopkins [5] made a limited attempt by means of zig-zag graphs and concluded that only certain compositions with odd weights and parts not exceeding three may be conjugated. A year later, Collins et al. [6] discussed the topic briefly using tilings of 1-by-n boards with ternary sequences and gave a few instances. However, their technique was rather elusive, and no counting formula was provided. Alanazi et al. [7] undertook a systematic investigation of the topic using n-multicolor compositions with tilings of 1-by-n boards and ternary sequences. They modeled their technique after an extension of MacMahon’s line graph conjugation method and discovered a remarkably large set of conjugable n-color compositions.
Theorem 1
(Alanazi et al. [7]). The number of conjugable n-color compositions of an integer ν > 0 is given by 2 ν 1 .
However, even in the latter model, a substantial number of objects still escaped conjugation. Note that F 2 ν > 2 ν 1 for all ν > 2 .
Lastly, we refer to a significant 1997 paper by Agarwal and Balasubrananian [8], where the conjugate of an n-color partition λ is defined as the n-color partition λ obtained by replacing each colored part a c by a a c + 1 . The authors used this definition to establish an identity between “n-color partitions, where the weighted difference of each pair of parts is 2 ” and “n-color partitions such that, in each pair of parts, a i , b i ( a b ) b is the arithmetic mean of the subscripts i and j”, among other results.
One may apply this definition to n-color compositions and obtain the conjugate of every object. We will refer to this conjugation as color-complement or simply c-complement. For example, if C = ( 2 2 , 5 2 , 1 1 , 1 1 , 1 1 , 3 1 ) , then the c-complement conjugate is given by C = ( 2 1 , 5 4 , 1 1 , 1 1 , 1 1 , 3 3 ) .
Proposition 1.
The number of c-complement self-conjugate n-color compositions of ν is given by F ν .
Since a c maps to a a c + 1 and c = a c + 1 , self-conjugate parts are odd parts ( a = 2 c 1 ), with each part subscripted by its unique numerical index among increasing odd positive integers. The result then follows from the fact that compositions of ν into odd parts are enumerated by F ν (see [2]). For example, C = ( 3 2 , 5 3 , 1 1 , 1 1 , 1 1 , 7 4 ) is a c-complement self-conjugate.
Note that Proposition 1 implies that every n-color composition C counted by F 2 ν F ν has a unique conjugate C with C C . It follows that F 2 ν F ν (mod 2) for all ν 0 .
Even though c-complement conjugation admits conjugation of every n-color composition C, the parts of C and C remain rigidly the same, and it is not clear how C can be found graphically. Nonetheless, the method is independently interesting and may be gainfully applied to any set of subscripted integer sequences.
This paper introduces a modified set of n-color compositions in which every object has a conjugate in the classical tradition of Percy Alexander MacMahon (1854–1929) who pioneered the topic for ordinary compositions [9]. Whereas standard n-color compositions originated by extending the coloring scheme used for partitions to compositions (see [3,4]), our objects arise from coloring compositions directly. Such colored compositions share the essential property of n-color compositions by requiring a subscript associated with a part to not exceed the part.
The conjugation techniques discussed in this work have potential applications in certain graph-based and algebraic constructions used in cryptography [10]. The graphical techniques may be harnessed to strengthen the confusion in RGB (red, green, blue) image encryption using SPN (Substitution–Permutation Network) with a novel block cipher over simple graph adjacency matrices [11].
In Section 2 we profile the new set of conjugable colored compositions with some immediate examples. Then in Section 3 we give further details of three conjugation techniques gleaned from the conjugation of ordinary compositions. Section 4 is devoted to the statement and proof of relevant enumeration formulas. Finally, Section 5 contains additional enumeration results for objects with part sizes bounded from below.

2. The n-Color Compositions of the Second Kind

It would be convenient to write compositions symbolically by representing a maximal string of 1s of length x by 1 x , where two adjacent big parts (i.e., parts > 1 ) are assumed to be separated by 1 0 . A general composition then has one of the following two forms:
C = ( 1 a 1 , b 1 , 1 a 2 , b 2 , ) , a 1 1 , a i 0 , i > 1 , b i 2 i ;
C = ( b 1 , 1 a 1 , b 2 , 1 a 2 , ) , a i 0 , b i 2 ,
where it is understood in each case that C either ends in 1 a r or b r for some r 1 with a r 1 and b r 2 .
The first or last part of composition C is also referred to as a boundary part. Any other part of C is an interior part.
In defining our new set of colored compositions, we are guided by the conjugation model of P. A. MacMahon for ordinary compositions; that is, every composition C has a unique conjugate C that satisfies the following conditions:
(i)
C is obtainable from C via symbolic algebra;
(ii)
C is obtainable from the line graph of C , LG ( C ) ; and
(iii)
C is obtainable from the zig-zag graph of C.
For example, in addition to the zig-zag graph technique shown earlier, one may use symbolic algebra and a line graph to obtain C as follows:
Firstly, the symbolic algebra conjugation of C = ( 1 a 1 , b 1 , 1 a 2 , b 2 , , 1 a r , b r ) is given by
C = ( a 1 + 1 , 1 b 1 2 , 1 + a 2 + 1 , 1 b 2 2 , 1 + , 1 + a r + 1 , 1 b r 1 ) = ( a 1 + 1 , 1 b 1 2 , a 2 + 2 , 1 b 2 2 , , a r + 2 , 1 b r 1 )
Thus an interior part ( , m , ) , m > 1 , conjugates to ( + 1 , 1 m 2 , 1 + ) . We also refer to m 2 as the number of interior units of m. Note that 2 conjugates to ( + 1 , 1 0 , 1 + ) and thus has 0 interior units.
For example, C = ( 5 , 3 , 1 , 2 , 2 ) = ( 5 , 1 0 , 3 , 1 , 2 , 1 0 , 2 ) has the conjugate
C = ( 1 5 1 , 0 + 2 , 1 3 2 , 1 + 2 , 1 2 2 , 0 + 2 , 1 2 1 ) = ( 1 4 , 2 , 1 , 3 , 1 0 , 2 , 1 ) = ( 1 4 , 2 , 1 , 3 , 2 , 1 ) .
For the line graph we use circular nodes separated by bars (instead of line segments separated by dots). Thus we obtain
LG ( C ) : | | | |
By deleting the bars and placing bars inside the gaps that previously had none, we obtain
LG ( C ) : | | | | | | | |
from which we read off the conjugate as C = ( 1 , 1 , 1 , 1 , 2 , 1 , 3 , 2 , 1 ) .
More details about these conjugation techniques may be found in [9,12].
We now propose an n-color-type scheme that satisfies the three conjugation conditions. Our most significant departure from standard n-color compositions is a negation of the assignment of the color 1 to each part 1 in every maximal string 1 , 1 , , 1 = 1 m , m > 0 . It is known that an ordinary composition generates as many n-color compositions as the product of its parts (see, for example, [13]). For example, ( 1 , 1 , 1 , 2 , 1 , 1 , 3 , 1 ) = ( 1 4 , 2 , 1 2 , 3 , 1 ) generates the following 6 objects:
( 1 1 4 , 2 1 , 1 1 2 , 3 1 , 1 1 ) , ( 1 1 4 , 2 1 , 1 1 2 , 3 2 , 1 1 ) , ( 1 1 4 , 2 1 , 1 1 2 , 3 3 , 1 1 ) , ( 1 1 4 , 2 2 , 1 1 2 , 3 1 , 1 1 ) ( 1 1 4 , 2 2 , 1 1 2 , 3 2 , 1 1 ) , ( 1 1 4 , 2 2 , 1 1 2 , 3 3 , 1 1 ) .
Indeed any composition of the form ( 1 a , 2 , 1 s , 3 , 1 t ) , a , s , t 0 generates exactly 6 n-color compositions.
The coloring scheme proposed here accounts for the fact that the number of colors of a part-size m is dominated by m. But we treat a string of m ones, m > 0 , 1 , 1 , , 1 1 m , as the single part m with respect to color assignment. This is informed by the conjugation of standard compositions in which strings of 1s translate into big parts.
This makes sense because a boundary string 1 x conjugates into the boundary part x + 1 (which is entitled to r x colors) while an interior string 1 x conjugates into the interior part x + 2 (which is entitled to r x colors). We see that an assignment of just the single color 1 to 1 x , independent of the size of x, is not symmetrical.
This color assignment is also supported by the natural fact that the parts of a composition occur as an ordered sequence. Thus in the proposed model, a colored part 1 c occurs in a composition C C if and only if a corresponding string 1 x , x c , occurs in the ordinary support composition if and only if a string of x colored parts 1 c , , 1 c = 1 c x , actually occur in C C . Thus, for instance, if 1 3 is colored 2 in a composition, these will appear as 1 2 , 1 2 , 1 2 or in the symbolic form 1 2 3 .
Another seemingly unusual assignment is that, when 2 occurs as an interior part, it has no color (or empty color) denoted by 2 0 . This is justified by the naturally derived conjugation principle:
“a big part bears a positive color if and only if it can be obtained via a symbolic transformation of a string of 1s with a positive color by conjugation”.
It is clear that 2 does not fulfill this condition because it is obtained by transforming a zero string of ones 1 0 under conjugation (see the paragraph immediately following (3)).
Suppose C is a composition of ν . Let R ( b ) and T ( b ) denote the respective sets of possible colors of a boundary and interior big part b C , and let R ( 1 m ) and T ( 1 m ) denote the sets of possible colors of a boundary and interior string of ones 1 m C .
Definition 1.
Let C be an ordinary composition of ν. A conjugable n-color composition is any colored composition C C of ν obtained by applying the following color assignments to the parts of C. If C is a trivial composition, that is, C { ( 1 ν ) , ( ν ) } , then each symbolic part admits ν colors:
  • 1 ν : 1 1 ν , 1 2 ν , , 1 n ν ;
  • ν : ν 1 , ν 2 , , ν ν .
Otherwise,
(i) 
R ( 1 m ) = T ( 1 m ) = { 1 , , m } : 1 1 m , 1 2 m , , 1 m m ;
(ii) 
R ( b ) = { 1 , , b 1 } , b > 1 : b 1 , b 2 , , b b 1 ;
(iii) 
T ( 2 ) = : 2 0 ;
(iv) 
T ( b ) = { 2 , , b 1 } , b > 2 : b 2 , b 3 , , b b 2 .
As with ordinary compositions, the LG nodes of a boundary part (or boundary string of 1s) are read from left to right on the left boundary and from right to left on the right boundary.
Remark 1.
Note that when standard n-color compositions are defined with respect to sets of colors assigned to the parts of an ordinary composition, we have
R ( 1 m ) = T ( 1 m ) = { 1 } : 1 1 m , m > 0 , R ( b ) = T ( b ) = { 1 , , b } : b 1 , b 2 , , b b , b > 1 .
For example, the following are some conjugable n-color compositions obtained from one ordinary composition: ( 1 2 2 , 7 6 , 3 2 , 1 2 3 , 5 4 , 2 0 , 1 1 , 4 3 ) , ( 1 1 2 , 7 2 , 3 2 , 1 3 3 , 5 2 , 2 0 , 1 1 , 4 1 ) and ( 1 2 2 , 7 4 , 3 2 , 1 1 3 , 5 3 , 2 0 , 1 1 , 4 2 ) . However, ( 1 2 2 , 7 6 , 3 1 , 1 2 3 , 5 4 , 2 0 , 1 1 , 4 4 ) is not a conjugable composition because 3 1 and 4 4 violate the definition.
Using the line graph, colors are assigned to interior units of interior big parts. Thus an interior part b > 1 represented by b nodes in a line graph is assigned a color only at one of the interior nodes, that is, at one of the 2nd to the ( b 1 ) th nodes:
· · ·       |           · · ·       colorable   nodes     |       · · ·
Secondly, a left boundary part b > 1 is assigned a color only at one of the first b 1 nodes (similar for a right boundary part):
      · · ·       colorable   nodes   |       · · ·   , · · ·       |         · · ·         colorable   nodes
On the other hand, it is clear that 2 with the representation has no interior unit. So an interior part 2 bears the color 0. However, a boundary part 2, with a representation of the form     |         · · · or · · ·         |     , clearly has one colorable node, on the left or on the right, respectively. Consequently, in a nontrivial conjugable n-color composition, 2 always takes the boundary form 2 1 and the interior form 2 0 .
Finally, we remark that a string of 1s, already being units, may be assigned a color at any of its nodes in a line graph.
These facts may also be depicted using a zig-zag graph. For example, consider the composition C = ( 1 a 1 , 2 , 1 a 2 , b 2 , b 3 ) , a 1 , a 2 > 0 , b 2 > 2 , b 3 > 1 . From the zig-zag graph in Figure 2, it is intuitively clear why any of the a 1 (or a 2 ) nodes is colorable, why neither of the 2 interior nodes can be colored, why only the second to the ( b 2 1 ) th nodes are colorable, and why only the last b 3 1 nodes are colorable.
With these coloring rules observed, the conjugate of the resulting colored composition may be obtained by reading the diagram by columns from left to right.
For example, the conjugable n-color composition
C C = ( 1 2 , 1 2 , 1 2 , 1 2 , 2 0 , 1 3 , 1 3 , 1 3 , 5 3 , 3 1 ) = ( 1 2 4 , 2 0 , 1 3 3 , 5 3 , 3 1 )
has the following zigzag graph representation:
The conjugate is now obtained by reading the zig-zag graph by columns to give C C = ( 5 2 , 5 4 , 1 2 , 1 2 , 1 2 , 2 0 , 1 1 , 1 1 ) = ( 5 2 , 5 4 , 1 2 3 , 2 0 , 1 1 2 ) . The corresponding line graph of C C is
  |     |     |     |       |     |     |     |             |        
The line graph of C C is obtained by swapping gaps and bars as with ordinary compositions:
          |             |     |     |     |       |     |    
Finally, the symbolic algebra technique matches that of ordinary compositions, as one may verify by ignoring the colors. Precise details are provided in the next section.
These new colored compositions should be known as n-color compositions of the second kind or simply M-color compositions.
We recap the properties satisfied by an M-color composition C C based on an ordinary support composition C as follows: the number of parts of C is denoted by | C | .
(1)
A maximal string of ones 1 u C of length u always comes in u colors.
(2)
If C consists of a single part b, then b comes in b colors.
(3)
If | C | 2 , the part 2 C comes in one color (namely, 1 or 0).
(4)
If | C | 2 and b > 1 is the first or last part of C, then b comes in b 1 colors.
(5)
If b > 2 is an interior part of C, it comes in b 2 colors.
The number of M-color compositions of ν is denoted by c c ( ν ) .

3. The Conjugation Involution

We now give a full explanation of the symbolic algebra technique. The trivial compositions conjugate is as follows for any 1 c n :
( 1 c n ) = ( n c ) and ( n c ) = ( 1 c n ) .
We next convert the ordinary composition C in (1) into a conjugable n-color composition C C by assigning colors to the parts in accordance with the following definition:
C C = ( 1 u 1 a 1 , b 1 , s 1 , 1 u 2 a 2 , b 2 , s 2 , , 1 u r a r , b r , s r ) , b i > 2 i ,
1 u i a i i , 2 s i b i 1 , i < r , 1 s r b r 1 .
Since the conjugate of C is given by C = ( a 1 + 1 , 1 b 1 2 , a 2 + 2 , 1 b 2 2 , ) (see (3)), we analogously obtain
C C : = ( ( a 1 + 1 ) u 1 , 1 s 1 1 b 1 2 , ( a 2 + 2 ) u 2 + 1 , 1 s 2 1 b 2 2 , , ( a r + 2 ) u r + 1 , 1 s r b r 1 ) .
Alternatively, showing the occurrence of 2, let
E E = ( 1 1 , b 1 , s 1 , 1 u 2 a 2 , 2 0 , 1 u 3 a 3 , , b r 1 , s r 1 , 1 1 , b r , s r ) ,
where the color sizes are subject to the restrictions in (5). Then the conjugate is
E E : = ( 2 1 , 1 s 1 1 b 1 2 , ( a 2 + 2 ) u 2 + 1 , 1 0 0 , ( a 3 + 2 ) u 3 + 1 , , 1 s r 1 1 b r 1 2 , 3 2 , 1 s r b r 1 ) .
Note that the colors in both C C and E E satisfy the stipulations in the definition since they immediately agree with (5). For example, in C C we have 1 u i ( a i + 1 ) 1 for all i, and 1 s i 1 b i 2 , which gives 2 s i b i 1 for i < r , and so forth. Secondly, the conjugation of an interior 2 to 1 0 0 and vice versa are given by convention. Hence the conjugates in (6) and (7) are well-defined.
It is clear that one may similarly assign colors to the parts of the support composition (2) and obtain analogous symbolic conjugates.
We remark that an M-color composition of ν > 1 cannot be a self-conjugate, a fact inherited from ordinary (support) compositions (see [12]).
Example 1.
Consider C C = ( 1 3 4 , 2 0 , 1 2 2 , 7 6 , 4 3 , 1 1 ) = ( 1 3 4 , 2 0 , 1 2 2 , 7 6 , 1 0 0 , 4 3 , 1 1 ) . Then
C C = ( ( 4 + 1 ) 3 , 1 0 2 2 , ( 2 + 2 ) 3 , 1 5 7 2 , ( 0 + 2 ) 0 , 1 2 4 2 , ( 1 + 1 ) 1 ) = ( 5 3 , 1 0 0 , 4 3 , 1 5 5 , 2 0 , 1 2 2 , 2 1 ) = ( 5 3 , 4 3 , 1 5 5 , 2 0 , 1 2 2 , 2 1 ) .
Alternatively, we may use the line graph and obtain
LG ( C C ) :                                                        
which, by placing division bars only in gaps which previously had none, leads to
LG ( C C ) :                                                            
from which the conjugate C C is again seen to be ( 5 3 , 4 3 , 1 5 5 , 2 0 , 1 2 2 , 2 1 ) .
The final approach is to use the zig-zag graph of C C where C C is obtained by reading the graph by columns (see Figure 3).
Example 2.
If ν = 4 , then c c ( 4 ) = 18 , which enumerates the following objects (arranged in conjugate pairs):
( 1 1 , 3 1 ) ( 1 1 , 3 2 ) ( 1 1 2 , 2 1 ) ( 1 2 2 , 2 1 ) ( 1 1 , 2 0 , 1 1 ) ( 1 1 4 ) ( 1 2 4 ) ( 1 3 4 ) ( 1 4 4 )
( 2 1 , 1 1 2 ) ( 2 1 , 1 2 2 ) ( 3 1 , 1 1 ) ( 3 2 , 1 1 ) ( 2 1 , 2 1 ) ( 4 1 ) ( 4 2 ) ( 4 3 ) ( 4 4 )

4. Enumeration of M-Color Compositions

We state the main enumeration result.
Theorem 2.
We have
n = 1 c c ( n ) x n = x ( 1 + x 2 x 2 + x 3 ) 1 3 x + 2 x 2 x 3 = x + 4 x 2 + 8 x 3 + 18 x 4 + 42 x 5 + 98 x 6 + .
Proof. 
We refer to the list of properties satisfied by the parts of an M-color composition C given at the end of Section 2.
Let A ( x ) and B ( x ) be the generating functions for the numbers of M-color compositions with first part 1 and first part > 1 , respectively.
We first consider the following attributes:
(i)
Any maximal string of ones 1 u comes in u colors.
(ii)
There is exactly one color for 2 (for now).
(iii)
A part b > 2 comes in b 2 colors (for now).
Then A ( x ) is given by an initial block of u ones, for which there are u colors, followed by a composition that does not start with 1, that is,
A ( x ) = u 1 u x u B ( x ) = x ( 1 x ) 2 B ( x ) .
Secondly, B ( x ) is given by either the empty composition of 0 or 2 or an initial part b 3 , for which there are b 2 colors, followed by an arbitrary composition:
B ( x ) = x 0 + x 2 + b 3 ( b 2 ) x b ( A ( x ) + B ( x ) ) = 1 + x 2 + x 3 ( 1 x ) 2 ( A ( x ) + B ( x ) ) .
Solving the system of (9) and (10) yields
A ( x ) + B ( x ) = ( 1 x ) 2 ( 1 x + x 2 ) ( 1 x + x 3 ) ( 1 3 x + 2 x 2 x 3 ) .
Next we account for additional attributes:
(iv)
The integer 2 has a second color if it is the only part.
(v)
There is an additional color for each first or last part b 3 .
Thus, altogether, (i) to (v) are equivalent to the original conditions (1) to (5) in Section 2.
If we combine the generating functions for (iv) and (v) with Equation (11), we obtain the full generating function:
A ( x ) + B ( x ) ( objects without additional colors , i . e . , Equation ( 11 ) ) + x 2 ( single part 2 ) + 2 b 3 x b A ( x ) + B ( x ) ( additional color for first or last part ) + b 1 3 b 2 3 x b 1 + b 2 A ( x ) + B ( x ) ( additional colors for first and last parts . )
This simplifies to
x 2 + 1 + 2 x 3 ( 1 x ) + x 6 ( 1 x ) 2 ( A ( x ) + B ( x ) ) = x 2 + 1 + 2 x 3 ( 1 x ) + x 6 ( 1 x ) 2 · ( 1 x ) 2 ( 1 x + x 2 ) ( 1 x + x 3 ) ( 1 3 x + 2 x 2 x 3 ) = ( 1 x ) ( 1 x + 2 x 2 x 3 ) 1 3 x + 2 x 2 x 3 = 1 + x ( 1 + x 2 x 2 + x 3 ) 1 3 x + 2 x 2 x 3 .
Hence the proof follows.    □
The following recurrence is a routine consequence of the generating function (8), and it may be verified that the explicit formula (13) satisfies the recurrence.
Corollary 1.
We have
c c ( 1 ) = 1 , c c ( 2 ) = 4 , c c ( 3 ) = 8 , c c ( 4 ) = 18 . c c ( n ) = 3 c c ( n 1 ) 2 c c ( n 2 ) + c c ( n 3 ) , n > 4 ,
c c ( 1 ) = 1 , c c ( n ) = 2 j = 0 n 1 2 n + j 3 j + 1 , n > 1 .

5. M-Color Compositions with Parts Bounded Below

Let c c ( ν P ) denote the number of M-color compositions of ν that satisfy property P, and let c c ( ν , k P ) be the number of those objects with k parts. We first obtain the generating function for the number of objects without 1s.
Theorem 3.
We have
n = 4 c c ( n , k no 1 s ) x n = x 4 ( 1 x ) 4 x 2 ( 1 x + x 2 ) ( 1 x ) 2 k 2 , k 2 .
n = 0 c c ( n no 1 s ) x n = x 2 ( 2 x x 2 + x 3 ) 1 2 x + x 3 x 4 .
Proof. 
Note that c c ( n , 1 no 1 s ) = n , n > 1 , that is,
n = 2 c c ( n , 1 no 1 s ) x n = 2 x 2 + 3 x 3 + = x ( 1 x ) 2 x = x 2 ( 2 x ) ( 1 x ) 2 .
When k > 1 , each boundary part b has b 1 possible colors, and each interior part b has b 2 colors, while 2 has precisely one color either way. Thus the decomposition is
( x 2 + 2 x 3 + 3 x 4 + ) ( x 2 + x 3 + 2 x 4 + 3 x 5 + ) k 2 ( x 2 + 2 x 3 + 3 x 4 + )
= ( x ( 1 + 2 x 2 + 3 x 3 + ) ) 2 ( x 2 ( 1 + x + 2 x 2 + 3 x 3 + ) ) k 2
= x 2 ( 1 x ) 2 2 x 2 1 + x ( 1 x ) 2 k 2
n = 4 c c ( n , k no 1 s ) x n = x 4 ( 1 x ) 4 x 2 ( 1 x + x 2 ) ( 1 x ) 2 k 2 , k 2 .
  • Therefore,
n = 1 c c ( n no 1 s ) x n = x 2 ( 2 x ) ( 1 x ) 2 + x 4 ( 1 x ) 4 k = 2 x 2 ( 1 x + x 2 ) ( 1 x ) 2 k 2
= x 2 ( 2 x x 2 + x 3 ) 1 2 x + x 3 x 4 .

The Case of Objects with 3 Parts

We prove the following assertion:
Theorem 4.
Let t > 2 be an integer. Then
n = 4 c c ( n , k parts t ) x n = x t ( t ( t 2 ) x 1 ) ( 1 x ) 2 2 x t ( t ( t 3 ) x 2 ) ( 1 x ) 2 k 2 , k 2 .
n = 0 c c ( n parts t ) x n = x t ( x t ( t 1 ) x + t ) ( 1 x ) 2 x t ( t ( t 3 ) x 2 ) , t > 2 .
Proof. 
First note that c c ( n , 1 parts t ) = n , n t , that is,
n = t c c ( n , 1 parts t ) x n = t x t + ( t + 1 ) x t + 1 + ( t + 2 ) x t + 2 + = i = 1 i x i i = 1 t 1 i x i = x ( 1 x ) 2 x + x t ( ( t 1 ) x t ) ( 1 x ) 2 = x t ( t ( t 1 ) x ) ( 1 x ) 2 .
When k > 1 , each boundary part b > 2 has b 1 possible colors, and each interior part b > 2 has b 2 colors. Thus the decomposition is
( ( t 1 ) x t + t x t + 1 + ) ( ( t 2 ) x t + ( t 1 ) x t + 1 + t x t + 2 + ) k 2 ( ( t 1 ) x t + t x t + 1 + ) = x ( ( t 1 ) x t 1 + t x t + ) 2 x 2 ( ( t 2 ) x t 2 + ( t 1 ) x t 1 + t x t + ) k 2 = x t ( t ( t 2 ) x 1 ) ( 1 x ) 2 2 x t ( t ( t 3 ) x 2 ) ( 1 x ) 2 k 2 .
n = 4 c c ( n , k part t ) x n = x t ( t ( t 2 ) x 1 ) ( 1 x ) 2 2 x t ( t ( t 3 ) x 2 ) ( 1 x ) 2 k 2 , k 2 .
(Note that k 2 implies n 2 t ).
Therefore,
n = t c c ( n parts t ) x n = x t ( t ( t 1 ) x ) ( 1 x ) 2 + x t ( t ( t 2 ) x 1 ) ( 1 x ) 2 2 k = 2 x t ( t ( t 3 ) x 2 ) ( 1 x ) 2 k 2 = x t ( t ( t 1 ) x ) ( 1 x ) 2 + x 2 t ( t ( t 2 ) x 1 ) 2 ( 1 x ) 4 ( 1 x ) 2 ( 1 x ) 2 x t ( t ( t 3 ) x 2 ) = x t ( t ( t 1 ) x ) ( 1 x ) 2 + x 2 t ( t ( t 2 ) x 1 ) 2 ( 1 x ) 2 ( ( 1 x ) 2 x t ( t ( t 3 ) x 2 ) ) = x t ( x t ( t 1 ) x + t ) ( 1 x ) 2 x t ( t ( t 3 ) x 2 ) .

6. Discussion

This research introduces a new set of colored compositions endowed with the classical conjugation property of ordinary compositions. Furthermore, there is an enumerative generating function and an explicit computational formula. The results are based directly on the inherent symmetry of compositions. It is worth noting that these M-color compositions also form an interesting class of combinatorial objects in their own right, even without recourse to conjugation. They are expected to become rich objects of research in the future. For example, it might be rewarding to examine pattern avoidance questions in the set of M-color compositions. Also, the discussed techniques might have applications to certain graph-based cryptographic constructions such as RGB image encryption using SPN with a novel block cipher over simple graph adjacency matrices and Galois fields. The results of this work will probably be regarded as a significant contribution to the number theory and combinatorics literature.

Funding

This research received no external funding.

Data Availability Statement

The colored compositions studied in this paper were computed mostly using the computer algebra system Maple [14]. The original contributions presented in the study are included in the article, further inquiries can be directed to the corresponding author.

Acknowledgments

The author thanks Stephan Wagner for generously providing the proof of Theorem 2.

Conflicts of Interest

The author declares no conflicts of interest.

References

  1. Andrews, G.E. The Theory of Partitions; Cambridge University Press: Cambridge, UK, 1998. [Google Scholar]
  2. Heubach, S.; Mansour, T. Combinatorics of Compositions and Words; Discrete Mathematics and its Applications (Boca Raton); CRC Press: Boca Raton, FL, USA, 2010. [Google Scholar]
  3. Agarwal, A.K. n-color compositions. Indian J. Pure Appl. Math. 2000, 31, 1421–1427. [Google Scholar]
  4. Agarwal, A.K.; Andrews, G.E. Rogers-Ramanujan identities for partitions with “N copies of N”. J. Combin. Theory Ser. A 1987, 45, 40–49. [Google Scholar] [CrossRef] [Scilit]
  5. Hopkins, B. Spotted tilings and n-color compositions. Integers 2012, 12B, A6. [Google Scholar]
  6. Collins, A.; Dedrickson, C.; Wang, H. Binary words, n-color compositions and bisection of the Fibonacci numbers. Fibonacci Quart. 2013, 51, 130–136. [Google Scholar] [CrossRef] [Scilit]
  7. Alanazi, A.M.; Archibald, M.; Munagi, A.O. Multicolor Compositions and Conjugation of N-Color Compositions. Contrib. Discrete Math 2024, 19, 68–85. [Google Scholar] [CrossRef] [Scilit]
  8. Agarwal, A.K.; Balasubramanian, R. n-color partitions with weighted differences equal to minus two. Internat. J. Math. Math. Sci. 1997, 20, 759–768. [Google Scholar] [CrossRef] [Scilit]
  9. MacMahon, P.A. Combinatory Analysis; Cambridge University Press: Cambridge, UK, 1915; Volume 1. [Google Scholar]
  10. Kong, J.H.; Ang, L.-M.; Seng, K.P. A comprehensive survey of modern symmetric cryptographic solutions for resource constrained environments. J. Netw. Comput. Appl. 2015, 49, 15–50. [Google Scholar] [CrossRef] [Scilit]
  11. Sajjad, M.; Alqwaifly, N.A. RGB image encryption using SPN with a novel block cipher over simple graph adjacency matrices and Galois fields. Sci. Rep. 2025, 15, 37488. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  12. Munagi, A.O. Primary classes of compositions of numbers. Ann. Math. Inform. 2013, 41, 193–204. [Google Scholar]
  13. Shapcott, C. C-color compositions and palindromes. Fibonacci Quart. 2012, 50, 297–303. [Google Scholar] [CrossRef] [Scilit]
  14. Maple 2020.2; Maplesoft, a Division of Waterloo Maple Inc. Waterloo Maple Inc.: Waterloo, ON, Canada, 2020.
Figure 1. Zig-zag graph of ( 5 , 3 , 1 , 2 , 2 ) .
Figure 1. Zig-zag graph of ( 5 , 3 , 1 , 2 , 2 ) .
Symmetry 18 00257 g001
Figure 2. Zig-zag graph of ( 1 a 1 , 2 , 1 a 2 , b 2 , b 3 ) , a i , b i > 1 .
Figure 2. Zig-zag graph of ( 1 a 1 , 2 , 1 a 2 , b 2 , b 3 ) , a i , b i > 1 .
Symmetry 18 00257 g002
Figure 3. Zig-zag graph of C C = ( 1 3 4 , 2 0 , 1 2 2 , 7 6 , 4 3 , 1 1 ) .
Figure 3. Zig-zag graph of C C = ( 1 3 4 , 2 0 , 1 2 2 , 7 6 , 4 3 , 1 1 ) .
Symmetry 18 00257 g003
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Munagi, A.O. Conjugation of Colored Compositions. Symmetry 2026, 18, 257. https://doi.org/10.3390/sym18020257

AMA Style

Munagi AO. Conjugation of Colored Compositions. Symmetry. 2026; 18(2):257. https://doi.org/10.3390/sym18020257

Chicago/Turabian Style

Munagi, Augustine O. 2026. "Conjugation of Colored Compositions" Symmetry 18, no. 2: 257. https://doi.org/10.3390/sym18020257

APA Style

Munagi, A. O. (2026). Conjugation of Colored Compositions. Symmetry, 18(2), 257. https://doi.org/10.3390/sym18020257

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop