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 2 / 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 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 both tend to infinity. We prove 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 membership is then decided by an explicit recursion on pairs of integers at most a+3a+3, in at most a+1a+1 steps. The exponents without such a KK and the exponents decided in at most one step form explicit infinite families, described completely, which contain the three families of Nicolas. The states of the recursion form a forest and the set of successful states is symmetric; this yields further explicit families and the 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, whereas the families of Nicolas give the constants 12\frac12 and 32\frac32. The reduction, the unique candidate, the recursion and the symmetry extend to cp(n)=∑k≤npvp(k)c_p(n)=\sum_{k\le n}p^{v_p(k)} for every prime pp. Computations in exact integer arithmetic reproduce the table of Nicolas and give A(x)A(x) for x≤262000x\le262000, with A(x)/xA(x)/x between 0.51320.5132 and 0.87500.8750 for x=1000,2000,…,262000x=1000,2000,\dots,262000.

Author comments: In this new version, we add new computer-based experiments.

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 · 66 KB

Tools used

Anthropic
Claude OpusVersion 5.5

References

  1. Dixmier, Jacques; Nicolas, Jean-Louis. Parité de certains nombres de partitions. Travaux Mathématiques, Publication du Centre Universitaire de Luxembourg, vol. 13, pp. 93–153. 2002
  2. Nicolas, Jean-Louis. Some open questions. The Ramanujan Journal, vol. 9, pp. 251–264. 2005DOI
  3. Sloane, N. J. A.; Plouffe, Simon. The Encyclopedia of Integer Sequences. Academic Press. 1995
  4. 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
  5. 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
  6. OEIS Foundation Inc. Entry A006520, Partial sums of A006519, in The On-Line Encyclopedia of Integer Sequences. 2026. Accessed on 10 November 2026. https://oeis.org/A006520link
  7. Allouche, Jean-Paul; Shallit, Jeffrey. The ring of kk-regular sequences. Theoretical Computer Science, vol. 98, no. 2, pp. 163–197. 1992DOI
  8. Flajolet, Philippe; Grabner, Peter; Kirschenhofer, Peter; Prodinger, Helmut; Tichy, Robert F. Mellin transforms and asymptotics: digital sums. Theoretical Computer Science, vol. 123, no. 2, pp. 291–314. 1994
  9. Merkle, Ralph C.; Hellman, Martin E. Hiding information and signatures in trapdoor knapsacks. IEEE Transactions on Information Theory, vol. 24, no. 5, pp. 525–530. 1978DOI

Version history

  1. v1 · 22 pagesSubmitted by Frank VegaInitial depositSupersededNov 02, 2026
  2. v2 · 29 pagesSubmitted by Frank VegaIn this new version, we add new computer-based experiments.CurrentNov 10, 2026