pith. sign in

arxiv: 2603.20876 · v2 · submitted 2026-03-21 · 🧮 math.NT · math.CO

Upper and lower estimates for integer complexity

Pith reviewed 2026-05-15 06:58 UTC · model grok-4.3

classification 🧮 math.NT math.CO
keywords integer complexityaddition-multiplication chainsasymptotic estimatesalmost all integerslogarithmic boundsdensity argumentsnumber theory
0
0 comments X

The pith

Integer complexity of almost all n satisfies ||n|| ≤ C_avg log n + o(log n) as n tends to infinity.

A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.

The paper examines the integer complexity ||n||, the smallest number of 1's needed to form n using additions, multiplications, and parentheses. It establishes that this quantity is at most C_avg log n plus a term that is o(log n) for all but a vanishing proportion of integers. This sharpens the known uniform upper bound of 3 log_2 n and shows that the lim sup of ||n||/log n cannot exceed the average-case constant C_avg. The work also supplies the first nontrivial lower bound ||n|| ≥ 3.06 log_3 n that holds for almost all n.

Core claim

Let ||n|| denote the least number of 1's required to write the positive integer n using additions, multiplications, and parentheses. We prove that ||n|| ≤ C_avg log n + o(log n) as n → ∞, which in particular yields lim sup ||n||/log n ≤ C_avg. We also prove that ||n|| ≥ 3.06 log_3 n for almost all positive integers n.

What carries the argument

The complexity function ||n|| together with density estimates on the count of integers expressible with a bounded number of 1's.

If this is right

  • lim sup ||n||/log n ≤ C_avg ≈ 3.236
  • Almost all n obey the lower bound ||n|| ≥ 3.06 log_3 n
  • The typical growth rate of complexity is asymptotically controlled by the average-case constant
  • The worst-case bound 3 log_2 n is superseded for all but o(1) density of integers

Where Pith is reading between the lines

These are editorial extensions of the paper, not claims the author makes directly.

  • Numbers attaining near-maximal complexity must form a zero-density set
  • Further sharpening of the 3.06 constant would pin down the typical growth rate more precisely
  • The same density techniques could apply to related problems such as minimal length of addition-multiplication expressions in other semirings

Load-bearing premise

The constant C_avg is taken as given from earlier average-complexity results, and the counting arguments apply uniformly outside a negligible set of integers.

What would settle it

An infinite sequence of n where ||n|| exceeds C_avg log n by more than any o(log n) term, or a positive-density set of n where ||n|| falls below 3.06 log_3 n.

read the original abstract

Let $\|n\|$ stand for the integer complexity of the number $n$, i.e. for the least number of $1$'s needed to write $n$ using arbitrary many additions, multiplications, and parentheses. The two-sided inequality $3\log_3 n\leq\|n\|\leq 3\log_2 n$ for all $n$ is well known and reveals the logarithmic behaviour of the complexity function $\|n\|$. While the lower bound $3\log_3 n$ is attained infinitely many times at powers of $3$, the best upper estimate is still unknown, although there are some improvements of the trivial bound $3\log_2 n$. Besides, for $``$typical$"$ numbers, i.e. for almost all numbers $n$, the better inequality $\|n\|\leq C_{avg}\log n$ holds, where, importantly, $C_{avg}\approx 3.236<\sup_{n} \frac{\|n\|}{\log n}$. We show that in fact $\|n\|\leq C_{avg}\log n+o(\log n)$ as $n\to\infty$, which, in particular, yields that $\limsup\limits_{n\to\infty}\frac{\|n\|}{\log n}\leq C_{avg}$. We also obtain the first nontrivial lower bound $\|n\|\geq 3.06\log_3 n$ for almost all numbers $n$.

Editorial analysis

A structured set of objections, weighed in public.

Desk editor's note, referee report, simulated authors' rebuttal, and a circularity audit. Tearing a paper down is the easy half of reading it; the pith above is the substance, this is the friction.

Referee Report

2 major / 2 minor

Summary. The paper proves that the integer complexity ||n|| satisfies ||n|| ≤ C_avg log n + o(log n) as n→∞ for every positive integer n, where C_avg≈3.236 is the constant appearing in the known average-case upper bound for almost all n; this immediately yields lim sup ||n||/log n ≤ C_avg. It also establishes the first nontrivial lower bound ||n|| ≥ 3.06 log_3 n that holds for almost all n.

Significance. If the o(log n) error term is rigorously justified, the result shows that the average-case constant C_avg governs the worst-case growth of ||n|| up to lower-order terms, closing the gap between the known average and the lim sup. The new lower bound for typical integers is a concrete improvement over the universal 3 log_3 n bound and supplies the first quantitative statement about the complexity of a density-1 set.

major comments (2)
  1. [§3, Theorem 3.1] §3, Theorem 3.1 (uniform upper bound): the passage from the average-case inequality ||n|| ≤ C_avg log n (valid for almost all n) to the uniform statement with additive o(log n) error invokes asymptotic counting arguments from the literature without an explicit estimate on the size or complexity of the exceptional set; any non-uniformity in that set could produce deviations larger than o(log n), which would invalidate both the uniform bound and the consequent lim sup claim.
  2. [§5] §5, proof of the lower bound: the constant 3.06 is obtained by optimizing a parameter in a counting argument over residue classes or factorizations, but the manuscript does not display the explicit optimization or the resulting error term; it is therefore unclear whether 3.06 is the best constant obtainable by the method or merely a convenient numerical value.
minor comments (2)
  1. Throughout the paper the base of the logarithm in the upper bound is left implicit; while C_avg is defined with respect to a specific base in the cited literature, an explicit statement (e.g., “log denotes the natural logarithm”) would remove ambiguity.
  2. [Abstract] The abstract states “log n” in the upper bound but “log_3 n” in the lower bound; consistent notation (or a clarifying sentence) would improve readability.

Simulated Author's Rebuttal

2 responses · 0 unresolved

We thank the referee for the thorough review and constructive feedback on our paper. We respond to the major comments point by point, indicating where revisions will be made to address the concerns.

read point-by-point responses
  1. Referee: [§3, Theorem 3.1] §3, Theorem 3.1 (uniform upper bound): the passage from the average-case inequality ||n|| ≤ C_avg log n (valid for almost all n) to the uniform statement with additive o(log n) error invokes asymptotic counting arguments from the literature without an explicit estimate on the size or complexity of the exceptional set; any non-uniformity in that set could produce deviations larger than o(log n), which would invalidate both the uniform bound and the consequent lim sup claim.

    Authors: The referee correctly identifies that the manuscript relies on asymptotic results from the literature for the exceptional set without providing explicit bounds. To resolve this, we will revise the proof in §3 to incorporate explicit estimates on the size and complexity of the exceptional set, ensuring that the additive error is indeed o(log n) for all n. This addition will also solidify the lim sup result. revision: yes

  2. Referee: [§5] §5, proof of the lower bound: the constant 3.06 is obtained by optimizing a parameter in a counting argument over residue classes or factorizations, but the manuscript does not display the explicit optimization or the resulting error term; it is therefore unclear whether 3.06 is the best constant obtainable by the method or merely a convenient numerical value.

    Authors: We will update §5 to include the explicit optimization details for the parameter in the counting argument. This will show the function being minimized, the numerical optimization process, and confirm the error term, demonstrating that 3.06 is the value derived from the method rather than an arbitrary choice. revision: yes

Circularity Check

0 steps flagged

No significant circularity in derivation of uniform upper bound or almost-all lower bound

full rationale

The paper takes the constant C_avg as an independently established quantity from prior literature for the average-case bound on almost all n, then derives the new uniform bound ||n|| ≤ C_avg log n + o(log n) via asymptotic counting arguments that control the exceptional set. This extension does not reduce by construction to a self-definition, fitted input, or self-citation chain within the paper; the o(log n) term is obtained from uniform estimates on counting measures rather than re-fitting C_avg. The new lower bound ||n|| ≥ 3.06 log_3 n for almost all n is obtained separately via direct probabilistic or density arguments without reference to the upper-bound results or C_avg. No load-bearing self-citations, ansatzes smuggled via citation, or renamings of known results appear in the central claims. The derivation remains self-contained against external benchmarks for C_avg.

Axiom & Free-Parameter Ledger

1 free parameters · 1 axioms · 0 invented entities

Claims rest on the standard definition of integer complexity, the pre-existing average constant C_avg, and basic asymptotic analysis tools; no new entities are introduced.

free parameters (1)
  • C_avg = 3.236
    Approximate average complexity constant taken from prior literature and used to bound the limsup.
axioms (1)
  • standard math Standard properties of logarithms and asymptotic notation for counting constructions in the addition-multiplication semigroup.
    Invoked to establish the o(log n) error term and the almost-everywhere lower bound.

pith-pipeline@v0.9.0 · 5551 in / 1371 out tokens · 42230 ms · 2026-05-15T06:58:56.729550+00:00 · methodology

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Lean theorems connected to this paper

Citations machine-checked in the Pith Canon. Every link opens the source theorem in the public Lean library.

What do these tags mean?
matches
The paper's claim is directly supported by a theorem in the formal canon.
supports
The theorem supports part of the paper's argument, but the paper may add assumptions or extra steps.
extends
The paper goes beyond the formal theorem; the theorem is a base layer rather than the whole result.
uses
The paper appears to rely on the theorem as machinery.
contradicts
The paper's claim conflicts with a theorem or certificate in the canon.
unclear
Pith found a possible connection, but the passage is too broad, indirect, or ambiguous to say the theorem truly supports the claim.

Reference graph

Works this paper leans on

18 extracted references · 18 canonical work pages · 3 internal anchors

  1. [1]

    Altman,Integer complexity: representing numbers of bounded defect, Theor

    H. Altman,Integer complexity: representing numbers of bounded defect, Theor. Comput. Sci. 652 (2016), 64–85

  2. [2]

    Altman,Integer complexity: algorithms and computational results, Integers 18(45) (2018)

    H. Altman,Integer complexity: algorithms and computational results, Integers 18(45) (2018)

  3. [3]

    Altman, J

    H. Altman, J. Zelinsky,Numbers with integer complexity close to the lower bound, Integers 12(6) (2012), 1093–1125

  4. [4]

    Amano,Integer complexity and mixed binary-ternary representation, Leibniz Int

    K. Amano,Integer complexity and mixed binary-ternary representation, Leibniz Int. Proc. Inform. (LIPIcs) 248(29) (2022), 1–16

  5. [5]

    defect check local.py

    J. Arias de Reyna,Complexity of integer numbers, Integers 24 (2024) (translation fromComplejidad de los n´ umeros naturales, Gaceta R. Soc. Mat. Esp. 3 (2000), 230–250). 3Access the code “defect check local.py” via thelink . 13

  6. [6]

    Algorithms for determining integer complexity

    J. Arias de Reyna, J. van de Lune,Algorithms for determining integer complexity, arXiv:1404.2183

  7. [7]

    Cordwell, A

    K. Cordwell, A. Epstein, A. Hemmady, S. J. Miller, E. Palsson, A. Sharma, S. Steinerberger, Y. N. T. Vu,On algorithms to calculate integer complexity, Integers 19 (2019), A12

  8. [8]

    Guy,Some suspiciously simple sequences, Amer

    R.K. Guy,Some suspiciously simple sequences, Amer. Math. Monthly 93(3) (1986), 186–190

  9. [9]

    He,Improved algorithms for integer complexity, Proceedings of 2024 Symposium on Simplicity in Algorithms (SOSA), 107–114

    Q. He,Improved algorithms for integer complexity, Proceedings of 2024 Symposium on Simplicity in Algorithms (SOSA), 107–114

  10. [10]

    Integer Complexity: Experimental and Analytical Results

    J. Iraids, K. Balodis, J. ˘Cer¸ nenoks, M. Opmanis, R. Opmanis, K. Podnieks,Integer complexity: experimental ana analytical results, arXiv:1203.6462, Scientific Papers University of Latvia, Comp. Sci. and Inf. Tech. 787 (2012), 153– 179

  11. [11]

    Iwaniec, E

    H. Iwaniec, E. Kowalski,Analytic number theory, AMS, Providence, 2004

  12. [12]

    Kuipers, H

    L. Kuipers, H. Niederreiter,Uniform distribution of sequences, Wiley, New York, 1974

  13. [13]

    Mahler, J

    K. Mahler, J. Popken,On a maximum problem in arithmetics (Dutch), Nieuw Arch. Wiskunde 3(1) (1953), 1–15

  14. [14]

    Rawsthorne,How many1’s are needed?, Fibonacci Quart

    D.A. Rawsthorne,How many1’s are needed?, Fibonacci Quart. 27(1) (1989), 14–17

  15. [15]

    An Application of Markov Chain Analysis to Integer Complexity

    C. Shriver,An application of Markov chain analysis to integer complexity, arXiv:1511.07842

  16. [16]

    Sloane,The on-line encyclopedia of integer sequences

    N.J.A. Sloane,The on-line encyclopedia of integer sequences. The complexity ofn: number of1’s required to buildn using+and·, https://oeis.org/A005245

  17. [17]

    Steinerberger,A short note on integer complexity, Contrib

    S. Steinerberger,A short note on integer complexity, Contrib. Discrete Math. 9(1) (2014)

  18. [18]

    Zelinsky,Upper bounds on integer complexity, arXiv:2211.02995

    J. Zelinsky,Upper bounds on integer complexity, arXiv:2211.02995. Sergei Konyagin, Steklov Mathematical Institute, Gubkina Str. 8, Moscow 119991, Russia Email address:konyagin@mi-ras.ru Kristina Oganesyan, Steklov Mathematical Institute, Gubkina Str. 8, Moscow 119991, Russia Email address:kristina.oganesyan@mi-ras.ru 14