OFFSET
1,5
REFERENCES
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
LINKS
Janis Iraids, Table of n, a(n) for n = 1..75
J. Arias de Reyna and J. van de Lune, The question "How many 1's are needed?" revisited, arXiv preprint arXiv:1404.1850 [math.NT], 2014.
Tim Peters, Python program to compute this sequence
D. A. Rawsthorne, How many 1's are needed?, Fib. Quart. 27 (1989), 14-17.
Eric Weisstein's World of Mathematics, Integer Complexity
MATHEMATICA
terms = 30;
kmax = 60000;
cpx[1] = 1; cpx[k_] := cpx[k] = Min[Sequence @@ Table[cpx[i] + cpx[k-i], {i, 1, k/2}], Sequence @@ Table[cpx[d] + cpx[k/d], {d, Divisors[k][[2 ;; -2]]}]];
Clear[a]; a[_] = 0;
Do[n = cpx[k]; a[n] += 1, {k, 1, kmax}];
Array[a, terms] (* Jean-François Alcover, Aug 30 2018 *)
CROSSREFS
KEYWORD
nonn,nice
AUTHOR
EXTENSIONS
More terms from Tim Peters (tim.one(AT)comcast.net), Nov 12 2004
a(43)-a(75) from Janis Iraids, Apr 20 2011
Name clarified by Glen Whitney, Oct 05 2021
STATUS
approved