WorksMathematics
The p-adic valuations of the coefficients in Yang's expansion of (1+1/x)^x
Abstract
Yang's coefficients b_n, defined by (1+1/x)^x = e(1 - sum_{n>=1} b_n (x+1)^{-n}), appear in refinements of Carleman's inequality, and the literature on them concerns their analytic properties. We study their p-adic valuations for an odd prime p. From the identity 1 - sum_n b_n u^n = exp(-sum_{k>=1} u^k/(k(k+1))) one gets v_p(b_n) >= -M(n), where M(n) is the optimum of a knapsack problem on the compositions of n. We compute M(n) in closed form and show that, for n >= 2, the optimum is attained by a unique composition exactly when n = (p-1)m with m in an explicit set U_p defined by a digit condition. For these n the bound is an equality: v_p(b_n) = -(m + v_p(m!)). The set U_p has density 1/(p-1), so the valuation of b_n is determined on a set N_p of indices of density 1/(p-1)^2. The set N_p contains the indices p^K - 1, at which b_{p^K-1} is the unique coefficient of minimal valuation among b_1, ..., b_{p^K-1}. The same statements hold for the coefficients of e(1-u)^{1/u}, and the minimality statement for those of e(1-u)^{1/u-1}. A script checks all statements numerically in finite ranges.
Introduction
Yang [Ya] introduced the rational numbers defined by
in a strengthened form of Carleman’s inequality [1]; the first values are , , , , , (the value of agrees with Finch [4]); numerators and denominators are tabulated in OEIS A249276 and A249277 [7]. The work on this sequence concerns its analytic properties; see Hu and Mortici [5] and the references there. We study its -adic valuations.
Put , so that and . Since ,
so that, with ,
We also consider
with coefficients and ; thus . The series has the coefficients of [7] (see also [2 p. 293]), and .
Differentiating (2) gives the recurrence , .
Throughout, is an odd prime, , and is the sum of the base- digits of , so that (Legendre). Let
It suffices to test , since for the inequality holds because .
Theorem 1. Let with . Then
Theorem 2. For ,
In particular has density , and has density in the positive integers.
Theorem 3. Let , , and
Then , so , while and for . Moreover and for . Thus each of , , is the unique coefficient of minimal -adic valuation in its sequence on .
We know of no previous result on the -adic valuations of the . The proofs rest on a knapsack problem (§ 2), which we solve in closed form (Proposition 6), with a criterion for the uniqueness of the optimum (Theorem 7). A related phenomenon, for the powers of , was found by Davis [3], where the coefficients of index also behave like those of a series in . Krattenthaler and Rivoal [6] give general upper bounds for the denominators of the Taylor coefficients of differentially algebraic power series; the statements here are exact valuations for specific series.
The knapsack bound
For put and , so . For a composition of (an ordered sequence of positive integers with sum ) define the scores
and let , be their maxima over the compositions of .
Lemma 4. For , and . If is attained by a unique composition, then ; if is attained by a unique composition, then .
Proof. Expanding the exponential in (2),
a finite sum over all compositions of . The term of has valuation exactly . The valuation of a finite sum is at least the minimum of the valuations of its terms, with equality if this minimum is attained by a single term. The same argument applies to , with in place of . □
Lemma 5. For , , with equality if and only if .
Proof. If the inequality is strict. If , then, since divides at most one of the consecutive integers and , divides or , so . Both inequalities are equalities if and only if and . □
The optimum
Proposition 6. For ,
More precisely, every composition of can be transformed, by a finite sequence of the moves below, into a composition all of whose parts are equal to or , and no move decreases or . A composition with parts equal to and parts equal to has parts and .
The moves replace one part of a composition, as follows.
(A) If and : by parts equal to .
(B) If with and : by parts equal to and one part equal to .
(C) If : by parts equal to .
Every falls under exactly one move. Each move increases the number of parts, so any sequence of moves stops, and it stops exactly at a composition with parts in .
Proof. The number of parts never decreases, so never decreases. The parts have , since and are then smaller than , and the part has . In move (A) the weight of the new parts exceeds , by Lemma 5; so the move increases and by at least 1. In move (B), Lemma 5 gives , hence , and the new parts have total weight . In move (C) the total weight is 0 before and after. The last assertion follows from and .
Theorem 7. Let . The following are equivalent:
(i) is attained by a unique composition of ;
(ii) is attained by a unique composition of ;
(iii) with .
In that case the optimal composition consists of parts equal to , and .
Proof. We write the proof for ; for it is the same, since Proposition 6 holds for both scores. By Legendre’s formula,
Step 1: the composition with all parts equal to 1 is never the unique optimum. If , all parts of all compositions of are at most and , so every composition of has score 0, and has at least two compositions. If , let and with . Then and , so (3) gives . Since and , we have . Hence , and the composition with parts followed by parts 1 scores at least as much as the composition with all parts 1.
Step 2: (i) implies (iii). Let be the unique optimal composition. Applying a move to would give a different composition with at least the same score, so no move applies, and has parts and parts 1. If , reordering the parts gives a different composition with the same score. By Step 1, is excluded. Hence , , and . If for some , a composition with parts and parts 1 would also be optimal. So for . Since , (3) turns this into for , which is the condition (the values need no test).
Step 3: (iii) implies (i). Let with . By (3) as in Step 2, for , so by Proposition 6 . Let be any optimal composition, and transform it by moves into a composition with parts in . Then is optimal, so it has parts and no part 1. A move of type (A) increases the score, so none occurs. A move of type (B) or (C) creates a part smaller than , and no move decreases the
number of parts smaller than (move (C) replaces such a part by parts 1), so none occurs either. Thus , which is the composition with parts equal to .
Proof of Theorem 1. Combine Lemma 4 and Theorem 7; the last expression follows from Legendre’s formula.
Remark 8. For outside the optimum is not unique, and does occur: for this happens at 23 of the indices , the smallest being . The script checks this count and the inequality of Lemma 4 for and .
The indices
Lemma 9. Let be a nonnegative integer whose base- digits are all 0 or 1. Let and , and let be the number of carries in the base- addition . If , then and . In all cases, and .
Proof. A carry out of a position where has digit 1 requires a digit of at least if a carry comes in, and at least if none comes in. A carry out of a position where has digit 0 requires the digit of and an incoming carry. The lowest carry position receives no carry. Hence the digits of at the carry positions are at least , and the one at the lowest carry position is at least ; this gives , and also , that is . Kummer’s theorem gives , and if then .
Proof of Theorem 3. The two expressions of follow from , and Legendre’s formula.
. Apply Lemma 9 with and : for , , since . By Theorem 1, .
. Let . Then , and for write . Since , we get . The integer has digit 0 in position 0 and , so Lemma 9 gives . By (3),
using . Since is an integer, , and Proposition 6 gives (equality holds in all the cases computed by the script). (For , , and the statement is .)
Minimality. Appending a part 1 to a composition does not decrease or , so and are nondecreasing. For , Lemma 4 gives , and the same for . Finally with ; for every term has valuation , and for the term is the only one of valuation . Hence for and .
The density of
Put for . For and , , so
Lemma 10. If , then .
Proof. Let ; the minimum exists since the quantity tends to infinity with , and because . Since , we have for every , so . As and are coprime, , hence . On the other hand, taking and using , we get .
Proof of Theorem 2. Fix a residue class modulo , with elements , where and . Put , which exists since . Then . By (4), if then , and if then and, by Lemma 10, . Let . Summing over ,
which lies between and . Over the classes, the numbers are and the numbers are , so the differences add up to . Since and , summing and dividing by gives the inequalities of the theorem. The density of follows, since requires .
Verification
The ancillary file verify_carleman_padic.py (Python 3, no dependency, exact rational arithmetic, about fifteen seconds) computes , , for and checks:
(2) against the recurrence of the introduction; the coefficients of against the sequences A055505 and A055535 for ; ; ;
for and : and computed by dynamic programming over all compositions against Proposition 6; the uniqueness of the optimum against Theorem 7; the inequalities of Lemma 4;
for : Theorem 1 on all with ; Theorem 3 for all ; Lemma 10 and the bounds of Theorem 2 for .
These computations check the statements; the proofs do not depend on them.
Acknowledgement. Technical assistance: Claude (Anthropic).
ORCID 0009-0009-1526-1178
References
- [1]T. Carleman, Sur les fonctions quasi-analytiques, in: Conférences faites au cinquième congrès des mathématiciens scandinaves, Helsingfors, 1923, 181–196.
- [2]L. Comtet, Advanced Combinatorics, Reidel, Dordrecht, 1974.
- [3]D. M. Davis, Coefficients in powers of the log series, arXiv:1001.3068 (2010).arxiv.org/abs/1001.3068
- [4]S. R. Finch, Carleman’s inequality, note dated 17 December 2013, https://oeis.org/A219245/a219245.pdf.
- [5]Y. Hu, C. Mortici, On the coefficients of an expansion of (1 + 1/x)^x related to Carleman’s inequality, arXiv:1401.2236 (2014).arxiv.org/abs/1401.2236
- [6]C. Krattenthaler, T. Rivoal, Arithmetic properties of the Taylor coefficients of differentially algebraic power series, arXiv:2502.09259 (2025).
- [7]The On-Line Encyclopedia of Integer Sequences, sequences A055505, A055535, A249276 and A249277, https://oeis.org.