Integer complexity

Uses your system voice; voice and rate in settings.

Snapshot

≈ 3 min read

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

In number theory, the complexity of an integer is the smallest number of ones that can be used to represent it using ones and any number of additions, multiplications, and parentheses. It is always within a constant factor of the logarithm of the given integer.

In number theory, the complexity of an integer is the smallest number of ones that can be used to represent it using ones and any number of additions, multiplications, and parentheses. It is always within a constant factor of the logarithm of the given integer. ==Example== For instance, the number 11 may be represented using eight ones: 11 = (1 + 1 + 1) × (1 + 1 + 1) + 1 + 1. However, it has no representation using seven or fewer ones. Therefore, its complexity is 8. The complexities of the numbers 1, 2, 3, ... are 1, 2, 3, 4, 5, 5, 6, 6, 6, 7, 8, 7, 8, 8, 8, 8, 9, 8, ... The smallest numbers with complexity 1, 2, 3, ... are 1, 2, 3, 4, 5, 7, 10, 11, 17, 22, 23, 41, 47, ... ==Upper and lower bounds== The question of expressing integers in this way was originally considered by . They asked for the largest number with a given complexity ; later, Selfridge showed that this number is 2^x3^{(k-2x)/3} \text{ where } x = -k\bmod 3. For example, when , and the largest integer that can be expressed using ten ones is . Its expression is (1 + 1) × (1 + 1) × (1 + 1 + 1) × (1 + 1 + 1). Thus, the complexity of an integer is at least . The complexity of is at most (approximately ): an expression of this length for can be found by applying Horner's method to the binary representation of . Almost all integers have a representation whose length is bounded by a logarithm with a smaller constant factor, . ==Algorithms and counterexamples== The complexity \|n\| of every integer up to some threshold can be calculated in total time O(N\log^{O(1)}N) . The complexity of a single integer n can be computed in sublinear time, O(n^{0.6514}) . Algorithms for computing the integer complexity have been used to disprove several conjectures about the complexity. In particular, it is not necessarily the case that the optimal expression for a number is obtained either by subtracting one from or by expressing as the product of two smaller factors. The smallest example of a number whose optimal expression is not of this form is 353942783. It is a prime number, and therefore also disproves a conjecture of Richard K. Guy that the complexity of every prime number is one plus the complexity of . In fact, \|353942783\| = \|353942782\| = 63. Moreover, Venecia Wang gave examples of other numbers whose integer complexity does not reflect the obvious formula for these numbers: \begin{align} \|743 \times 2\| = \|743\| &= 22 \\ \|166571 \times 3\| = \|166571\| &= 39 \\ \|97103 \times 5\| = \|97103\| &= 38 \\ 2 \|23\| > \|23^2\| &= 20.\\ \end{align} ==References== ==External links== Jānis Iraids, Complexity calculate complexity n <= 10^12

Text derived from https://en.wikipedia.org/w/index.php?oldid=1374217834 under CC BY-SA 4.0; modifications have been made.

Provenance

snapshot enwiki-001374217834 · captured 1789049087.0 · version history

Cite this page as: encyclopegia.org, “Integer complexity”, snapshot enwiki-001374217834. https://encyclopegia.org/a/integer-complexity