OFFSET
0,12
COMMENTS
Different from A326307.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..65536
EXAMPLE
a(101) = 3 because 101 is the 3rd nonnegative integer having its set of decimal digits: 10, 100, 101: {0,1}.
MAPLE
p:= proc() 0 end:
a:= proc(n) option remember; local t;
t:= {convert(n, base, 10)[]}; p(t):= p(t)+1
end:
seq(a(n), n=0..105);
PROG
(Python)
from collections import Counter
from itertools import count, islice
def agen(): # generator of terms
digsetcount = Counter()
for n in count(0):
key = "".join(sorted(set(str(n))))
digsetcount[key] += 1
yield digsetcount[key]
print(list(islice(agen(), 106))) # Michael S. Branicky, Jan 30 2025
CROSSREFS
KEYWORD
AUTHOR
Alois P. Heinz, Jan 30 2025
STATUS
approved
