login
A380706
n is the a(n)-th nonnegative integer having its set of decimal digits.
1
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 1, 1, 1, 1
OFFSET
0,12
COMMENTS
Different from A326307.
LINKS
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
Cf. A326307 (the same for multiset).
Sequence in context: A326307 A343639 A095827 * A193582 A091887 A144871
KEYWORD
nonn,look,base
AUTHOR
Alois P. Heinz, Jan 30 2025
STATUS
approved