Search arXivSearch

arXiv · 2205.04988

Computation of $P(n,m)$, the Number of Integer Partitions of $n$ into Exactly $m$ Parts

Abstract

Two algorithms for computing $P(n,m)$, the number of integer partitions of $n$ into exactly $m$ parts, are described, and using a combination of these two algorithms, the resulting algorithm is $O(n^{3/2})$. The second algorithm uses a list of $P(n)$, the number of integer partitions of $n$, which is cached and therefore needs to be computed only once. Computing this list is also $O(n^{3/2})$. With these algorithms also $Q(n,m)$, the number of integer partitions of $n$ into exactly $m$ distinct parts, and a list of $Q(n)$, the number of integer partitions of $n$ into distinct parts, can be computed in $O(n^{3/2})$. A list of $P(n,1)..P(n,n)$ and $P(m,m)..P(n,m)$ can be computed in $O(n^2)$. A computer algebra program is listed implementing these algorithms, and some timings of this program are provided.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

M. J. Kronenburg. 2022-06-06. Computation of $P(n,m)$, the Number of Integer Partitions of $n$ into Exactly $m$ Parts. https://arxiv.org/abs/2205.04988

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

On single-variable Witten zeta functions of rank two and three

By introducing a novel integration kernel for the Mellin transform, we uncover many previously unknown and intriguing properties of the Witten zeta functions of rank two and three. Detailed results concerning their pole locations, residues, and special values are obtained. We propose a non-trivial conjecture regarding their derivatives at the origin, which seems to encode deep information about the root system. We also discuss their behavior at negative integers, highlighting a connection with Eisenstein series and a $p$-adic observation.

math.NT

On graded Lie algebras associated to once-punctured elliptic curves with complex multiplication

We study a graded Lie algebra arising from the Galois action on the pro-$p$ fundamental group of a once-punctured elliptic curve with complex multiplication. Among other things, we provide a minimal generating set of the rationalized Lie algebra under suitable assumptions. The proof is based on a slight variant of the theory of weighted completion of profinite groups developed by Hain and Matsumoto.

math.NT

Burgess-type volume dependent bounds for character sums over $\mathbb{F}_{p^n}$

We establish a Burgess-type bound for short multiplicative character sums over finite fields $\mathbb{F}_{p^n}$. Let \[ B=\left\{\sum_{i=1}^{n}x_iω_i: N_i+1\le x_i\le N_i+H_i,1\le i\le n\right\}\subseteq\mathbb{F}_{p^n}, \] where $1\le H_i\le p$ for all $1\le i\le n$, and the side lengths satisfy $H_1\le H_2\le\cdots\le H_n.$ We prove that if the side lengths satisfy certain lower bounds in terms of the two largest side lengths, then a nontrivial cancellation occurs in the character sum over the boxes. This generalizes the work of Gabdullin \cite{GB} in dimensions $n=2,3$ to arbitrary dimension. This also generalizes the character sum estimate of Konyagin \cite{Kon} where each of the side lengths of the boxes are greater than $p^{1/4}$. The proof combines techniques from the geometry of numbers, multiplicative energy estimates, and Katz's bounds for multiplicative character sums.

math.NT