OFFSET
1,1
COMMENTS
By definition, each term must be at least a two-digit number.
The sequence is finite. The last term is 989765432.
There are 11041830 terms. - Michael S. Branicky, Oct 20 2022
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
EXAMPLE
322 is a term because the first digit is the number of digits = 3, and the second digit counts the different digits {2,3} = 2.
PROG
(Python)
def ok(n):
s = str(n)
if len(s) < 2 or len(s) > 9: return False
return len(s) == int(s[0]) and len(set(s)) == int(s[1])
print([k for k in range(4394) if ok(k)]) # Michael S. Branicky, Oct 17 2022
CROSSREFS
KEYWORD
nonn,base,fini
AUTHOR
Marc Morgenegg, Oct 17 2022
STATUS
approved