HOME

TheInfoList



OR:

In
number theory Number theory is a branch of pure mathematics devoted primarily to the study of the integers and arithmetic functions. Number theorists study prime numbers as well as the properties of mathematical objects constructed from integers (for example ...
, the complexity of an integer is the smallest number of ones that can be used to represent it using ones and any number of
addition Addition (usually signified by the Plus and minus signs#Plus sign, plus symbol, +) is one of the four basic Operation (mathematics), operations of arithmetic, the other three being subtraction, multiplication, and Division (mathematics), divis ...
s,
multiplication Multiplication is one of the four elementary mathematical operations of arithmetic, with the other ones being addition, subtraction, and division (mathematics), division. The result of a multiplication operation is called a ''Product (mathem ...
s, and parentheses. It is always within a constant factor of the
logarithm In mathematics, the logarithm of a number is the exponent by which another fixed value, the base, must be raised to produce that number. For example, the logarithm of to base is , because is to the rd power: . More generally, if , the ...
of the given
integer An integer is the number zero (0), a positive natural number (1, 2, 3, ...), or the negation of a positive natural number (−1, −2, −3, ...). The negations or additive inverses of the positive natural numbers are referred to as negative in ...
.


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^ \text 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 In mathematics and computer science, Horner's method (or Horner's scheme) is an algorithm for polynomial evaluation. Although named after William George Horner, this method is much older, as it has been attributed to Joseph-Louis Lagrange by Hor ...
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 complexities of all integers up to some threshold can be calculated in total time . Algorithms for computing the integer complexity have been used to disprove several
conjecture In mathematics, a conjecture is a conclusion or a proposition that is proffered on a tentative basis without proof. Some conjectures, such as the Riemann hypothesis or Fermat's conjecture (now a theorem, proven in 1995 by Andrew Wiles), ha ...
s 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 A prime number (or a prime) is a natural number greater than 1 that is not a Product (mathematics), product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime ...
, 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, one can show that \, p\, = \, p-1\, = 63. Moreover, Venecia Wang gave some interesting examples, i.e. \, 743 \times 2\, = \, 743\, = 22, \, 166571 \times 3\, = \, 166571\, = 39, \, 97103 \times 5\, = \, 97103\, = 38, \, 23^2\, = 20 but 2 \, 23\, = 22..


References


External links

*{{mathworld, title=Integer Complexity, id=IntegerComplexity Integer sequences