OFFSET
1,2
COMMENTS
Largest term is 9876543210. - Alonso del Arte, Jan 09 2020
There are 4493646 terms. - Michael S. Branicky, Aug 04 2022
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
Patrick De Geest, World!Of Numbers
MATHEMATICA
Select[2Range[0, 79], Max[DigitCount[#]] == 1 &] (* Harvey P. Dale, Dec 23 2013 *)
PROG
(Scala) def hasDistinctDigits(n: Int): Boolean = {
val numerStr = n.toString
val digitSet = numerStr.split("").toSet
numerStr.length == digitSet.size
}
(0 to 198 by 2).filter(hasDistinctDigits) // Alonso del Arte, Jan 09 2020
(Python) # generates full sequence
from itertools import permutations
afull = [0] + 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 "02468"))
print(afull[:100]) # Michael S. Branicky, Aug 04 2022
CROSSREFS
KEYWORD
nonn,fini,base
AUTHOR
EXTENSIONS
Offset changed to 1 by Michael S. Branicky, Aug 04 2022
STATUS
approved