OFFSET
1,2
COMMENTS
The subchain numbers used are: 0, 1, 2, 4, 8, 6, 22, 44, 88, 7, 3, 16, 20, 222, 444, 888, 17, 9, 10, 11, 12, 5, 14, 15, 18, 87, 19, 13, 26, 23, 25, 28, 21, 29, ...
LINKS
Hiroaki Yamanouchi, Table of n, a(n) for n = 1..100000
EXAMPLE
After 186, the next term can be any of 186 + {1,8,6,18,16,86,186}, and 16 is the smallest of these that has not yet been used, so the next term is 186+16 = 202.
MATHEMATICA
f[n_] := Block[{used = {0}, s = Table[1, {n}], k}, For[k = 2, k <= n, k++, s[[k]] = s[[k - 1]] + SelectFirst[ FromDigits /@ Rest@ DeleteDuplicates@ Sort@ Subsets@ IntegerDigits@ s[[k - 1]], ! MemberQ[used, #] &]; AppendTo[used, s[[k]] - s[[k - 1]]] ]; s ]; f@36. (* If you want to see the "used" data as well, replace the "s" near the end of the function with "{s, used}" *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Jean-Marc Falcoz, Apr 17 2015 and Michael De Vlieger, Apr 19 2015
EXTENSIONS
a(35)-a(48) from Hiroaki Yamanouchi, May 03 2015
STATUS
approved