Ann. Acad. Rom. Sci.  
Ser. Math. Appl.  
ISSN 2066-6594  
Vol. 18, No. 2/2026  
PARTITION FUNCTIONS THAT REPEL  
PERFECT-POWERS∗  
Ken Ono†  
Communicated by M. Merca  
DOI  
10.56082/annalsarscimath.2026.2.31  
Abstract  
A conjecture by Sun states that the partition function p(n), for  
n > 1, is never a perfect power. Recent work by Merca et al. proposes  
generalizations of perfect-power repulsion for p(n). In this note, we  
prove these generalizations for the functions pB(n), which count the  
number of partitions of n with the largest part B. If B 4 and  
k 3, with k - (B 1), then we prove that there are only finitely many  
pairs (n, m) for which |pB(n)mk| ≤ d. These results support Sun and  
Merca et al.’s conjectures, as pB(n) p(n) when B +. To prove  
this, we reduce the problem to Siegel’s Theorem, which guarantees the  
finiteness of integral points on curves with genus 1.  
Keywords: partition function, perfect powers.  
MSC: 11P82, 05A17, 05A20.  
1 Introduction and statement of results  
The distribution of perfect powers is a classic topic in number theory. A  
milestone is Catalan’s conjecture (1844), proven by Mih˘ailescu in 2002 [5],  
which asserts that the Diophantine equation  
xa yb = 1  
(x, y, a, b > 1)  
Accepted for publication on October 23, 2025  
ken.ono691@virginia.edu, Department of Mathematics, University of Virginia,  
Charlottesville, VA 22904, USA and Academy of Romanian Scientists, 050044 Bucharest,  
Romania  
31  
Partition functions that repel perfect-powers  
32  
only has the single solution (x, y, a, b) = (3, 2, 2, 3), and so the only con-  
secutive perfect powers are 8 and 9. Building on this classical narrative,  
attention has shifted from perfect powers to their relationship with number  
theoretic functions. Sun [6, 7] proposed that partition numbers p(n) where  
n > 1, are never perfect-powers. This has led to further developments by  
Merca et al. [4].  
We recall these conjectures. Throughout, p(n) denotes the number of  
(unrestricted) integer partitions of n, where p(0) = 1. The generating func-  
tion for this function is given by the Euler product  
X
Y
1
P(q) =  
p(n)qn =  
.
(1)  
n=1 1 qn  
n=0  
An integer is a perfect power if it has the form mk with integers m 2 and  
k 2. For a fixed exponent k 2, we define  
k(n) := min | p(n) mk |  
(2)  
m0  
for the distance from p(n) to the nearest kth power. The works of Sun [6,7]  
and Merca et al. [4] concern the following conjecture.  
Conjecture (Sun, Merca et al.). The partition function p(n) repels perfect-  
powers.  
1. (No perfect-powers) For every n 2 and k 2, p(n) = mk for all  
integers m 2.  
2. (Perfect-power Repulsion) For k 2 and d 0, at most finitely many  
n satisfy k(n) d.  
Remark 1. We note that these questions are similar in flavor to the work  
of Tengely and Ulas [8] on equal values of special partition functions that  
have Diophantine interpretations.  
We prove exact analogs of the conjecture for the sequence of partition  
functions pB(n) that converges to p(n). Specifically, for B 2, we consider  
the truncated Euler products  
B
X
Y
1
PB(q) =  
pB(n) qn  
=
.
(3)  
m=1 1 qm  
n0  
One sees that pB(n) is the number of partitions of n whose largest part is at  
most B. Moreover, we also have that pB(n) is the number of partitions of n  
 
K. Ono  
33  
with at most B parts by considering the usual Ferrers board conjugation. Of  
course, we have limB+pB(n) = p(n). In analogy with ∆k(n), we define  
(B)  
k
k
(n) := min pB(n) m  
,
(4)  
m0  
which is the distance between pB(n) and the nearest kth power. We prove  
the following theorem that confirms perfect-power repulsion for these func-  
tions.  
Theorem 1. If B 4 and k 3, with k - (B 1), then the following are  
true.  
1. There are at most finitely many n for which pB(n) = mk.  
2. If d 0, then we have  
#{ n 1 : (kB)(n) d } < +.  
Example 1. The partition function p2(n) does not repel perfect-powers. To  
see this, we note that  
ꢂꢁ  
X
X
X
1
p2(n) qn  
=
=
qa  
q2b  
.
(1 q)(1 q2)  
n0  
a0  
b0  
Taking the Cauchy product gives  
X
1
=
#{(a, b) Z20 : a + 2b = n} qn.  
(1 q)(1 q2)  
n0  
For a fixed n, writing n = a + 2b with a, b 0 is the same as choosing  
b = 0, 1, . . . , bn/2c, and then setting a = n 2b. Therefore, we have that  
p2(n) = bn/2c + 1  
(n 0).  
In particular, for any integer m 1 and any k 2, if we take n := 2(mk1),  
then  
j
k
2(mk 1)  
p2(n) =  
+ 1 = (mk 1) + 1 = mk.  
2
Thus, p2(n) takes every perfect kth power.  
 
Partition functions that repel perfect-powers  
34  
Example 2. If B = 3, then we have  
X
1
P3(q) =  
=
p3(n)qn,  
(1 q)(1 q2)(1 q3)  
n0  
Along each residue class n r (mod 6), we have  
p3(6t + r) = Qr(t) (t Z0),  
where the six quadratic polynomials Qr Z[t] are  
Q0(t) = 3t2 + 3t + 1,  
Q1(t) = 3t2 + 4t + 1,  
Q2(t) = 3t2 + 5t + 2,  
Q3(t) = 3t2 + 6t + 3,  
Q4(t) = 3t2 + 7t + 4,  
Q5(t) = 3t2 + 8t + 5.  
For r ∈ {0, 1, 4, 5}, there are infinitely many t 0 such that Qr(t) is a  
perfect square. Consequently, p3(n) is a square for infinitely many n in each  
of the residue classes r ∈ {0, 1, 4, 5} (mod 6). Each diophantine equation  
Qr(t) = m2 reduces to a Pell-type equation in (x, m) with discriminant 12  
after completing the square in t.  
(Case r = 0) From 3t2 + 3t + 1 = m2,  
(6t + 3)2 12m2 = 3.  
This is the negative Pell equation x2 12m2 = 3 (with x = 6t + 3), which  
has infinitely many integer solutions. For instance, starting with (x, m) =  
(3, 1) and multiplying by the fundamental unit 7 + 2 12 yields an infinite  
family. The first few t are 0, 7, 104, 1455, . . ., giving  
p3(6t) ∈ {1, 132, 1812, 25212, . . .}.  
(Case r = 1) From 3t2 + 4t + 1 = m2,  
(6t + 4)2 12m2 = 4.  
The Pell-type equation x2 12m2 = 4 has infinitely many solutions; e.g.  
t = 0, 8, 120, 1680, . . . produce p3(6t + 1) = 1, 152, 2092, 29112, . . ..  
(Case r = 4) From 3t2 + 7t + 4 = m2,  
(6t + 7)2 12m2 = 1,  
the (positive) Pell equation with fundamental solution (x, m) = (7, 2), hence  
infinitely many solutions. We obtain t = 0, 15, 224, . . . and p3(6t + 4) =  
22, 282, 3902, . . ..  
K. Ono  
35  
(Case r = 5) From 3t2 + 8t + 5 = m2,  
(6t + 8)2 12m2 = 4,  
again yielding infinitely many solutions; e.g. t = 1, 31, 449, . . . and p3(6t +  
5) = 42, 562, 7802, . . ..  
In each case the corresponding Pell or Pell-type equation has infinitely  
many solutions because the unit group of Z[ 12] is infinite; iterating by the  
fundamental unit 7 + 2 12 produces an infinite family. Therefore p3(n)  
assumes square values infinitely often in the residue classes n 0, 1, 4, 5  
(mod 6).  
To prove Theorem 1, we use the fact that the partition functions pB(n)  
are quasipolynomial for large n, meaning each behaves like fixed polynomials  
along specific arithmetic progressions. This regularity allows us to reduce  
the conjectures to curves with genus 1, which then allows us to appeal to  
Siegel’s Theorem. Summing over these progressions implies Theorem 1.  
2 Nuts and bolts and the proof of Theorem 1  
This section gathers the necessary structural inputs for our partition func-  
tion perfect-power repulsion theorem and then demonstrates Theorem 1.  
Subsection 2.1 records the quasipolynomial description of pB(n) on residue  
classes, its growth, discrete spacing, and includes two Diophantine lemmas  
that manage the proximity to perfect kth powers. Subsection 2.2 combines  
these tools to prove Theorem 1.  
2.1  
Nuts and bolts  
We start with the quasipolynomial (QP) structure for the counting func-  
tion pB(n) and the resulting growth and spacing on arithmetic progressions.  
Throughout, we assume that B 4 and k 3 are fixed integers, where  
k - (B 1).  
Lemma 1 (QP structure, degree, and spacing). If we let L := lcm(1, 2, . . . , B),  
then there are polynomials Q0, . . . , QL1 Q[x] of the same degree B 1  
with positive leading coefficients such that for all n we have  
pB(Ln + r) = Qr(n)  
(0 r < L).  
   
Partition functions that repel perfect-powers  
36  
Moreover, for each r, one has  
Qr(n) = αr nB1 + O(nB2  
)
(αr > 0),  
Qr(n + 1) Qr(n) = (B 1)αr nB2 + O(nB3).  
Proof. Consider the generating function (3)  
B
X
Y
1
PB(q) =  
pB(n)qn =  
,
m=1 1 qm  
n0  
and let L := lcm(1, 2, . . . , B). All of the poles of PB(q) lie at the Lth  
roots of unity ζ. The pole at ζ = 1 has order B, and every other pole has  
order at most B 1. Therefore, we can write the (finite) partial fraction  
decomposition  
e(ζ)  
X X  
Rζ,j(q)  
(1 ζq)j  
PB(q) =  
,
ζL=1  
j=1  
where Rζ,j(q) are polynomials and e(ζ) B, with e(1) = B. Extracting  
coefficients via  
N + j 1  
[qN ](1 ζq)j = ζ N  
,
j 1  
we obtain  
e(ζ)  
X X  
pB(N) =  
ζ N Pζ,j(N),  
ζL=1  
j=1  
where each Pζ,j Q[N] has degree at most j1. Fixing a residue class N r  
(mod L), then we have that each ζ N = ζ r is constant, and we conclude that  
pB(Ln + r) agrees (for all n 0) with a polynomial Qr(n) Q[n] of degree  
at most B 1.  
The degree is exactly B 1 with positive leading coefficient, because the  
only term contributing in top degree is the pole at ζ = 1 and j = B. Near  
q = 1, we have  
B
Y
1
1
· (1 q)B  
(q 1),  
Q
B
m=1 1 qm  
m=1 m  
NB1  
N+B1  
so [qN ](1 q)B  
=
. Therefore, the leading coefficient  
B1  
(B 1)!  
equals  
LB1  
αr =  
> 0.  
B! (B 1)!  
K. Ono  
37  
Finally, if Qr(n) = αrnB1 + O(nB2), then the discrete difference satisfies  
Qr(n + 1) Qr(n) = (B 1)αr nB2 + O(nB3),  
by a one-term binomial expansion. This proves the claims.  
The previous lemma is crucial for the proof of Theorem 1. The next little  
lemma establishes that the polynomials Qr are not simple shifts of perfect  
powers.  
Lemma 2. Let Q(x) Q[x] be a polynomial of degree d 2 and fix an  
integer k 2. Define  
n
Tk(Q) :=  
t Q : a Q×, R(x) Q[x] with deg R 1  
o
and Q(x) t = a R(x)k  
.
Then Tk(Q) is finite. In fact, we have that  
Tk(Q) ⊆  
Q(ξ) : ξ Q and Q0(ξ) = 0 ,  
and so |Tk(Q)| ≤ d 1.  
Proof. Suppose Q(x) t = a R(x)k with a Q×, deg R 1, and k 2.  
Differentiating gives  
Q0(x) = a k R(x)k1R0(x).  
Hence Q(x) t and Q0(x) have the common nonconstant factor R(x)k1  
,
so Q(x) t has a multiple root. Thus, there is ξ Q with Q(ξ) = t and  
Q0(ξ) = 0 (i.e. t is a critical value of Q). Since Q0 has degree d 1, there  
are at most d 1 such values.  
Corollary 1. For any fixed X 0, we have  
|Tk(Q) ∩ { t Q : |t| ≤ X }| < +.  
To prove Theorem 1, we require the following notions about polynomials  
Q Z[x]. We say Q is generic (relative to k 2) if Q(x) = a R(x)k for every  
a Q× and R Q[x]. Otherwise, we say that Q is power-type (relative to k).  
The next lemma is a Diophantine inputs. The first gives finiteness of perfect  
and near-perfect kth powers along any progression whose quasipolynomial  
piece is generic. The second lemma gives a pointwise lower bound in the  
power-type case.  
   
Partition functions that repel perfect-powers  
38  
Lemma 3. Let Q(x) Q[x] have degree d 2, let k 3 be an integer,  
and fix D Z0. Assume that for every t Q with |t| ≤ D the polynomial  
Q(x)t is not of the form a·R(x)k with a Q× and nonconstant R Q[x].  
Then we have  
#{(n, m) Z0 × Z : |Q(n) mk| ≤ D} < .  
Moreover, except possibly in the pair (d, k) = (2, 2), this set is bounded in  
terms of Q, k, D.  
1
M
Proof. Write Q =  
Qe with M Z  
and Qe Z[x] primitive. Then  
1  
k
|Q(n) mk| ≤ D  
⇐⇒  
Qe(n) M m  
MD.  
Hence, it suffices to prove finiteness, for each fixed integer t with |t| ≤ MD,  
of the Diophantine equation  
M mk = Qe(n) t.  
(5)  
Fix such a t. Factor M as M = uk b0 with u Z  
and b0 Z  
k-th-power-  
1  
1  
free. Then every integer solution (n, m) to (5) yields an integral solution  
(X, Y ) = (n, u m) of the superelliptic equation  
b0 Y k = Qe(X) t.  
(6)  
Conversely, any integral solution (X, Y ) to (6) with u | Y corresponds to a  
solution (n, m) = (X, Y/u) of (5). Therefore, the set of solutions to (5) is  
finite if and only if the set of integral points (X, Y ) Z2 on (6) is finite.  
Set d = deg Qe = deg Q 2 and, for each fixed t Z, define  
rt := #{ x Q : Qe(x) = t }  
(counted without multiplicity). Note that the set of t with rt < d is finite  
(the critical values of Qe).  
Case rt = 1. If Qe(X)t = c (X a)d with c Z\{0} and d = deg Qe 2,  
then (6) becomes  
b0 Y k = c (X a)d.  
Write u = gcd(k, d) and k = uk1, d = ud1 with gcd(k1, d1) = 1. If k | d  
and c/b0 is a kth power, then Qe(X) t would be a constant times a kth  
power, contrary to the hypothesis. Otherwise, by standard finiteness results  
for Thue/Thue-Mahler type equations (for example, see Chapter 9 of [1]),  
this Diophantine equation has only finitely many integer solutions.  
     
K. Ono  
39  
Case rt 3. Then the smooth projective model of (6) has genus g 1 (see,  
e.g., the standard genus formula for superelliptic curves in §IV of [2]). By  
Siegel’s theorem (see Chapter 8 of [3]), (6) has only finitely many integral  
points.  
Case rt = 2. Write Qe(X) t = c(X a)2(X b) with a = b. If k 3, (6)  
is a Thue/Thue-Mahler-type equation, and standard results (for example,  
see Chapter 9 of [1]) imply finiteness of integral solutions.  
Case (d, k) = (2, 2). This is the classical conic case, which may have in-  
finitely many integral points (Pell-type).  
When g 1, Siegel’s theorem on integral points (for example, see Chap-  
ter 8 of [3]) implies that the set of integral solutions (X, Y ) Z2 to (6)  
is finite. Because there are only finitely many t with |t| ≤ MD, taking  
the union over these t shows that there are only finitely many (n, m) with  
|Q(n) mk| ≤ D.  
2.2  
Proof of Theorem 1  
By Lemma 1, there is a period L and polynomials Q0, . . . , QL1 Q[X] of  
degree B 1 with positive leading coefficients such that pB(Ln+r) = Qr(n)  
for 0 r < L. It suffices to prove that for each fixed residue class r and  
each fixed d 0, the set  
Sr,d :=  
(n, m) Z0 × Z : |Qr(n) mk| ≤ d  
is finite; then a finite union over r gives (ii), and taking d = 0 gives (i).  
Fix r and d 0. For each integer t with |t| ≤ d consider the Diophantine  
equation  
Qr(n) mk = t,  
n Z0, m Z.  
(7)  
Let  
Tr(d) :=  
n
t Z : |t| ≤ d and a Q×, R Q[X] nonconstant  
o
with Qr(X) t = a R(X)k  
.
By Lemma 2 and Corollary 1, Tr(d) is finite.  
Case of Non-exceptional shifts. For every t ∈ {−d, d + 1, . . . , d} \ Tr(d),  
the polynomial Qr(X) t is not a constant times a kth power. Choose  
b0 Z>0 so that Qe(X) := b0Qr(X) Z[X]. Then any solution of (7) gives  
an integer solution of  
b0 mk = Qe(n) b0t.  
   
Partition functions that repel perfect-powers  
40  
By Lemma 3 (applied with the fixed polynomial Qe(X)b0t), there are only  
finitely many such integer solutions. Hence, #{(n, m) : Qr(n) mk = t} <  
for all non-exceptional t with |t| ≤ d.  
Case of exceptional shifts. Now fix t Tr(d). As above, pass to Qe(X) =  
b0Qr(X) Z[X] and consider  
b0 mk = Qe(n) b0t.  
Let rt denote the number of distinct roots of Qe(X) b0t in Q.  
If rt 3, then the affine curve b0Y k = Qe(X) b0t has the genus  
1, so by Siegel’s theorem (for example, see Chapter 8 of [3]) there are only  
finitely many integer points.  
If rt = 2, standard Thue-Mahler finiteness applies (for example, see  
Chapter 9 of [1]) so there are only finitely many integer solutions.  
If rt = 1, then Qe(X) b0t = c (X a)d for some a, c Z, c = 0,  
with d = deg Qe = B 1 3. Dividing by b0 gives  
c
Qr(X) t =  
(X a)d.  
b0  
Since k - d = B 1 by hypothesis, the Diophantine equation b0 mk  
=
c (na)d is of Thue/Thue-Mahler type with coprime exponents and therefore  
has only finitely many integer solutions (for example, see Chapter 9 of [1]).  
Therefore, the case rt = 1 also yields at most finitely many solutions.  
Combining the three subcases, for each t Tr(d) the equation (7) has  
only finitely many integer solutions. Therefore, Sr,d is the finite union, over  
the finitely many t ∈ {−d, . . . , d}, of finite sets. This proves that Sr,d is  
finite. As noted at the start, summing over r establishes (ii), and taking  
d = 0 gives (i).   
Acknowledgements. The author thanks Mircea Merca, Wei-Lun Tsai,  
and Maciej Ulas for their comments on an earlier version of this note. The  
author thanks the Thomas Jefferson Fund, the NSF (DMS-2002265 and  
DMS-2055118) and the Simons Foundation (SFI-MPS-TSM-00013279) for  
their generous support. The author is an Honorary Member of the Academy  
of Romanian Scientists.  
References  
[1] J.-H. Evertse and K. Gy˝ory, Unit Equations in Diophantine Number  
Theory, Cambridge Studies in Advanced Mathematics, Vol. 146, Cam-  
bridge Univ. Press, 2015.  
 
K. Ono  
41  
[2] P. Griffiths, Introduction to Algebraic Curves, Trans. Math. Monog.,  
Vol. 76, Amer. Math. Soc., Providence, 1989.  
[3] S. Lang, Fundamentals of Diophantine Geometry, Springer-Verlag, New  
York, 1983.  
[4] M. Merca, K. Ono and W.-L. Tsai, Do perfect powers repel partition  
numbers?, Ann. Acad. Rom. Sci., Ser. Math. Appl. 17 (2025), 95-105.  
[5] P. Mih˘ailescu, Primary cyclotomic units and a proof of Catalans con-  
jecture, J. Reine Angew. Math. 572 (2004), 167-195.  
[6] Z.-W. Sun, Can the partition function p(n) take perfect power values?,  
MathOverflow, Nov. 21, 2018.  
[7] Z.-W. Sun, New Conjectures in Number Theory and Combinatorics (in  
Chinese), Harbin University of Technology Press, Harbin, 2021.  
[8] S. Tengely and M. Ulas, Equal values of certain partition functions via  
Diophantine equations, Res. Number Theory 7 (2021), 67.