\documentclass[11pt,a4paper]{amsart} \usepackage[utf8]{inputenc} \usepackage{amsmath,amssymb,amsthm} \usepackage[margin=2.5cm]{geometry} \usepackage[hidelinks]{hyperref} \newtheorem{theorem}{Theorem} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{proposition}[theorem]{Proposition} \newtheorem{corollary}[theorem]{Corollary} \theoremstyle{remark} \newtheorem{remark}[theorem]{Remark} \newcommand{\vp}{v_p} \title[$p$-adic valuations of Yang's coefficients]{The $p$-adic valuations of the coefficients in Yang's expansion of \texorpdfstring{$(1+1/x)^x$}{(1+1/x)\^{}x}} \author{David Niedbala Giraudin} \address{ORCID 0009-0009-1526-1178} \date{3 November 2026} \begin{document} \begin{abstract} Yang's coefficients $b_n$, defined by $(1+1/x)^x=e\bigl(1-\sum_{n\ge1}b_n(x+1)^{-n}\bigr)$, 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_nu^n=\exp\bigl(-\sum_{k\ge1}u^k/(k(k+1))\bigr)$ one gets $v_p(b_n)\ge-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\ge2$, 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,\dots,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. \end{abstract} \maketitle \section{Introduction} Yang \cite{Ya} introduced the rational numbers $b_n$ defined by \begin{equation}\label{eq:def} \Bigl(1+\frac1x\Bigr)^x=e\Bigl(1-\sum_{n\ge1}\frac{b_n}{(x+1)^n}\Bigr),\qquad x>0, \end{equation} in a strengthened form of Carleman's inequality \cite{Ca}; the first values are $b_1=1/2$, $b_2=1/24$, $b_3=1/48$, $b_4=73/5760$, $b_5=11/1280$, $b_6=3625/580608$ (the value of $b_6$ agrees with Finch \cite{Fi}); numerators and denominators are tabulated in OEIS A249276 and A249277 \cite{OEIS}. The work on this sequence concerns its analytic properties; see Hu and Mortici \cite{HM} and the references there. We study its $p$-adic valuations. Put $u=1/(x+1)$, so that $1+1/x=1/(1-u)$ and $x=(1-u)/u$. Since $\log(1-u)=-\sum_{k\ge1}u^k/k$, \[ x\log\Bigl(1+\frac1x\Bigr)=\frac{1-u}{u}\sum_{k\ge1}\frac{u^k}{k}=1-\sum_{k\ge1}\frac{u^k}{k(k+1)}, \] so that, with $B(u)=\sum_{n\ge1}b_nu^n$, \begin{equation}\label{eq:B} 1-B(u)=\exp\Bigl(-\sum_{k\ge1}\frac{u^k}{k(k+1)}\Bigr). \end{equation} We also consider \[ T(u)=\exp\Bigl(-\sum_{k\ge1}\frac{u^k}{k+1}\Bigr)=e\,(1-u)^{1/u},\qquad S(u)=\frac{T(u)}{1-u}=\frac1{1-B(u)}=e\,(1-u)^{1/u-1}, \] with coefficients $T_n$ and $S_n$; thus $S_n=T_0+\dots+T_n$. The series $1/T(u)=(1-u)^{-1/u}/e$ has the coefficients $a_n=A055505(n)/A055535(n)$ of \cite{OEIS} (see also \cite[p.~293]{Co}), and $b_n=a_{n-1}-a_n$. Differentiating \eqref{eq:B} gives the recurrence $b_1=1/2$, $nb_n=1/(n+1)-\sum_{j=1}^{n-1}b_j/(n-j+1)$. Throughout, $p$ is an odd prime, $c=p-2\ge1$, and $s_p(m)$ is the sum of the base-$p$ digits of $m$, so that $\vp(m!)=(m-s_p(m))/(p-1)$ (Legendre). Let \[ U_p=\bigl\{m\ge1:\ i+s_p(m+ic)>s_p(m)\ \text{for every } i\ge1\bigr\},\qquad N_p=(p-1)\,U_p . \] It suffices to test $1\le i-D_K$ and $\vp(T_n)>-D_K$ for $1\le n-D_K$ for $1\le np-1$: by $q=k/(p-1)\ge2$ parts equal to $p-1$. \item[(B)] If $k=q(p-1)+r$ with $q\ge1$ and $1\le r\le p-2$: by $q$ parts equal to $p-1$ and one part equal to $r$. \item[(C)] If $2\le k\le p-2$: by $k$ parts equal to $1$. \end{itemize} Every $k\notin\{1,p-1\}$ 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 $\{1,p-1\}$. \begin{proof} The number of parts $m$ never decreases, so $\vp(m!)$ never decreases. The parts $1,\dots,p-2$ have $\alpha=\alpha'=0$, since $k$ and $k+1$ are then smaller than $p$, and the part $p-1$ has $\alpha=\alpha'=1$. In move (A) the weight $q$ of the new parts exceeds $\alpha(k)\ge\alpha'(k)$, by Lemma~\ref{lem:part}; so the move increases $\sigma$ and $\sigma'$ by at least $1$. In move (B), Lemma~\ref{lem:part} gives $\alpha'(k)\le\alpha(k)\le k/(p-1)f_n(m-i)$ for $1\le i\le m$. Since $n-(m-i)c=m+ic$, \eqref{eq:f} turns this into $i+s_p(m+ic)>s_p(m)$ for $1\le i\le m$, which is the condition $m\in U_p$ (the values $i>m\ge s_p(m)$ need no test). \emph{Step 3: (iii) implies (i).} Let $n=(p-1)m$ with $m\in U_p$. By \eqref{eq:f} as in Step~2, $f_n(m)>f_n(j)$ for $0\le j-M(n)$ does occur: for $p=3$ this happens at $23$ of the indices $n\le80$, the smallest being $n=5$. The script checks this count and the inequality of Lemma~\ref{lem:bound} for $p\le13$ and $n\le100$. \end{remark} \section{The indices \texorpdfstring{$p^K-1$}{p\^{}K-1}}\label{sec:pK} \begin{lemma}\label{lem:carries} Let $A$ be a nonnegative integer whose base-$p$ digits are all $0$ or $1$. Let $w\ge1$ and $B=wc$, and let $\kappa$ be the number of carries in the base-$p$ addition $A+B$. If $\kappa\ge1$, then $s_p(B)\ge\kappa c+1$ and $w\ge\kappa$. In all cases, $\kappa\le w$ and $s_p(A+B)\ge s_p(A)+1-\kappa\ge s_p(A)+1-w$. \end{lemma} \begin{proof} A carry out of a position where $A$ has digit $1$ requires a digit of $B$ at least $p-2=c$ if a carry comes in, and at least $p-1=c+1$ if none comes in. A carry out of a position where $A$ has digit $0$ requires the digit $p-1$ of $B$ and an incoming carry. The lowest carry position receives no carry. Hence the digits of $B$ at the $\kappa$ carry positions are at least $c$, and the one at the lowest carry position is at least $c+1$; this gives $s_p(B)\ge\kappa c+1$, and also $B\ge c\sum_{\text{carry positions } t}p^t\ge c\kappa$, that is $w\ge\kappa$. Kummer's theorem gives $s_p(A+B)=s_p(A)+s_p(B)-(p-1)\kappa\ge s_p(A)+1-\kappa$, and if $\kappa=0$ then $s_p(A+B)=s_p(A)+s_p(B)\ge s_p(A)+1$. \end{proof} \begin{proof}[Proof of Theorem~\ref{thm:pK}] The two expressions of $D_K$ follow from $p^K-1=(p-1)R_K$, $s_p(R_K)=K$ and Legendre's formula. \emph{$R_K\in U_p$.} Apply Lemma~\ref{lem:carries} with $A=R_K$ and $B=ic$: for $i\ge1$, $i+s_p(R_K+ic)\ge i+K+1-\kappa\ge K+1>K=s_p(R_K)$, since $i\ge\kappa$. By Theorem~\ref{thm:exact}, $\vp(b_R)=\vp(T_R)=-(R_K+\vp(R_K!))=-D_K$. \emph{$M(p^K-2)\le D_K-1$.} Let $n=p^K-2$. Then $\lfloor n/(p-1)\rfloor=R_K-1$, and for $0\le j\le R_K-1$ write $w=R_K-j\ge1$. Since $R_Kc=p^K-1-R_K$, we get $n-jc=(R_K-1)+wc$. The integer $R_K-1=p+\dots+p^{K-1}$ has digit $0$ in position $0$ and $s_p(R_K-1)=K-1$, so Lemma~\ref{lem:carries} gives $s_p(n-jc)\ge K-w$. By \eqref{eq:f}, \[ (p-1)f_n(j)=n+j-s_p(n-jc)\le p^K-2+R_K-K=(p-1)D_K-1, \] using $(p-1)D_K=(p-1)R_K+R_K-K=p^K-1+R_K-K$. Since $f_n(j)$ is an integer, $f_n(j)\le D_K-1$, and Proposition~\ref{prop:reduction} gives $M(p^K-2)=M'(p^K-2)\le D_K-1$ (equality holds in all the cases computed by the script). (For $K=1$, $n=p-2$, and the statement is $M(n)=0$.) \emph{Minimality.} Appending a part $1$ to a composition does not decrease $\sigma$ or $\sigma'$, so $M$ and $M'$ are nondecreasing. For $1\le n-D_K$, and for $n=R$ the term $T_R$ is the only one of valuation $-D_K$. Hence $\vp(S_n)>-D_K$ for $nm \text{ with } y\equiv m\pmod c . \end{equation} \begin{lemma}\label{lem:jump} If $m\in U_p$, then $\min_{i\ge1}\bigl(\Lambda(m+ic)-\Lambda(m)\bigr)=c(p-1)$. \end{lemma} \begin{proof} Let $\Delta=\min_{i\ge1}\bigl(i+s_p(m+ic)-s_p(m)\bigr)$; the minimum exists since the quantity tends to infinity with $i$, and $\Delta\ge1$ because $m\in U_p$. Since $s_p(y)\equiv y\pmod{p-1}$, we have $\Lambda(y)\equiv(1+c)y=(p-1)y\equiv0\pmod{p-1}$ for every $y$, so $c\Delta\equiv0\pmod{p-1}$. As $c=p-2$ and $p-1$ are coprime, $(p-1)\mid\Delta$, hence $\Delta\ge p-1$. On the other hand, taking $i=1$ and using $s_p(m+c)\le s_p(m)+s_p(c)=s_p(m)+c$, we get $\Delta\le1+c=p-1$. \end{proof} \begin{proof}[Proof of Theorem~\ref{thm:density}] Fix a residue class modulo $c$, with elements $x_0