OFFSET
1,2
COMMENTS
The sequence has 4384045 terms. - Harvey P. Dale, Jan 12 2019
Maximum term is 9876543201. Next higher number with distinct digits is 9876543210. - Alonso del Arte, Jan 09 2020
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
Patrick De Geest, World!Of Numbers
MATHEMATICA
Select[Range[1, 199, 2], Max[DigitCount[#]] == 1 &] (* Harvey P. Dale, Jan 12 2019 *)
PROG
(Scala) def hasDistinctDigits(n: Int): Boolean = {
val numerStr = n.toString
val digitSet = numerStr.split("").toSet
numerStr.length == digitSet.size
}
(1 to 199 by 2).filter(hasDistinctDigits) // Alonso del Arte, Jan 09 2020
(Python) # generates full sequence
from itertools import permutations
afull = sorted(set(int("".join(p)) for d in range(1, 11) for p in permutations("0123456789", d) if p[0] != "0" and p[-1] in "13579"))
print(afull[:100]) # Michael S. Branicky, Aug 04 2022
CROSSREFS
KEYWORD
nonn,fini,base
AUTHOR
EXTENSIONS
First comment corrected by Harvey P. Dale, Mar 04 2020 at the insistence of Sean A. Irvine
Offset changed to 1 by Michael S. Branicky, Aug 04 2022
Removed incorrect Sage program. - N. J. A. Sloane, Aug 04 2022
STATUS
approved