The sign of D(n) − Φ(n) for relatively prime subsets
Let $f(n)$ be the number of subsets of $\{1,\dots,n\}$ with greatest common divisor $1$, let $\Phi(n)$ be the number of nonempty subsets $A$ of $\{1,\dots,n\}$ with $\gcd(A\cup\{n\})=1$, and let $D(n)=\sum_{d\mid n}f(d)$. Pongsriiam observed that $D(n)-\Phi(n)$ alternates in sign for $4\le n\le 30$ and asked whether this holds for all $n\ge 4$, whether the difference changes sign infinitely often, and what can be said about the limit superior and limit inferior of $(2^{n}-D(n))/(2^{n}-\Phi(n))$. We prove that $D(n)>\Phi(n)$ for every even $n\ge 4$ and $D(n)<\Phi(n)$ for every odd $n\ge 5$. We also show that the ratio tends to $0$ along even $n$ and to infinity along odd $n$, so its limit inferior is $0$ and its limit superior is infinite. The proofs are elementary. The sign theorem, the infinitude of sign changes, and the quantitative bounds behind these limits (the theorems ratio\_even and ratio\_odd in the formalization) are verified in Lean 4 by the Lean kernel; the limit statements themselves are deduced from these bounds on paper. Lean 4 formalization: https://github.com/wray-lee/oeis-conjectures-lean (Proofs/JIS_13_9_1.lean).
Authors
- Yufeng Liu (ORCID: https://orcid.org/0000-0002-1686-0545)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-02
- DOI
- https://doi.org/10.5281/zenodo.24729140
- Primary Topic
- Analytic Number Theory Research
- Type
- preprint