Powers of a Prime in the Image of Summatory Valuation Functions

Primarily AI-generated textHuman understanding: all partsmath.NT — Number Theorymath.NA — Numerical Analysis

Contributed by Frank Vega ↗

Version 1 / Nov 03, 2026 / CC BY 4.0

Abstract

J.-L. Nicolas asked how often a power of 22 belongs to the image of c(n)=∑k≤n2v2(k)c(n)=\sum_{k\le n}2^{v_2(k)}, where v2v_2 is the 22-adic valuation, and showed that both the number A(x)A(x) of exponents a≤xa\le x with 2a2^a in the image and the number B(x)B(x) of the other exponents tend to infinity. We prove the identity c(n)=n+12∑ii 2ic(n)=n+\frac12\sum_{i}i\,2^{i}, the sum running over the positions of the binary digits 11 of nn, so that 2a2^a lies in the image of cc if and only if 2a+32^{a+3} is a sum of distinct terms of the superincreasing sequence (j2j)j≥1(j2^j)_{j\ge1}. For every exponent there is at most one possible largest term KK, given by K+⌈log⁡2K⌉=a+3K+\lceil\log_2K\rceil=a+3, and no such KK exists exactly when a=2r+r−2a=2^r+r-2. The remaining exponents are decided by an explicit recursion on pairs of integers bounded by a+3a+3, in at most a+1a+1 steps. We give the closed formula c(2K−2+2K−s−2)=2K+h−3c(2^{K-2}+2^{K-s-2})=2^{K+h-3} for s=2ks=2^k, h≡k(mod2k+1)h\equiv k\pmod{2^{k+1}} and K=(2h+s+s)/(2s+1)K=(2^{h+s}+s)/(2^s+1), and infinite explicit families of exponents aa for which 2a2^a is not in the image, indexed by s=3s=3 and s=2is=2^i; the families given by Nicolas are the cases s=1s=1 and s=2s=2. As a consequence, A(x)≥(2+o(1))log⁡2xA(x)\ge(2+o(1))\log_2x and B(x)≥(54+12∑i≥112i−1+o(1))log⁡2x=(2.0533…+o(1))log⁡2xB(x)\ge(\frac54+\frac12\sum_{i\ge1}\frac{1}{2^i-1}+o(1))\log_2x=(2.0533\ldots+o(1))\log_2x. We prove that the states of the recursion form a forest, rooted at the states (J,0)(J,0) and at the failing states, in which every state (J′,w′)(J',w') has exactly v2(J′+1+w′)v_2(J'+1+w') children; that the sets SJS_J of successful states are symmetric; that exactly half of them lie in the tree of the root (1,0)(1,0); that N(2k+1)=N(2k)N(2k+1)=N(2k); that 4∣N(J)4\mid N(J) for J≥4J\ge4; and that SJS_J satisfies a recursion from the smallest elements upwards, with period J/2J/2 for even JJ. The symmetry gives further explicit families, among them c(22r−1)=22r+r−1c(2^{2^r}-1)=2^{2^r+r-1}, and the improved bounds A(x)≥(3.9655…+o(1))log⁡2xA(x)\ge(3.9655\ldots+o(1))\log_2x and B(x)≥(2.8178…+o(1))log⁡2xB(x)\ge(2.8178\ldots+o(1))\log_2x. For every prime pp, the function cp(n)=∑k≤npvp(k)c_p(n)=\sum_{k\le n}p^{v_p(k)} counts the factor 1−X1-X in (1−X)⋯(1−Xn)(1-X)\cdots(1-X^n) over Fp\mathbb{F}_p; we extend to it the reduction, the unique candidate, the recursions and the symmetry, give explicit families, and describe completely the exponents rejected at the first step, which occur only for odd pp. We also report experiments in exact integer arithmetic: every statement is checked by three independent methods, the values of A(x)A(x) reproduce the table of Nicolas, the sets SJS_J are computed for J≤131072J\le131072, and A(x)/xA(x)/x lies between 0.51320.5132 and 0.87500.8750 for x=1000,2000,…,131000x=1000,2000,\dots,131000.

Provenance statement

The author used Claude Opus 5.5 to assist in deriving the proofs, to write the experiment script powers_of_two_c.py, and in preparing this manuscript; the author ran the experiments. After using this tool, the author reviewed and edited the content as needed and takes full responsibility for the content of the publication.
AI provenance filespowers_of_two_c.py · 58 KB

Tools used

Anthropic
Claude OpusVersion 5.5

References

  1. Nicolas, Jean-Louis. Some open questions. The Ramanujan Journal, vol. 9, pp. 251–264. 2005DOI
  2. Sloane, N. J. A.; Plouffe, Simon. The Encyclopedia of Integer Sequences. Academic Press. 1995
  3. Hwang, Hsien-Kuei; Janson, Svante; Tsai, Tsung-Hsi. Identities and periodic oscillations of divide-and-conquer recurrences splitting at half. Advances in Applied Mathematics, vol. 155, pp. 102653. 2024. Full version: arXiv:2210.10968arXivDOI
  4. de la Bretèche, Régis; Pomerance, Carl; Tenenbaum, Gérald. Products of ratios of consecutive integers. The Ramanujan Journal, vol. 9, pp. 131–138. 2005DOI

Version history

  1. v1Submitted by Frank VegaInitial depositCurrentNov 02, 2026