OFFSET
1,2
LINKS
David W. Wilson, Table of n, a(n) for n = 1..1024
EXAMPLE
The digits of exactly 19 numbers are a subsequence of 10201: 0, 1, 2, 10, 11, 12, 20, 21, 100, 101, 102, 120, 121, 201, 1001, 1020, 1021, 1201, and 10201. No number smaller than 10201 has this property. Hence a(19) = 10201.
MATHEMATICA
t = Table[Length@ Union@ Map[FromDigits, Subsets@ IntegerDigits@ n /. {} -> Nothing], {n, 0, 103000}]; Table[FirstPosition[t, n] - 1, {n, Max@ t}] // Flatten (* Michael De Vlieger, Aug 08 2016, Version 10.2 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
David W. Wilson, Aug 08 2016
STATUS
approved