OFFSET
0,4
COMMENTS
Up to a(103)=12, the terms are identical to A248034.
LINKS
Bence Bernáth, Table of n, a(n) for n = 0..10000
Eric Angelini, Digit-counters updating themselves
PROG
(MATLAB)
length_seq=150;
sequence(1)=0;
seq_for_digits=(num2str(sequence(1))-'0');
for i1=1:1:length_seq
sequence(i1+1)=sum(seq_for_digits==min((num2str(sequence(i1))-'0'))');
seq_for_digits=[seq_for_digits, num2str(sequence(i1+1))-'0'];
end
(Python)
sequence=[0]
length=150
seq_for_digits=list(map(int, list(str(sequence[0]))))
for ii in range(length):
sequence.append(seq_for_digits.count(min(list(map(int, list(str(sequence[-1])))))))
seq_for_digits.extend(list(map(int, list(str(sequence[-1])))))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Bence Bernáth, Dec 08 2022
STATUS
approved