Abstract
The Josephus Problem is a mathematical counting-out problem with a grim description: given a group of n persons arranged in a circle under the edict that every kth person will be executed going around the circle until only one remains, find the position in which you should stand in order to be the last survivor. Let be the order in which the first person is executed on counting when . In this paper, we consider the sequence in order to introduce new expressions for the generating functions of the number of strict plane partitions and the number of symmetric plane partitions. This approach allows us to express the number of strict plane partitions of n and the number of symmetric plane partitions of n as sums over partitions of n in terms of binomial coefficients involving . Also, we introduce interpretations for the strict plane partitions and the symmetric plane partitions in terms of colored partitions. Connections between the sum of the divisors’ functions and are provided in this context.
MSC:
11P81; 11P82; 05A19; 05A20
1. Introduction
According to ([], pp. 341–366, 387–391), in the Romano–Jewish conflict of 67 A. D., the Romans took the town Jotapata which Flavius Josephus was commanding. Josephus and 40 of his comrades escaped and were trapped in a cave. Fearing capture, they decided to kill themselves. Josephus and a friend did not agree with this proposal but did not dare to speak out openly against it. They agreed that they should arrange them in a circle and that, always counting in the same sense around the circle, every third man should be killed until there was only one survivor who would kill himself. By choosing positions 31 and 16 in the circle, Josephus and his friend saved their lives and joined the Romans, i.e.,
In mathematics and computer science, the Josephus problem is usually stated as follows: given a group of n men arranged in a circle under the edict that every kth man will be executed going around the circle until only one remains, find the position in which you should stand in order to be the last survivor.
We are interested in the case of the Josephus problem. Thus, for , we denote by the order in which the first person is executed on counting. For example, if there are persons to begin with, they are executed in the following order:
So, the first person is eliminated as number 4. Therefore, .
We remark that the sequence
is known and can be seen in the On-Line Encyclopedia of Integer Sequence ([], A225381). The sequence can be defined as follows:
with the initial condition . When n is odd, it is clear that . We introduced the sequence to provide new formulae for two types of plane partitions.
Recall that a plane partition of the positive integer n is a 2-dimensional array of non-negative integers such that
which is weakly decreasing in rows and columns:
It can be seen as the filling of a Young diagram with weakly decreasing rows and columns, where the sum of all these numbers equals n. This is a natural generalization of the concept of classical partitions []. Different configurations are counted as different plane partitions. The plane partitions of 4 are presented in Figure 1.

Figure 1.
The plane partitions of 4.
Recently, Merca and Radu [] considered the specialization of complete homogeneous symmetric functions and provided a new formula for , which is the number of plane partitions of n:
As can be seen, this formula expresses the number of plane partitions of n in terms of binomial coefficients as a sum over all the partitions of n, taking into account the multiplicity of the parts. They obtained similar results for the number of strict plane partitions of n and the number of symmetric plane partitions of n. In this paper, we consider the sequence and obtain new formulas for the number of strict plane partitions of n and the number of symmetric plane partitions of n as sums over partitions of n.
2. Strict Plane Partitions
Recall that a strict plane partition of the positive integer n is a plane partition of n which is decreasing in rows, i.e.,
In [], we denoted by the number of strict plane partitions of n and, for convenience, we defined . The strict plane partitions of 4 are presented in Figure 2. We see that .

Figure 2.
The strict plane partitions of 4.
According to Gordon and Houten [], the generating function for the number of strict plane partitions of n is given by
and the expansion starts as
For any positive integer m, we denote by the number of m-tuples of strict plane partitions of non-negative integers where . It is clear that and
For , we define the as follows:
In [], Merca and Radu considered specializations of complete homogeneous symmetric functions and provide the following formula for .
Theorem 1.
For , and ,
In this section, we shall provide another decomposition of as a sum over partitions of n in terms of binomial coefficients. This time, in addition to the multiplicity of a part of size k, we also need to consider .
Theorem 2.
For , and ,
where
Proof.
Applying elementary techniques in the theory of partitions [], we obtain the following generating function:
In order to prove our theorem, we consider the identity
In addition, by (4), with q replaced by , we obtain
For , considering (5), the generating function of can be rewritten as follows:
where we have invoked Cauchy multiplication of the power series. □
The cases and of Theorem 2 reads as follows.
Corollary 1.
For ,
The sum in the right-hand side of this equation runs over all the partitions of n, but not all terms are nonzero. Since for we have , in this sum, we can consider only the partitions of n into, at most, the copy of parts of size k, for each . For example, the partitions of 4 that satisfy this condition can be rewritten as:
So, the case of Corollary 1 reads as follows:
The cases and of Theorem 2 gives the following identity.
Corollary 2.
For ,
Considering the partitions of 4 with the property , the case of Corollary 2 reads as follows:
On the other hand, according to the expansion (1), we can write:
By Corollary 2, we easily deduce the following congruence identity.
Corollary 3.
For ,
where if x is not a positive integer.
The following identity can be easily derived as an immediate consequence of Theorems 1 and 2.
Corollary 4.
For , and ,
3. Symmetric Plane Partitions
A symmetric plane partition of the positive integer n is a plane partition of n such that
We denote by the number of symmetric plane partitions of n. The symmetric plane partitions of 6 are presented in Figure 3. We see that . For convenience, we define .

Figure 3.
The symmetric plane partitions of 6.
According to Gordon [], the generating function for the number of symmetric plane partitions of n is given by
where
The expansion starts as
We recall that the number of symmetric plane partitions of n is equal to the number of strict plane partitions of n into odd parts []. The strict plane partitions of 6 into odd parts are presented in Figure 4.

Figure 4.
The strict plane partitions of 6 into odd parts.
For any positive integer m, we denote by the number of m-tuples of symmetric plane partitions of non-negative integers where . It is clear that and
For , we define the as follows:
In [], Merca and Radu consider specializations of complete homogeneous symmetric functions and provide the following formula for .
Theorem 3.
For , and ,
In this section, we shall provide another decomposition of as a sum over partitions of n in terms of binomial coefficients. This time, in addition to the multiplicity of a part of size k, we also need the sequence defined as follows:
where is the sequence introduced in the previous section in connection with the Josephus problem.
Theorem 4.
For , and ,
where
Proof.
The proof of this theorem is quite similar to the proof of Theorem 2. Therefore, we omit some details:
where we have invoked Cauchy multiplication of the power series. □
In analogy with Corollary 1, the cases and of Theorem 4 can be written as follows.
Corollary 5.
For ,
The sum in the right-hand side of this equation runs over all the partitions of n, but not all terms are nonzero. Since for we have , in this sum, we can consider only the partitions of n into, at most, the copy of parts of size k, for each . For example, the partitions of 6 that satisfy this condition can be rewritten as:
So, the case of Corollary 5 reads as follows:
In analogy with Corollary 2, the cases and of Theorem 4 gives the following identity.
Corollary 6.
For ,
For example, the partitions of 6 with the property are:
Thus, the case of Corollary 6 reads as follows:
On the other hand, according to expansion (9), we can write:
By Corollary 6, in analogy with Corollary 3, we easily deduce the following congruence identity.
Corollary 7.
For ,
where if x is not a positive integer.
As a consequence of Theorems 3 and 4, in analogy with Corollary 4, we remark the following identity.
Corollary 8.
For , and ,
4. Connections between Divisors and
This section is inspired by the following well-known connection between plane partitions and divisors
where, for a real or complex number z, the sum of positive divisors’ function is defined as the sum of the zth powers of the positive divisors of n, i.e.,
It is well known that the generating function of is given by the following Lambert series:
Related to strict plane partitions, we remark the following analogous result.
Theorem 5.
Let n be a positive integer. Then
where
Proof.
The logarithmic differentiation of the generating function of can be written as:
On the other hand, we have:
Thus, we deduce that
where we have invoked Cauchy multiplication of two power series. This concludes the proof. □
The sum of the divisors’ function can be expressed in terms of as we can see in the following result.
Theorem 6.
Let n be a positive integer. Then
Proof.
Considering the generation of , we can write:
By this relation, with replaced by q, we obtain:
The generating function of can be written as follows:
This concludes the proof. □
In this context, we remark the following connection between and .
Theorem 7.
Let n be a positive integer. Then
Proof.
For example, for , it has:
The case of Theorem 6 is given by:
Taking into account Theorem 7, we can write:
In analogy with Theorem 5, we have the following result.
Theorem 8.
Let n be a positive integer. Then
where
Proof.
The proof is quite similar to the proof of Theorem 5 and invokes the logarithmic differentiation of (8). We omit the details. □
In analogy with Theorem 6, we have the following representation of in terms of the sum of positive divisors’ function .
Theorem 9.
Let n be a positive integer. Then
Proof.
In analogy with Theorem 7, we have the following connection between and .
Theorem 10.
Let n be a positive integer. Then
Proof.
The proof is quite similar to the proof of Theorem 7 and invokes the following expression for the generating function of :
This follows from (11) with m replaced by 1 and r replaced by 0. We omit the details. □
For example, for , it has:
The case of Theorem 9 is given by:
Taking into account Theorem 10, we can write:
5. Concluding Remarks
An n-color partition of a positive integer m is a partition in which a part of size n can come in n different colors denoted by subscripts: . The parts satisfy the order:
We remark that n-color partitions were introduced to mathematics in 1987 by A. K. Agarwal and G. E. Andrews []. For example, there are thirteen n-color partitions of 4:
According to [], the plane partitions and the n-color partitions have a common generating function. This is equivalent to the following result.
Theorem 11.
The number of plane partitions of m equals the number of n-color partitions of m.
Similarly, we introduce the following definition.
Definition 1.
Let n be a positive integer.
- 1.
- A -color partition of the first kind of a positive integer m is a partition in which a part of size n can come in different colors denoted by subscripts: . The parts satisfy the order:
- 2.
- A -color partition of the second kind of a positive integer m is a partition in which a part of size can come in different colors denoted by subscripts: . The parts satisfy the order:
We denote by the number of -color partitions of the first kind of m into distinct parts. For convenience, we define . For example, there are seven -color partitions of the first kind into distinct parts of 4:
We denote by the number of -color partitions of the second kind of m into distinct parts. For convenience, we define . For example, there are six -color partitions of the second kind into distinct parts of 6:
Applying elementary techniques in the theory of partitions [], we obtain the following generating functions:
and
In this way, we deduce the following results.
Theorem 12.
The number of strict plane partitions of m equals the number of -color partitions of the first kind into distinct parts of m.
Theorem 13.
The number of symmetric plane partitions of m equals the number of -color partitions of the second kind into distinct parts of m.
Combinatorial proofs of Theorems 12 and 13 would be very interesting.
Funding
This research received no external funding.
Data Availability Statement
Data are contained within the article.
Conflicts of Interest
The author declares no conflict of interest.
References
- Josephus, F. The Jewish War, Book III; Thackeray, H.S., Translator; Heinemann: Portsmouth, NH, USA, 1927. [Google Scholar]
- Sloane, N.J.A. The On-Line Enciclopedia of Integer Sequences. Available online: http://oeis.org (accessed on 20 October 2023).
- Andrews, G.E. The Theory of Partitions; Reprint of the 1976 Original; Cambridge Mathematical Library, Cambridge University Press: Cambridge, UK, 1998. [Google Scholar]
- Merca, M.; Radu, I.-I. Plane partitions as sums over partitions. Symmetry 2023, 15, 1820. [Google Scholar] [CrossRef]
- Gordon, B.; Houten, L. Notes on plane partitions, II. J. Combin. Theory 1968, 4, 81–99. [Google Scholar] [CrossRef]
- Gordon, B. Notes on plane partitions, V. J. Combin. Theory Ser. B 1971, 11, 157–168. [Google Scholar] [CrossRef]
- Agarwal, A.K.; Andrews, G.E. Rogers-Rarnanujam Identities for Partitions with “N Copies of N”. J. Combin. Theory Ser. A 1987, 45, 40–49. [Google Scholar] [CrossRef]
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. |
© 2023 by the author. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).