OFFSET
1,2
LINKS
Hans Havermann, Table of n, a(n) for n = 1..1000
Eric Angelini, Smallest digit makes the difference
E. Angelini, Smallest digit makes the difference [Cached copy, with permission]
EXAMPLE
a(2) = 10 because it is the smallest number containing two digits whose difference is 1.
a(3) = 11 because it is the smallest number containing two digits whose difference is 0.
MATHEMATICA
A = {1}; Do[d = Min@IntegerDigits@Last@A; k = 10; While[MemberQ[A, k] || ! MemberQ[ Abs[ Subtract @@@ Subsets[IntegerDigits@k, {2}]], d], k++]; AppendTo[A, k], {99}]; A (* Giovanni Resta, Jan 16 2014 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Eric Angelini, Jan 16 2014
STATUS
approved