OFFSET
0,3
FORMULA
a(n) = A261793(n) for n >= 1. - Georg Fischer, Oct 30 2018
EXAMPLE
In a(13) = 19 we can see a 1 but no 2, so a(14) = 19+2 = 21. Now we can see a 1 and a 2 but no 3, so a(15) = 21+3 = 24.
MATHEMATICA
r[n_]:=Rest[Subsets[IntegerDigits[n]]];
s[n_]:=Union[FromDigits/@r[n]]; firstN[0]=1; firstN[1]=2;
firstN[n_]:=Min[Select[Range[Last[s[n]]], FreeQ[s[n], #]&]];
nextTerm[n_]:=n+firstN[n]; FoldList[nextTerm[#]&, 0, Range@87] (* Ivan N. Ianakiev, Sep 20 2015 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Sep 19 2015
EXTENSIONS
Typo in a(61) corrected by Ivan N. Ianakiev, Sep 20 2015
STATUS
approved