OFFSET
0,5
COMMENTS
Every number should appear a limited number of times in the sequence as opposed as in A326834.
EXAMPLE
a(24) = 2 since a(23) = 1 and previously there are two numbers that only have the digit '1': a(22) = 11 and a(2) = 1.
a(4062) = 113 since a(4061) = 112 and previously there are 113 occurrences of numbers that only have the digits '1' and '2' such as 12,21,112,121,122.
MATHEMATICA
a[0] = 0; a[n_] := a[n] = Count[Array[a, n - 1, 0], _?(Union[IntegerDigits[a[n - 1]]] == Union[IntegerDigits[#]] &)]; Array[a, 100, 0] (* Amiram Eldar, Jan 30 2025 *)
PROG
(Python)
from collections import Counter
from itertools import count, islice
def agen(): # generator of terms
an, digsetcount = 0, Counter()
while True:
yield an
key = "".join(sorted(set(str(an))))
an = digsetcount[key]
digsetcount[key] += 1
print(list(islice(agen(), 80))) # Michael S. Branicky, Jan 30 2025
CROSSREFS
KEYWORD
nonn,base,new
AUTHOR
Sergio Pimentel, Jan 30 2025
STATUS
approved