Partition function of the cyclic group
Steven S Poon

TL;DR
This paper explores the enumeration of partitions of elements in cyclic groups into distinct parts, establishing a link to bi-color necklaces with specific periodicity, extending known results to even moduli.
Contribution
It generalizes the connection between group partitions and bi-color necklaces to include even moduli, expanding previous odd-modulus results.
Findings
Established equivalence between $Q_{m,t}(n)$ and bi-color necklaces with periodicity constraints for even $m$
Extended known results from odd to even cyclic group moduli
Provided combinatorial interpretations for group partitions
Abstract
This paper addresses the problem of finding , the number of possible ways to partition any member of the cyclic group into distinct parts. When is odd, it was previously known that the number of partitions of the identity element with distinct parts is equal to the number of possible bi-color necklaces with beads. This paper will expand upon this result by showing the equivalence between and the number of bi-color necklaces meeting certain periodicity requirements, even when is even.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
Topicssemigroups and automata theory · DNA and Biological Computing · Algorithms and Data Compression
Partition function of the cyclic group
Steven S Poon
Abstract
This paper addresses the problem of finding , the number of possible ways to partition any member of the cyclic group into distinct parts. When is odd, it was previously known that the number of partitions of the identity element with distinct parts is equal to the number of possible bi-color necklaces with beads. This paper will expand upon this result by showing the equivalence between and the number of bi-color necklaces meeting certain periodicity requirements, even when is even.
1 Introduction
The problem of finding the number of possible ways to partition a positive integer with various limitations and conditions on the parts is a well-studied one since Euler wrote down some of the seminal results. There is no reason why one cannot generalize this problem to any abelian group. Given an abelian group and a fixed member , the group partition function can be defined as the number of distinct multisets of members of such that the group sum is equal to . Although such a broad scope is just described, this paper will focus on the specific case where , isomorphic to the cyclic group of elements. The partitions will be required to have distinct parts.
The task of counting the number of subsets of with a sum equal to , where is odd, was given as an exercise in [1], which noted an interesting fact that the number of these subsets matches the number of bi-color necklaces of beads. The more recent work [2] expanded upon this result and showed that a similar correspondence holds when the beads of the necklaces are allowed to have more than two colors.
In both of the works above, the case for even values of remains unexplained. Also, the partitioning of members of other than the identity element was not worked out explicitly. This paper will seek to cover these two aspects for the case when repeating parts are not allowed. In particular, the function , which is defined here as the partition function of as a member of with distinct parts, will be analyzed in depth. By doing so, one can obtain interesting results regarding two different formulations of the same problem:
Urn model. An urn contains marble balls, each labeled with a unique integer from the set . A fixed number of these marble balls are chosen from the urn at random and without replacement. Let numbers on the drawn balls form the set , and the statistic is calculated as . What is the probability of obtaining a certain value of after a random drawing? 2. 2.
Bi-color necklaces. Construct a bijection between the possible ways to partition into distinct parts and the possible bi-color necklaces of black beads and white beads meeting certain periodicity requirements.
The key findings regarding applicable to these scenarios are summarized below.
1.1 Statements of Main Results
Theorem 1**.**
Let and be integers such that , and be any integer modulo , then:
[TABLE]
The quantity is Ramanujan’s sum. Recall that, if is a divisor of , then if . Hence the domain of will be treated as whenever appropriate.
If one plays a game based on the urn model described above, it becomes interesting to understand exactly how behaves as a function of . Particularly one might want to know which number is most likely to win. The answer is given in Theorem 2.
Theorem 2**.**
For fixed integers and such that and , the function is maximized precisely when the values of meet one of the following requirements:
* if is odd, or* 2. 2.
* if is even and , or* 3. 3.
* if is even and .*
The function is the 2-adic valuation of .
The correspondence between partitions of modulo with distinct parts and necklaces can be expanded to cover and even values of using Theorem 3 below. As a reminder, a necklace is periodic if one can break it at points to create contiguous segments, such that the pattern of black and white beads as an ordered list is the same for all segments. The largest value of possible will be referred to as the frequency of the necklace within this paper.
Theorem 3**.**
Let and be integers such that and , then:
* whenever the conditions are not met, or* 2. 2.
* if , or* 3. 3.
* if , or* 4. 4.
* if .*
The quantity is the number of possible necklaces with black beads and white beads, such that the frequency of the necklace is a divisor of .
2 Generating Function Approach
All results shown in this paper are based on Theorem 1. This section is dedicated to proving the theorem using a generating function approach.
2.1 Some Definitions
It is useful to start with some definitions to allow the discussion below to proceed smoothly.
Definition 4**.**
Let , , and be integers. The quantity is defined recursively as:
[TABLE]
with the starting condition whenever , , or is less than 0.
As is well-known, this is simply the partition function of the positive integer with distinct parts such that no part is larger than when all the parameters are positive.
Definition 5**.**
Let and be integers, be an integer modulo , and be the integer from the equivalent class of integers represented by . The quantity is defined as:
[TABLE]
It is clear that, when and are positive, is simly the partition function of with distinct parts such that no part is equal to the identity element . The last restriction is the only difference between and .
Proposition 6**.**
Let and be integers, and be an integer modulo . Then .
Proof.
This is because the partitions counted by can be separated into two “clouds”: those with as a part and those without. The first and second clouds have obvious one-to-one relationships with the partitions counted by and , respectively. ∎
This fact makes a highly useful intermediate quantity for the purpose of this work.
Definition 7**.**
The following two short-hands will be used throughout this section:
[TABLE]
[TABLE]
The reason for this will be apparent shortly.
2.2 The Polynomial
Definition 8**.**
Let be a positive integer greater than 1, and , , and be complex numbers. Then the function is given by the product:
[TABLE]
It will be useful to expand the allowed values of to all non-negative integers with the conventions and .
The function is often used when studying integer partitions. When and indefinitely large, it is the same as the generation function Euler used in his well-known correspondence with Philip Naudé. Thus the identity below requires no further explanation.
Proposition 9**.**
The polynomial is the generating function for , in the sense that:
[TABLE]
A more relevant fact for the purpose of this paper comes about from a slight modification of the statement above.
Proposition 10**.**
Let , , , and be integers, , and the quantity be defined as:
[TABLE]
Then as a function of is the discrete Fourier transform of as a function of . Specifically:
[TABLE]
This follows quite naturally from the definitions of and .
Note that itself as a function of is the discrete Fourier transform of as a function of . Thus one can obtain an expression for from an expression for . In the next sub-section, it will be shown that a useful form for can be derived. A clear line of attack towards proving Theorem 1 will then be formed.
2.3 Evaluating
The following lemma will be very useful shortly.
Proposition 11**.**
Let and be positive integers, and be the set of divisors of . Also define the function as . Then the following statements are true:
The image of is the set of divisors of . 2. 2.
The preimage of , denoted as , is the set . The quantity is the product of all prime factors of coprime with , and .
Proof.
Consider the prime factorization of , where is the set of distinct prime factors and are non-zero. Then can be written as , where is the product of all prime factors of coprime with , and are either zero or positive. Thus one can write:
[TABLE]
One can conclude from this that if is in the image of , then any divisor of is also in the image of , as one can easily reduce the exponent associated with for any by dividing by when appropriate. Since , this value and its divisors are clearly all within the image of . The fact that already contains the most number of prime factors possible suggests that the first statement of this proposition must be true.
To show the second statement, notice that if as stated, then , and so for all valid values of . The claim clearly appears to be plausible, but one still needs to show that no other value of maps to through the function .
To this end, let the prime factorization of be rewritten as , where are non-zero and is the product of all prime factors coprime to . Also let , where are required to be non-zero. Finally, let , where can be zero or positive.
The fact that means for all . But if , then which conflicts with the requirement that . Thus , and consequently for all . This means must divide . In fact, can only contain prime factors coprime to .
At this point, it remains to show that can only take on values that are divisors of . If this is not true, then , where , and so , which is not equal to . ∎
One now has all the tools needed to consider the main result of this sub-section.
Proposition 12**.**
Let and be positive integers, , and , then:
[TABLE]
Proof.
Let be the set of positive integers less than and coprime with , then Definition 8 can be rewritten as:
[TABLE]
where and .
Let and , where is the Euler totient function. Using elementary facts regarding the group , one knows that the ordered list , when each entry is interpreted as a member of , contains copies each of , …, and . It follows that:
[TABLE]
where is the th cyclotomic polynomial.
It is possible for multiple factors of this product to have the same value of . As an example, every divisor of is also a divisor of . Thus for all values of that are divisors of , such that is always equal to 1 in this case.
This is where Proposition 11 becomes useful. It is now clear that can only take on values that are divisors of , and the values of that map to a single fixed value of are in the form , where is any divisor of . Thus the equation above can be rewritten as:
[TABLE]
[TABLE]
With a small amount of effort, one can show with standard properties of the Euler totient function that simply evaluates to . Thus:
[TABLE]
Applying the well-known identity immediately results in the desired form. ∎
A corollary of this result is the following.
Proposition 13**.**
Let and be positive integers, , and , then:
[TABLE]
Proof.
The quantity , derived just above, is a polynomial as a function of . This is because it can be written as the product of the factors and . The first factor is reminiscent of the geometric sum and can be written as . The second factor can be expanded using the binomial theorem, resulting in the form . It is easy to see that multiplying these two factors together gives the desired form. ∎
2.4 Formula for
The result from Proposition 13 allows one to generate new identities for , as it is related to through the discrete Fourier transform, which can be inverted.
Proposition 14**.**
Let , , and be positive integers, be an integer, , and , then the function can be written as , where:
[TABLE]
Proof.
It was already observed that is the inverse discrete Fourier transform of . Thus one can use the result from Proposition 13 to write:
[TABLE]
But the inner summation is equal to zero unless divides , in which case it is equal to . Thus the right hand side above simplifies to the desired form. ∎
2.5 Formula for
With the result from Proposition 14 available, one can now write a new expression for .
Proposition 15**.**
The function can be written as:
[TABLE]
Proof.
By definition, as a function of is the inverse discrete Fourier transform of as a function of . This fact allows one to write . Using the result from Proposition 14, one can rewrite this as .
Notice that is a function of . The value of is necessarily a divisor of . Thus one may reorganize the sum such that the index is over all divisors of , such that all appearances of are replaced with , and with , where is coprime with . This gives the updated form:
[TABLE]
The inner summation is well-known to be equivalent to Ramanujan’s sum. The desired form is then obtained by replacing the index by , which plainly has the effect of reshuffling the terms within the summation and does not change the result. ∎
Furthermore, one can obtain a similar expression for .
Proposition 16**.**
Let , then the function can be written as:
[TABLE]
Proof.
As mentioned in Proposition 6, , and so naturally it is also true that . Applying the result from Proposition 15 and the definition for gives the following expression:
[TABLE]
For the case , the summand of the inner summation is clearly equal to zero when does not divide . When divides , the summand is easily shown to be equal to .
The case can be shown through direct evaluation. ∎
2.6 Proof for Theorem 1
The proof for Theorem 1 follows quite naturally from the results above.
Note that when and . Taking the result from Proposition 16 and setting immediately results in the desired expression.
Another way to establish the validity of Theorem 1 is to first notice the fact that, assuming that the proposed equation for is true, then the sum does indeed result in the correct form:
[TABLE]
which is consistent with the result from Proposition 16.
However, one still needs to show that this is not just a coincidence. It is clear that forms a system of equations for . The ordered list of values can be related to through the matrix equation , where and are treated as column vectors. The matrix is an -by- matrix such that the entry is equal to 1 when divides , and equal to 0 otherwise. It can be shown quite easily through induction that , such that is always invertible. Thus the fact that the sum gives the correct form for is sufficient proof that the proposed form for is correct.
3 Urn Model
3.1 Probability Distribution
Imagine a game in which objects labeled with the integers 0, 1, …, and are prepared ahead of time. A fixed number of these objects are then randomly chosen without replacement. Such an arrangement is used by various lottery games. One can also imagine replacing the dice used in popular board games with this drawing mechanism.
For each drawing, it is always possible to calculate a statistic defined as , where , is the set of numbers drawn, and is the remainder function with as the divisor. One may want to do that, for example, if the game board contains spaces labeled consecutively from 0 to arranged in a circular fashion such that the slot labeled is adjacent to the slot labeled 0. One may also want to do that simply for the sake of studying the statistic.
Proposition 17**.**
Given the urn model discussed above, the probability distribution of the statistic is equal to , where is any possible value of the statistic.
Proof.
It is plain that the number of ways to obtain a certain fixed number after calculating the sum is simply the sum of the two integer partition functions . This is because one of the members of can be equal to zero. The number of ways to obtain the number after calculating is simply , which, as discussed in Section 2.1, is equal to .
To find the probability, it is necessary to find the sum . This can be obtained from Theorem 1 and the well-known fact that . The result is . The desired probability is thus divided by this value. ∎
3.2 Some Key Features of the Diagram for
Suppose one plays a lottery-like game, in which one wins by guessing the value of correctly. It is natural to ask if there exists one member or a subset of such that the probability of winning is maximized.
Before answering this question, it is useful to examine the properties of further. It was already established in the section above that the set is an integer partition of the binomial coefficient . It is interesting to note that there is a related way to write the same binomial coefficient as a sum of a set of integers. First, it is necessary to define the following quantity.
Definition 18**.**
Let and be integers such that . The quantity is defined as the sum:
[TABLE]
The reason for defining this quantity will be seen shortly.
If one attempts to plot the value of versus on a graph, one gets the image of a “wall with battlements”. This is especially true if one presents the graph as something similar to a Ferrers diagram. This is done by drawing a column of dots or boxes, followed by a column of boxes to the right of the previous column, and so on. The boxes are bottom-justified, as if affected by gravity. The total number of boxes, as discussed previously, is equal to
The analogy with Ferrers diagrams beckons one to count rows of boxes instead of just columns. Recall that:
[TABLE]
But the left hand side is just . It follows that for . Thus if each box on the th column in the diagram is seen as representing the root of unity , then the sum of all the boxes of the diagram for is equal to zero. Because of the well-known fact that for any positive integer dividing not equal to itself, it would seem that there should exist integers , where is the set of proper divisors of , such that the following two equations are met simultaneously for :
[TABLE]
[TABLE]
Before proceeding along this line of thought, it is useful to have the following lemma.
Proposition 19**.**
Let be a function mapping a pair of positive integers to some subset of the complex plane. Also, let be a function meeting the same description. For the following two equations, if one of them is true for all and , then the other one is also true for all and .
[TABLE]
[TABLE]
Note that this can be seen as an alternative form of the Möbius inversion formula. It can be proven similarly, by substituting one equation into another and making use of the identity . Since the proof for the Möbius inversion formula is well-known, the details will not be worked out here.
A second lemma will also be used.
Proposition 20**.**
Let be a function defined for all positive integers and . Also let and be any positive integers, and be defined by the sum:
[TABLE]
Then the following expression is a true statement:
[TABLE]
Note that the summation is over all positive integers and meeting the stated condition.
It is easy to show, using standard properties of Ramanujan’s sum, that the claim holds true when or when is prime. Using the same standard properties, it is possible to show that the desired expression holds true for if it is true for all equal to any divisors of . Note that the cases for coprime with and not coprime with need to be shown separately. Thus the expression can be shown to be true through induction. Due to the straightforward nature and the space required to develop the steps in full, this will be left as an exercise for the interested reader.
The values of can then be easily worked out from the results developed so far.
Proposition 21**.**
Let and be integers, such that , then the quantity agrees with the identities below.
[TABLE]
[TABLE]
Thus it must be true that the hypothetical quantity above is given by and .
Proof.
The second proposed identity is a consequence of Proposition 20, which has the following special case:
[TABLE]
It is clear from this equation and Definition 18 that the second proposed identity is true. The first identity then follows directly by inverting Definition 18 using Proposition 19. ∎
Since whenever , the various questions regarding the shape of the diagram, such as the left-right symmetry and “wall with battlements” appearance are explained satisfactorily. The fact that is a constant function of if and only if and are coprime is now also obvious.
It is useful to point out a few basic properties of at this point.
Proposition 22**.**
Let . The following statements are true regarding the quantity :
* is non-negative.* 2. 2.
. 3. 3.
. 4. 4.
* whenever .*
Proof.
From Proposition 21, one can set and obtain . Since is non-negative, is also non-negative. The second and third statements can be obtained through direct evaluation of Definition 18. The fourth statement also follows from the property of : logically one cannot create a subset of with more than members, and numerically the recursion formula for ensures this claim to be true. ∎
3.3 Proof of Theorem 2 - Finding That Maximizes
There is now enough information to answer the question asked at the beginning of this section.
Consider the expression for from the second statement in Proposition 21. If is odd, then the index must be odd, and the sign of the summand is always positive. Since is non-negative, it follows that the maximum value is obtained when the sum has the largest possible number of non-zero terms. This happens when contains all the divisors of . Thus the first statement of Theorem 2 is true.
If is even, then the sum for from Proposition 21 can contain negative terms. This happens when the 2-adic valuations of and are the same non-zero value. Thus the value of is maximized when the set of divisors of is the set of divisors of , except for the ones with as the 2-adic valuation. This explains statements 2 and 3 of Theorem 2.
4 Relationship with Necklaces
4.1 Some Results Regarding Periodic Necklaces
As mentioned in the introduction, a major goal of this paper is to find a way to related partitions of arbitrary elements of into distinct parts to certain subsets of bi-color necklaces with beads, even for the case when is even. In this section, it will be shown that the results developed thus far allow one to achieve that goal.
Key to this outcome is the concept of the “frequency” of a necklace, which was already described in the introduction. A necklace with frequency equal to 1 is also said to be aperiodic. As is well-known, there is a bijection between binary Lyndon words and aperiodic bi-color necklaces. An all-black or all-white necklace has as the frequency, where is the number of beads in the necklace.
If the frequency of a necklace is not equal to 1, one can always cut the necklace at equally-spaced points to create equal segments, and then stitch the two sides of each segment together to form equivalent smaller necklaces. Alternatively, one can take equivalent aperiodic necklaces, convert them into equivalent segments by cutting at the same point, and stitch the segments together to create a new larger necklace with as the new frequency.
Definition 23**.**
Let and be integers such that and . Also let be any set of positive integers. Then is defined as the set of bi-color necklaces of black beads, white beads, and frequency equal to one of the members of .
Note that is the union of the disjoint sets , …, , such that . When is the set of all divisors of the positive integer , will be written as .
Proposition 24**.**
Let , , and be positive integers such that , then:
[TABLE]
Proof.
is non-empty if and only if shares common factors with , and so can also be written as . The number of necklaces within the set is then clearly the sum of over all divisors of . But using the necklace cutting argument described previously. ∎
Proposition 25**.**
Let , , and be positive integers such that , then:
[TABLE]
Proof.
Applying Proposition 20 to the right hand side gives:
[TABLE]
The inner summation is known to be equal to the number of aperiodic bi-color necklaces with black beads and white beads [3], which according to the annotation of this paper is . Thus the right hand side is turned into the form . This is equal to according to Proposition 24. ∎
4.2 Proof of Theorem 3
This theorem can be shown by comparing Proposition 25 with Theorem 1. One can easily notice that the two equations would have been the same if not for the sign factor in Theorem 1.
Indeed, they are the same when the said sign is always positive. This happens when is odd, or when is even but the 2-adic valuation of is greater than that of . Thus the first statement in Theorem 3 is true.
If , then can be written as , where is odd and . Also, let and . Subtracting Theorem 1 from Proposition 25 gives:
[TABLE]
It is a standard property of Ramanujan’s sum that when . Thus the second statement in Theorem 3 is properly explained.
When , . The equation above becomes , where the notation means each member of is multiplied by . Since in this case, the sum above can be written as . This shows that the third statement in Theorem 3 is true.
Finally, when , then , and one has . Note that really can be written as as the allowed frequencies are limited by the divisors of and so cannot be divisible by . Then , which can be written as .
4.3 Revisiting the Partition of the Identity Element
It is a corollary of the first statement of Theorem 3 that the set of necklaces of beads is equal to the number of partitions of the identity element of the group with distinct parts when is odd. This confirms the findings from previous authors. For the case when is even, it is now clear that there is still a bijection between the partitions counted by and some subset of the set of necklaces of beads. It is just that one has to avoid counting the necklaces with frequency , where whenever .
As an illustration, consider the case . The number of possible necklaces is 36, and the number of partitions of the identity element of with distinct parts is 32. To account for the difference of 4, one can consult Theorem 3 and notice that the necklaces with frequency equal to 2 should not be counted when and , necklaces with frequency equal to 4 should not be counted with , and necklaces with frequency equal to 8 should not be counted when . There is one necklace meeting each of these 4 descriptions, as desired.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] R. Stanley. Enumerative Combinatorics. Combridge Unsiversity Press, 2011.
- 2[2] S. H. Chan. A bijection between necklaces and multisets with divisible subset sum. The Electronic Journal of Combinatorics , Vol. 26, Issue 1, 2019.
- 3[3] R. Meštrović. Different classes of binary necklaces and a combinatorial method for their enumerations. ar Xiv:804.00992[math.CO] , 2018.
