OFFSET
1,2
COMMENTS
As A009993 is finite, this sequence is necessarily finite.
Corresponding records are 1, 2, 3, 4, 6, 8, 9, 10, 11, ...
EXAMPLE
MATHEMATICA
s[n_] := DivisorSum[n, 1 &, Less @@ IntegerDigits[#] &]; seq = {}; sm = 0; Do[If[(sn = s[n]) > sm, sm = sn; AppendTo[seq, n]], {n, 1, 10^4}]; seq (* Amiram Eldar, Sep 17 2022 *)
PROG
(PARI) isok(d) = Set(d=digits(d)) == d; \\ A009993
f(n) = sumdiv(n, d, isok(d)); \\ A357171
lista(nn) = my(r=0, list = List()); for (k=1, nn, my(m=f(k)); if (m>r, listput(list, k); r = m); ); Vec(list); \\ Michel Marcus, Sep 18 2022
CROSSREFS
KEYWORD
nonn,base,fini
AUTHOR
Bernard Schott, Sep 17 2022
EXTENSIONS
More terms from Amiram Eldar, Sep 17 2022
STATUS
approved