TOPICS
Search

Arithmetic Complexity


The arithmetic complexity a(n) of a positive integer n is the minimum m for which there is a sequence x_0,x_1,...,x_m with x_0=1, x_m=n, and

 x_k in {x_i+x_j,x_i-x_j,x_ix_j} for 0<=i,j<k

for every k>0. Thus a(n) is the length of a shortest straight-line computation of n using only addition, subtraction, and multiplication. For n=1, 2, ..., its values begin 0, 1, 2, 2, 3, 3, 4, 3, 3, 4, 4, 4, 5, 4, 4, 3, ... (OEIS A173419).

The conjecture that a(p)>=a(p-1) for every prime number p was disproved by Patanè (2026), who proved that the primes below 5000 satisfying a(p)<a(p-1) are exactly

 3359, 3623, 4909, 4943.

The scripts used for the exhaustive enumeration were produced with help from Claude. Patanè (2026) reports that he found the results through the scripts and verified the computations.


See also

Addition Chain, Integer Complexity

Explore with Wolfram|Alpha

References

Patanè, R. "Counterexamples to a Conjecture of Kamenetsky on OEIS A173419." 21 Sep 2026. https://arxiv.org/abs/2609.28512.Sloane, N. J. A. Sequence A173419 in "The On-Line Encyclopedia of Integer Sequences."

Cite this as:

Weisstein, Eric W. "Arithmetic Complexity." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/ArithmeticComplexity.html

Subject classifications