On algorithms to calculate integer complexity

Katherine Cordwell, Alyssa Epstein, Anand Hemmady, Steven J. Miller, Eyvindur A. Palsson +3 more
6/26/2017
12 citations
math.NT

Official code: kcordwel/Integer-Complexity (5 stars, Python, last commit 2020-04-08).

Abstract

We consider a problem first proposed by Mahler and Popken in 1953 and later developed by Coppersmith, Erdős, Guy, Isbell, Selfridge, and others. Let $f(n)$ be the complexity of $n \in \mathbb{Z^{+}}$, where $f(n)$ is defined as the least number of $1$'s needed to represent $n$ in conjunction with an arbitrary number of $+$'s, $*$'s, and parentheses.

Show full abstract

Several algorithms have been developed to calculate the complexity of all integers up to $n$. Currently, the fastest known algorithm runs in time $\mathcal{O}(n^{1.230175})$ and was given by J. Arias de Reyna and J. van de Lune in 2014. This algorithm makes use of a recursive definition given by Guy and iterates through products, $f(d) + f\left(\frac{n}{d}\right)$, for $d \ |\ n$, and sums, $f(a) + f(n - a)$, for $a$ up to some function of $n$. The rate-limiting factor is iterating through the sums. We discuss potential improvements to this algorithm via a method that provides a strong uniform bound on the number of summands that must be calculated for almost all $n$. We also develop code to run J. Arias de Reyna and J. van de Lune's analysis in higher bases and thus reduce their runtime of $\mathcal{O}(n^{1.230175})$ to $\mathcal{O}(n^{1.222911236})$. All of our code can be found online at: https://github.com/kcordwel/Integer-Complexity.

View on arXivView PDF

Code Implementations(1)

50Python, CJul 10, 20186 years ago

Similar Papers

Cite this paper

@article{cordwell2017algorithms,
  title  = {On algorithms to calculate integer complexity},
  author = {Katherine Cordwell and Alyssa Epstein and Anand Hemmady and Steven J. Miller and Eyvindur A. Palsson and Aaditya Sharma and Stefan Steinerberger and Yen Nhi Truong Vu},
  year   = {2017},
  eprint = {1706.08424},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1706.08424}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1706.08424.svg)](https://codeofpaper.com/paper/1706.08424)

Discussion