Define $\|n\|$ to be the complexity of $n$, the smallest number of ones needed to write $n$ using an arbitrary combination of addition and multiplication. Define $n$ to be stable if for all $k\ge 0$, we have $\|3^k n\|=\|n\|+3k$. In [7], this author and Zelinsky showed that for any $n$, there exists some $K=K(n)$ such that $3^K n$ is stable; however, the proof there provided no upper bound on $K(n)$ or any way of computing it. In this paper, we describe an algorithm for computing $K(n)$, and thereby also show that the set of stable numbers is a computable set. The algorithm is based on considering the defect of a number, defined by $δ(n):=\|n\|-3\log_3 n$, building on the methods presented in [3]. As a side benefit, this algorithm also happens to allow fast evaluation of the complexities of powers of $2$; we use it to verify that $\|2^k 3^\ell\|=2k+3\ell$ for $k\le48$ and arbitrary $\ell$ (excluding the case $k=\ell=0$), providing more evidence for the conjecture that $\|2^k 3^\ell\|=2k+3\ell$ whenever $k$ and $\ell$ are not both zero. An implementation of these algorithms in Haskell is available.
Integer Complexity: Experimental and Analytical Results II
我们考虑用1、加法、乘法和括号来表示自然数。$\left\| n \right\|$表示表示$n$的表达式中1的最小数目。对数复杂度$\left\| n \right\|_{\log}$定义为$\left\| n \right\|/{\log_3 n}$。$\left\| n \right\|_{\log}$的值位于片段$[3, 4.755]$中,但几乎不知道关于该“谱”的结构的确定性(值是否密集在片段中的某处等)。我们建立了一个连接这个问题和另一个困难的问题:看似“几乎随机”的行为的数字在基地3表示的数字$2^n$。我们还考虑表示自然数的表达式,包括减法,和所谓的$P$ -算法-一个家庭的“确定性”的算法,用于建立表示的数字。
我们考虑一个问题,首先提出了马勒和Popken在1953年,后来发展的Coppersmith,Erdensys,盖伊,Isbell,Selfridge,和其他人。令$f(n)$为$n \in \mathbb{Z^{+}}$的复杂度,其中$f(n)$定义为表示$n$所需的最少数量的$1$,以及任意数量的$+$、$*$和括号.已经开发了几种算法来计算高达$n$的所有整数的复杂度。目前,已知最快的算法是$\mathcal{O}(n^{1.230175})$,由J. Arias de Reyna和J. van de Lune在2014年给出。该算法利用Guy给出的递归定义,并迭代通过$d \ |\ n$的乘积$f(d) + f\left(\frac{n}{d}\right)$和$a$的求和$f(a) + f(n - a)$,直到$n$的某个函数。速率限制因素是迭代求和。我们讨论了潜在的改进,该算法通过一种方法,提供了一个强大的统一的上限的数目,必须计算几乎所有的$n$的被加数。我们还开发了代码来运行J. Arias de Reyna和J. van de Lune的分析,从而将$\mathcal{O}(n^{1.230175})$的运行时间减少到$\mathcal{O}(n^{1.222911236})$。我们所有的代码都可以在网上找到:https://github.com/kcordwel…