The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A343332 a(1) = 0; thereafter a(n+1) = floor((a(n)+y)/2), where y is the number of numbers m < n such that a(m) = a(n). 3
0, 0, 0, 1, 0, 1, 1, 1, 2, 1, 2, 1, 3, 1, 3, 2, 2, 2, 3, 2, 3, 3, 3, 4, 2, 4, 2, 4, 3, 4, 3, 5, 2, 5, 3, 5, 3, 6, 3, 6, 3, 7, 3, 7, 4, 4, 4, 5, 4, 5, 4, 6, 4, 6, 4, 7, 4, 7, 5, 5, 5, 6, 5, 6, 5, 7, 5, 7, 6, 6, 6, 7, 6, 7, 7, 7, 8, 4, 8, 4, 8, 5, 8, 5, 8, 6, 8 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,9
COMMENTS
Variant of A340488, with XOR(a,y) replaced by floor((a+y)/2).
Every number appears, and their first occurrences are in increasing order.
Apparently, a(n) <= A343333(n) for all n.
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
Sequence in context: A274450 A366979 A126131 * A138012 A072531 A025818
KEYWORD
nonn,look
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 17 00:45 EDT 2024. Contains 372555 sequences. (Running on oeis4.)