OFFSET
1,9
COMMENTS
LINKS
Pontus von Brömssen, Table of n, a(n) for n = 1..10000
PROG
(Python)
def A343332_list(n_max):
a=0
a_list=[0]
count=[]
for i in range(n_max-1):
if a==len(count): count.append(0)
else: count[a]+=1
a=(a+count[a])//2
a_list.append(a)
return a_list
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Pontus von Brömssen, Apr 12 2021
STATUS
approved