Let \eps=(\eps_i)_{i\ge1} be a sequence with \eps_i\in\{-1,1\}, and let v_n(\eps) be the positive denominator of \sum_{i=1}^n\eps_i/i in lowest terms. We prove that |\{1\le n\le x:v_n(\eps)\ne v_{n+1}(\eps)\}|=o(x) uniformly in \eps. In particular, the set of positive integers n with v_n(\eps)=v_{n+1}(\eps) has asymptotic density one for every sequence of signs. This answers a problem of Wu and Chen, J. Number Theory200 (2019), 397–406.
Introduction
Let N denote the set of positive integers. For a sequence ε=(εi)i≥1 with εi∈{−1,1}, write
The choices εi=1 and εi=(−1)i−1 give the ordinary and alternating harmonic numbers, respectively. Put 1=(1,1,…).
Eswarathasan and Levine [4] and Boyd [2] studied the divisibility of the numerators of ordinary harmonic numbers. Sanna [6] and Wu and Chen [8] obtained quantitative estimates for the sets arising from their p-adic valuations. Wu and Chen [9] proved that, for every positive integer m, the set {n∈N:m∣vn(1)} has asymptotic density one.
For ordinary harmonic numbers, Shiu [7] proved that vn(1)<vn+1(1), vn(1)=vn+1(1) and vn(1)>vn+1(1) each hold for infinitely many n. Wu and Chen [10 Theorems 1.1–1.2] proved that the equality holds on a set of asymptotic density one for both the ordinary and alternating harmonic numbers. They posed the following problem.
Problem[10 Problem 1]. For every sequenceε∈{−1,1}N, does the set of positive integersnwithvn(ε)=vn+1(ε)have asymptotic density one?
Wu and Yan [11 Theorem 1.1] gave an affirmative answer when ε is purely periodic, that is, when εi+s=εi for some positive integer s and all i≥1. For relatively prime positive integers a and b, Chen and Wu [3 Corollary 2] proved the corresponding density-one result for the denominators of ∑j=0n−11/(aj+b) and ∑j=0n1/(aj+b).
In this paper, we give an affirmative answer for an arbitrary sequence of signs. We prove the following uniform result.
In particular, for every ε∈{−1,1}N, the set {n∈N:vn(ε)=vn+1(ε)} has asymptotic density one.
Preliminaries
We write Hn=Hn(ε) and vn=vn(ε), and put H0=0 and v0=1. The sequence ε is arbitrary. The sets and counting functions introduced below may depend on ε, although this dependence is omitted from the notation. All indices in these sets and sums are integers.
Throughout the paper, p denotes a prime. For a nonzero rational number r, write r=pbu/v, where b∈Z, u,v∈Z and p∤uv, and define νp(r)=b. We set νp(0)=+∞. Put
Z(p)={r∈Q:νp(r)≥0}={u/v:u,v∈Z,p∤v}.
For r,s∈Z(p), the congruence r≡s(modp) means r−s∈pZ(p). Thus a rational number u/v with p∤v is reduced modulo p by multiplying the residue of u by the inverse of the residue of v in Fp. We only use rational congruences when the quantities being reduced belong to Z(p).
For products, we have νp(rs)=νp(r)+νp(s) for nonzero r,s, as follows directly from the definition.
For sums, we have νp(r+s)≥min{νp(r),νp(s)} for all rational r,s. When νp(r)=νp(s), equality holds. To see this for nonzero r,s, put a=min{νp(r),νp(s)} and write r=pau, s=pav with u,v∈Z(p). Since u+v∈Z(p), the inequality follows. If the two valuations are different, exactly one of u,v belongs to pZ(p), so their sum is nonzero modulo p and has valuation zero. This proves the equality assertion. If one summand is zero, both assertions follow from r+0=r.
If p∣vn, the reduced-fraction condition gives p∤un(ε), so νp(Hn)=−νp(vn)<0. If p∤vn, then νp(Hn)≥0. Consequently,
νp(vn)=max{0,−νp(Hn)}(n≥0).(1)
The convention at n=0 makes (1) valid there as well. All logarithms are natural. We write F≪G if ∣F∣≤CG for an absolute constant C, and F≪LG if the constant may depend on L. Constants in these estimates never depend on ε. We use Chebyshev’s bound π(t)≪t/logt for t≥2, where π(t) denotes the number of primes not exceeding t.
The index k=0 is included in Np,a(M), since Bp,a(0)=0. We do not assume that every Bp,a(k) belongs to Z(p); the condition Bp,a(k)∈pZ(p) is part of the definition of the counted set. For x≥1, let Dp(x)=∣{1≤m≤x:νp(vm−1)=νp(vm)}∣. The next lemma relates changes in the exponent of p in a denominator to the indices counted by Np,a.
Lemma 2.1. If m is counted by Dp(x), then p∣m. Moreover, if pa∥m, then
νp(Hm−1)≥1−aorνp(Hm)≥1−a.(2)
Consequently,
Dp(x)≤2a≥1pa≤x∑Np,a(⌊pax⌋).(3)
:::
Proof. We have Hm=Hm−1+εm/m. Suppose first that p∤m. Then νp(εm/m)=0. If νp(Hm−1)<0, the two summands have different valuations, so νp(Hm)=νp(Hm−1). If νp(Hm−1)≥0, both summands belong to Z(p), and hence νp(Hm)≥0. In the first case, the two negative valuations are equal; in the second, neither reduced denominator is divisible by p. Thus (1) gives νp(vm)=νp(vm−1) in both cases. Every index counted by Dp(x) must therefore be divisible by p.
Now let m be such an index and write pa∥m with a≥1. Put s=νp(Hm−1) and t=νp(Hm). Since νp(εm/m)=−a, there are three possibilities. If s<−a, the unequal-valuation rule gives t=s, and the denominator exponents are equal, contrary to the choice of m. If s=−a, then t≥−a; equality would again give equal denominator exponents, so t>−a. If s>−a, this inequality already holds for the earlier sum, and the unequal-valuation rule gives t=−a. Thus s>−a or t>−a. Valuations lie in Z∪{+∞}, so these inequalities imply (2).
Write m=kpa. No integer strictly between (k−1)pa and kpa is divisible by pa. Therefore each such i satisfies νp(i)≤a−1, and each summand below has valuation a−νp(i)≥1. It follows that
If the first alternative in (2) holds, then paHm−1∈pZ(p). Subtracting the preceding difference gives Bp,a(k−1)∈pZ(p). If the second alternative holds, then Bp,a(k)=paHm∈pZ(p).
For fixed a, put M=⌊x/pa⌋. Each possible m corresponds to one k with 1≤k≤M and p∤k. Omitting the latter restriction can only increase the count. The map k↦k−1 sends the indices satisfying the first alternative injectively into the set counted by Np,a(M), since 0≤k−1≤M−1. The indices satisfying the second alternative form a subset of that counted set. Their union therefore has at most 2Np,a(M) elements, even if an index satisfies both alternatives. Summing over the possible exponents a proves (3). □
The following lemma follows from the interval argument in the proof of Wu and Yan [11 Lemma 2.3]. We give the argument for arbitrary signs.
Lemma 2.2. Let p be a prime and k≥0 an integer. Put Ep,k={n≥0:νp(Hn)≥−k} and cp=⌈p/2⌉. For every integer B≥k+1, we have
∣Ep,k∩[0,pB)∣≤pk+1cpB−k−1.
In particular, ∣Ep,k∩[0,x]∣=o(x) uniformly in ε for each fixed p and k.
Proof. We first bound how many of the p equal subintervals of a given interval can meet Ep,k. Let b≥k+1 and j≥0 be integers, and put tr=(jp+r)pb and Ir=[tr,tr+pb) for 0≤r<p. These half-open intervals partition [jpb+1,(j+1)pb+1).
If n∈Ir is an integer, there is no multiple of pb in (tr,n]. Thus every term in
pb(Hn−Htr)=tr<i≤n∑iεipb
has valuation at least 1, and the entire sum belongs to pZ(p). If also n∈Ep,k, then νp(pbHn)=b+νp(Hn)≥b−k≥1. Subtracting the displayed difference from pbHn shows that pbHtr∈pZ(p). We have therefore proved the implication
Ir∩Ep,k=∅⟹pbHtr∈pZ(p).
For 1≤r<p, the only multiple of pb in (tr−1,tr] is tr. Its coefficient after multiplication by pb is εtr/(jp+r), and p∤jp+r. All the other summands belong to pZ(p). Consequently,
pb(Htr−Htr−1)=jp+rεtr=0(modp).
If both Ir−1 and Ir met Ep,k, the implication above would put both pbHtr−1 and pbHtr in pZ(p). Their difference would then be zero modulo p, contradicting the last congruence. Thus no two consecutive intervals can meet Ep,k. Pair I0 with I1, I2 with I3, and so on. Each pair contributes at most one interval, with at most one unpaired interval left. At most ⌈p/2⌉=cp intervals can therefore meet Ep,k.
If B=k+1, the original interval contains pk+1 integers, giving the claimed bound. Suppose that B>k+1. Starting with [0,pB), divide every interval retained at one stage into p equal subintervals, retaining only those meeting Ep,k. Every parent interval has the form [jpb+1,(j+1)pb+1), so the preceding argument applies at each stage. The exponents used are b=B−1,B−2,…,k+1, giving B−k−1 divisions. Each retained parent contributes at most cp children. At the last stage, at most cpB−k−1 intervals remain, each of length pk+1 and containing exactly pk+1 integers. Every integer of Ep,k∩[0,pB) remains in one of these intervals, which proves the bound.
For sufficiently large x, choose B with pB−1≤x<pB. Then
Here B→∞ as x→∞, while p and k remain fixed. Since cp<p, the final expression tends to zero. It does not depend on ε, which also proves the asserted uniformity. □
For d≥1 and σ=(σ1,…,σd)∈{−1,1}d, let
Pd,σ(T)=s=1∑dσs1≤i≤di=s∏(T+i).
We first record a consequence of Kürschák’s 2-adic argument [5]. For signed sums starting at 1, see also Bettin, Molteni and Sanna [1 Proposition 2.6].
Lemma 2.3. For every integer d≥1, every σ∈{−1,1}d and every integer k≥0, we have 0<∣Pd,σ(k)∣≤d(k+d)d−1.
Proof. We first prove that exactly one of k+1,…,k+d has largest 2-adic valuation. A largest valuation exists because this is a finite nonempty set of positive integers. Suppose that two of its members u<v have this valuation b. Write u=2b(2r+1) and v=2b(2s+1) with integers s≥r+1. Then v−u≥2b+1, and hence
u<u+2b=2b+1(r+1)<v.
The integer u+2b lies in the same consecutive interval and has valuation at least b+1, contradicting the maximality of b.
Write k+j=2bjuj with uj odd, and let j0 be the unique index for which b=bj0=maxjbj. After multiplying the signed reciprocal sum by 2b, we have
For j=j0, the integer b−bj is at least 1, so the corresponding summand belongs to 2Z(2). The remaining summand has odd numerator and denominator, and is therefore congruent to 1 modulo 2. Thus
2bj=1∑dk+jσj≡1(mod2).
In particular, the signed sum is nonzero. Since every k+i is positive, multiplying by their product preserves nonvanishing and gives
Pd,σ(k)=(i=1∏d(k+i))(j=1∑dk+jσj)=0.
The definition also shows that Pd,σ(k) is an integer. Finally, each product in that definition has d−1 factors, all at most k+d. By the triangle inequality,
∣Pd,σ(k)∣≤j=1∑d1≤i≤di=j∏(k+i)≤d(k+d)d−1.
When d=1, the empty product equals 1 and P1,σ(k)=σ1, so the same argument and bound remain valid.
The next lemma uses the short-gap argument of Sanna [6, Lemma 2.2] and Wu and Chen [8, Lemma 2.2]. For signed versions, see Wu and Chen [10, Lemma 3.2] and Wu and Yan [11, Lemmas 2.1–2.2]. Here we include all sign patterns.
Lemma 2.4. For integers a≥1, M≥0 and 1≤L<p, we have
Np,a(M)≤LM+(pM+1)(1+R(L)),(4)
where R(L)=∑d=1L2d(d−1)≤2L+1L.
Proof. For each integer j≥0, list the indices counted by Np,a(M) in [jp,(j+1)p) as kj,1<⋯<kj,sj. Empty lists contribute nothing. A nonempty list has one first index, and each of its other indices is the right endpoint of exactly one gap dj,r=kj,r+1−kj,r, where 1≤r<sj. Thus it suffices to count first indices, gaps longer than L, and gaps of length at most L.
Since every counted index lies in [0,M], only the blocks with 0≤j≤⌊M/p⌋ can be nonempty. The number of first indices is at most ⌊M/p⌋+1≤M/p+1. Within one block, the sum of its gaps telescopes to kj,sj−kj,1. These intervals have disjoint interiors as j varies and all lie in [0,M]. Therefore,
j∑r=1∑sj−1dj,r=j:sj≥2∑(kj,sj−kj,1)≤M.
Every gap longer than L contributes more than L to this sum, so there are at most M/L such gaps.
Now suppose that k and k+d are consecutive indices in the same block and 1≤d≤L. Because jp≤k<k+d<(j+1)p, none of k+1,…,k+d is divisible by p. Among the indices i in (kpa,(k+d)pa], the multiples of pa are precisely (k+s)pa with 1≤s≤d. Separating these terms gives
The first sum lies in Z(p), since its denominators are prime to p. Every term in the second sum has valuation a−νp(i)≥1. Both Bp,a(k) and Bp,a(k+d) belong to pZ(p) by the definition of the lists. Reducing the displayed identity modulo p therefore gives
0≡Bp,a(k+d)−Bp,a(k)≡s=1∑dk+sε(k+s)pa(modp).
Put σs=ε(k+s)pa. Multiplying the congruence by ∏i=1d(k+i), which is not divisible by p, gives
Pd,σ(k)≡0(modp).(5)
Each summand of Pd,σ has degree d−1, so its degree is at most d−1. At T=−1, all summands except the one with s=1 contain the zero factor T+1. Hence Pd,σ(−1)=σ1(d−1)!. Since d≤L<p, none of 1,…,d−1 is divisible by p, and this value is nonzero modulo p. Thus the reduction of Pd,σ is a nonzero polynomial over Fp. By the factor theorem, a nonzero polynomial of degree at most d−1 has at most d−1 roots. This includes d=1, when the polynomial is the nonzero constant σ1 and has no roots.
For each fixed d, there are 2d possible sign patterns. The union of the root classes for all 1≤d≤L and all these patterns therefore contains at most ∑d=1L2d(d−1)=R(L) residue classes modulo p. Overlap between root sets can only decrease this number. By (5), every starting index of a short gap belongs to one of these classes.
An individual residue class contains at most ⌊M/p⌋+1 integers in [0,M], because consecutive representatives are p apart. Moreover, a starting index belongs to only one block and has at most one successor in its ordered list. Thus the number of short gaps is at most the number of possible starting indices, which is at most (M/p+1)R(L). Adding the bounds for first indices, long gaps and short gaps proves (4). Finally,
R(L)≤Ld=1∑L2d=L(2L+1−2)≤2L+1L.
All sign patterns were included, so the bound is independent of the original sequence ε.
Proofs
Proof of Theorem 1.1. Put Dε(x)=∣{1≤m≤x:vm−1=vm}∣. We first reduce the desired estimate to a sum over primes. For qm=lcm(1,…,m), the identity
Hm=qm1i=1∑mεiiqm
has an integer numerator, so vm∣qm. The same argument gives vm−1∣qm, with v0=1 when m=1. If the two positive denominators are different, their prime factorizations differ at some prime p dividing qm, and necessarily p≤m. Every index counted by Dε(x) is therefore counted by at least one Dp(x) with p≤x. It follows that
Dε(x)≤p≤x∑Dp(x).(6)
An index may be counted for several primes, which is why (6) is an inequality. It suffices to prove that its right-hand side is o(x) uniformly in ε.
Fix integers Y≥256 and L≥1, and take x sufficiently large that x>max{Y,L,2}. These two parameters will remain fixed while x tends to infinity. For the primes up to Y, we use the fixed-prime estimate of Lemma 2.2. For the intermediate primes, we apply Lemma 2.4 with a length depending on p. For primes exceeding x, we keep the length L fixed and count prime divisors of the nonzero integers in Lemma 2.3.
Case 1.p≤Y. Fix a prime p≤Y and an integer A≥1. Let m be counted by Dp(x) and put a=νp(m). Lemma 2.1 gives a≥1. If a≤A, then 1−a≥1−A, so (2) gives νp(Hm−1)≥1−A or νp(Hm)≥1−A. By the definition of Ep,A−1, this means m−1∈Ep,A−1 or m∈Ep,A−1. Both indices lie in [0,x]. Each index in this latter set can correspond to at most one m by each of the maps m↦m−1 and m↦m. This accounts for at most 2∣Ep,A−1∩[0,x]∣ values of m.
If a≥A+1, then pA+1∣m. The number of such positive integers m≤x is at most ⌊x/pA+1⌋. Combining the two possibilities, we obtain
Dp(x)≤2∣Ep,A−1∩[0,x]∣+⌊pA+1x⌋.
Divide by x and take the supremum over ε. For fixed p and A, the first term tends to zero by Lemma 2.2. Hence
x→∞limsupεsupxDp(x)≤p−A−1.
This holds for every integer A≥1. Letting A→∞ shows that the nonnegative quantity supεDp(x)/x tends to zero for each fixed p. There are only finitely many primes up to the fixed number Y, and therefore
Case 2.Y<p≤x. Put Lp=⌊(logp)/(4log2)⌋ and Ap=⌊(logx)/(logp)⌋. The exponents occurring in (3) are precisely 1≤a≤Ap. We first check the size of Lp. Since p>256, the number z=(logp)/(4log2) is greater than 2. For z≥2, we have ⌊z⌋≥z−1≥z/2. Thus
8log2logp≤Lp≤4log2logp<p.
In particular, 1≤Lp<p, as required in Lemma 2.4. Moreover, 2Lp≤2(logp)/(4log2)=p1/4, and therefore
1+R(Lp)≤1+2Lp+1Lp≪p1/4logp.
The lower bound for Lp controls the long gaps in Lemma 2.4, while this upper bound controls its short-gap contribution.
Apply that lemma with M=⌊x/pa⌋ and L=Lp. Since M≤x/pa, it gives
Np,a(⌊pax⌋)≤paLpx+(pa+1x+1)(1+R(Lp)).
Substituting the two bounds for Lp and R(Lp), we obtain, with an absolute implied constant,
Np,a(⌊pax⌋)≪palogpx+pa+3/4xlogp+p1/4logp.
To sum these terms over a, we first use
a=1∑App−a≤a=1∑∞p−a=1−p−1p−1=p−11.
The first two contributions are therefore bounded by
The third term does not depend on a, and Aplogp≤logx. Hence ∑a=1App1/4logp≤p1/4logx. Applying Lemma 2.1 to the summed estimate, and absorbing its factor 2 into the absolute implied constant, we obtain
Dp(x)≪(p−1)logpx+p3/4(p−1)xlogp+p1/4logx.
The ratio of the second term to the first is (logp)2/p3/4. This is bounded by an absolute constant: on putting u=logp, the function becomes u2e−3u/4, which has its maximum for u≥0 at u=8/3. Indeed, its derivative is ue−3u/4(2−3u/4). We may therefore absorb the second term into the first. Since p−1≥p/2, we have
Dp(x)≪plogpx+p1/4logx.
We next estimate the sum of 1/(plogp). For Z>Y, let f(t)=1/(tlogt). Partial summation gives
Y<p≤Z∑f(p)=π(Z)f(Z)−π(Y)f(Y)−∫YZπ(t)f′(t)dt.
Here −f′(t)=(logt+1)/(t2(logt)2). Chebyshev’s bound gives π(Z)f(Z)≪1/(logZ)2. Also, since t≥Y≥256, we have logt+1≤2logt, and hence
−π(t)f′(t)≪t(logt)3logt+1≤t(logt)22.
The lower boundary term −π(Y)f(Y) is nonpositive and may be omitted for an upper bound. Thus the nonnegative partial sums over Y<p≤Z are bounded above by a convergent improper integral and a term tending to zero. Letting Z→∞ proves both convergence and the bound
p>Y∑plogp1≪∫Y∞t(logt)2dt=logY1.
For the remaining term, there are at most x primes up to x, and each satisfies p1/4≤x1/8. Consequently, ∑p≤xp1/4≤x5/8. Summing the bound for Dp(x) over Y<p≤x, we obtain
Y<p≤x∑Dp(x)≪logYx+x5/8logx.(8)
Case 3.x<p≤x. Put Mp=⌊x/p⌋. Since p2>x, only a=1 occurs in (3), and hence Dp(x)≤2Np,1(Mp). Moreover, Mp≤x/p<x<p. All the indices counted by Np,1(Mp) therefore lie in the single block [0,p).
List these indices in increasing order. As in Lemma 2.4, each is either the first index or the right endpoint of one gap. There is at most one first index, and the sum of the gap lengths is at most Mp. Thus at most Mp/L gaps have length greater than L. Let SL(x) be the total number of gaps of length at most L, summed over all primes x<p≤x. The first indices contribute at most π(x), and the long gaps contribute at most ∑x<p≤xMp/L. Using Mp≤x/p, we obtain
x<p≤x∑Np,1(Mp)≤π(x)+Lxx<p≤x∑p1+SL(x).(9)
To estimate the prime reciprocal sum here, partial summation gives the exact identity
x<p≤x∑p1=xπ(x)−xπ(x)+∫xxt2π(t)dt.
Omit the nonpositive lower boundary term and apply Chebyshev’s bound to the other two terms. Then
x<p≤x∑p1≪logx1+∫xxtlogtdt.
The integral equals loglogx−loglogx=log2, because logx=(logx)/2. The prime reciprocal sum is therefore bounded by an absolute constant. In particular, this constant does not depend on L.
It remains to show that SL(x)≪Lx. A gap from k to k+d counted by SL(x) satisfies 0≤k<k+d≤Mp<x and 1≤d≤L<p. Both endpoints lie in [0,p), so the argument leading to (5), now with a=1, applies. Taking σs=ε(k+s)p, we have p∣Pd,σ(k).
The sign pattern associated with a gap may vary with p. For each d, however, there are only 2d possible patterns, and we count all of them. We reverse the order of counting: fix k,d,σ first, and then count the primes p>x which can divide Pd,σ(k). For a fixed triple, this integer no longer depends on p or on the original sequence of signs.
Put Q=∣Pd,σ(k)∣. By Lemma 2.3, it is a positive integer. Since d≤L and k≤x, the same lemma gives
1≤Q≤d(k+d)d−1≤L(x+L)L−1.
Our choice of x ensures L≤x and 2x≤x. Therefore,
Q≤L(2x)L−1≤xxL−1≤xL.
If Q=1, it has no prime divisors. Now suppose Q>1. Let p1,…,pr be its distinct prime divisors greater than x. If r=0, there is nothing to count. If r≥1, their product divides Q, and consequently
xr/2<p1⋯pr≤Q≤xL.
As x>1, taking logarithms gives r<2L. Thus, for every fixed triple k,d,σ, at most 2L primes can contribute a gap with those data.
There are at most ⌊x⌋+1 possible integers k. For each d with 1≤d≤L, there are 2d possible sign patterns. For a fixed prime p, each starting index k belongs to only one ordered list and has only one possible next counted index. Thus two distinct gaps cannot give the same tuple (p,k,d,σ). Counting all such tuples, including triples that do not actually arise from a gap, gives the upper bound
SL(x)≤2L(⌊x⌋+1)d=1∑L2d≪Lx.
The implied constant depends only on L, since the finite sum of sign-pattern counts is ∑d=1L2d=2L+1−2. In particular, it is independent of ε. Inserting this estimate and the prime reciprocal bound into (9), and using π(x)≪x/logx and Dp(x)≤2Np,1(Mp), we obtain
For fixed Y and L, the term eY(x) tends to zero by (7). The terms x−3/8logx, 1/logx and CLx−1/2 also tend to zero. All these bounds hold uniformly in ε. Taking the upper limit in x, we obtain
x→∞limsupεsupxDε(x)≤C(logY1+L1).
The constant C is independent of Y and L. Given δ>0, choose fixed integers Y≥256 and L≥1 so large that C(1/logY+1/L)<δ/2. With these choices held fixed, take x sufficiently large that
eY(x)+Cx−3/8logx+logxC+CLx−1/2<2δ.
This threshold for x does not depend on ε. Substitution into the displayed bound for supεDε(x)/x now gives supεDε(x)/x<δ. Since δ is arbitrary, supεDε(x)/x→0.
Finally, the change of index m=n+1 takes the integers 1≤n≤x to the integers 2≤m≤x+1. The omitted index m=1 is not counted by Dε, because v0=v1=1. Hence, for every sequence ε,
∣{1≤n≤x:vn=vn+1}∣=Dε(x+1).
After taking the supremum and dividing by x, this gives
For any fixed sequence, exactly Dε(x+1) of the ⌊x⌋ indices have unequal consecutive denominators. The proportion with equal denominators is therefore ⌊x⌋/x−Dε(x+1)/x, which tends to 1. This completes the proof of Theorem 1.1. □
References
[1]S. Bettin, G. Molteni and C. Sanna, Small values of signed harmonic sums, C. R. Math. Acad. Sci. Paris 356 (2018), 1062–1074. doi:10.1016/j.crma.2018.11.007.DOI
[2]D. W. Boyd, A p-adic study of the partial sums of the harmonic series, Exp. Math. 3 (1994), 287–302. doi:10.1080/10586458.1994.10504298.DOI
[3]Y.-G. Chen and B.-L. Wu, On generalized harmonic numbers, in: M. B. Nathanson (ed.), Combinatorial and Additive Number Theory IV, Springer Proc. Math. Stat., vol. 347, Springer, Cham, 2021, pp. 107–129. doi:10.1007/978-3-030-67996-5_6.DOI
[4]A. Eswarathasan and E. Levine, p-Integral harmonic sums, Discrete Math. 91 (1991), 249–257. doi:10.1016/0012-365X(90)90234-9.DOI
[5]J. Kürschák, A harmonikus sorról, Mathematikai és Physikai Lapok 27 (1918), 299–300.
[6]C. Sanna, On the p-adic valuation of harmonic numbers, J. Number Theory 166 (2016), 41–46. doi:10.1016/j.jnt.2016.02.020.DOI
[7]P. Shiu, The denominators of harmonic numbers (Revised), arXiv:1607.02863, 2016, revised 2024.arxiv.org/abs/1607.02863
[8]B.-L. Wu and Y.-G. Chen, On certain properties of harmonic numbers, J. Number Theory 175 (2017), 66–86. doi:10.1016/j.jnt.2016.11.027.DOI
[9]B.-L. Wu and Y.-G. Chen, On the denominators of harmonic numbers, C. R. Math. Acad. Sci. Paris 356 (2018), 129–132. doi:10.1016/j.crma.2018.01.005.DOI
[10]B.-L. Wu and Y.-G. Chen, On the denominators of harmonic numbers, II, J. Number Theory 200 (2019), 397–406. doi:10.1016/j.jnt.2018.11.026.DOI
[11]B.-L. Wu and X.-H. Yan, On the denominators of ε-harmonic numbers, Bull. Korean Math. Soc. 57 (2020), 1383–1392. doi:10.4134/BKMS.b191047.DOI