OFFSET
1,2
COMMENTS
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
MATHEMATICA
Block[{nn = 66, a = {}}, Do[k = 1; While[Or[MemberQ[a, k], SequencePosition[IntegerDigits[Total@ a + k, 2], #] == {}], k++] &@ IntegerDigits[n, 2]; AppendTo[a, k], {n, 3 nn}]; Take[#, nn] &@ SortBy[MapIndexed[{First@ #2, #1} &, a], Last][[All, 1]]] (* Michael De Vlieger, Aug 09 2017 *)
PROG
(Haskell)
import Data.List (elemIndex); import Data.Maybe (fromJust)
a236341 = (+ 1) . fromJust . (`elemIndex` a160855_list)
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Reinhard Zumkeller, Mar 13 2014
EXTENSIONS
Better definition from Michael De Vlieger, Aug 09 2017
STATUS
approved