OFFSET
0,7
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..65536
FORMULA
Ordinal transform of A073137.
EXAMPLE
a(26) = 5 because 26 is the 5th nonnegative integer having its multiset of binary digits: 19 = 10011_2, 21 = 10101_2, 22 = 10110_2, 25 = 11001_2, 26 = 11010_2.
MAPLE
p:= proc() 0 end:
a:= proc(n) option remember; local t;
t:= sort(Bits[Split](n)); p(t):= p(t)+1
end:
seq(a(n), n=0..100);
CROSSREFS
KEYWORD
AUTHOR
Alois P. Heinz, Jan 30 2025
STATUS
approved
