Addition chain

In mathematics, an addition chain for computing a positive integer n can be given by a sequence of natural numbers starting with 1 and ending with n, such that each number in the sequence is the sum of two previous numbers.

The length of an addition chain is the number of sums needed to express all its numbers, which is one less than the cardinality of the sequence of numbers.

[1] As an example: (1,2,3,6,12,24,30,31) is an addition chain for 31 of length 7, since Addition chains can be used for addition-chain exponentiation.

This method allows exponentiation with integer exponents to be performed using a number of multiplications equal to the length of an addition chain for the exponent.

For instance, the addition chain for 31 leads to a method for computing the 31st power of any number n using only seven multiplications, instead of the 30 multiplications that one would get from repeated multiplication, and eight multiplications with exponentiation by squaring: Calculating an addition chain of minimal length is not easy; a generalized version of the problem, in which one must find a chain that simultaneously forms each of a sequence of values, is NP-complete.

[2] There is no known algorithm which can calculate a minimal addition chain for a given number with any guarantees of reasonable timing or small memory usage.

However, several techniques are known to calculate relatively short chains that are not always optimal.

[3] One very well known technique to calculate relatively short addition chains is the binary method, similar to exponentiation by squaring.

In this method, an addition chain for the number

is obtained recursively, from an addition chain for

is even, it can be obtained in a single additional sum, as

is odd, this method uses two sums to obtain it, by computing

[3] The factor method for finding addition chains is based on the prime factorization of the number

as one of its prime factors, then an addition chain for

can be obtained by starting with a chain for

, modified by multiplying each of its numbers by

The ideas of the factor method and binary method can be combined into Brauer's m-ary method by choosing any number

), recursively constructing a chain for

Additional refinements of these ideas lead to a family of methods called sliding window methods.

so that there exists an addition chain of length

is the Hamming weight (the number of ones) of the binary expansion of

[4] One can obtain an addition chain for

by including one additional sum

may have a shorter chain than the one obtained in this way.

A Brauer chain or star addition chain is an addition chain in which each of the sums used to calculate its numbers uses the immediately previous number.

A Brauer number is a number for which a Brauer chain is optimal.

⁠ is the length of the shortest star chain.

But Hansen showed that there are some values of n for which l(n) ≠ l*(n), such as n = 26106 + 23048 + 22032 + 22016 + 1 which has l*(n) = 6110, l(n) ≤ 6109.

The Scholz conjecture (sometimes called the Scholz–Brauer or Brauer–Scholz conjecture), named after Arnold Scholz and Alfred T. Brauer), is a conjecture from 1937 stating that This inequality is known to hold for all Hansen numbers, a generalization of Brauer numbers; Neill Clift checked by computer that all

[6] Clift further verified that in fact