English: Plot of the number of values in the Moser–de Bruijn sequence up to , normalized by dividing the vertical scale by . The horizontal scale () is logarithmic, with powers of four marked.
Captions added manually to a plot generated by the following source code:
importsysfromPADS.SVGimport*frommathimportlogdefinmdb(n):returnn&0x55555555==ndefheight(r):return432j-(360*(r-1)+36)*1jdefacross(n):return72*(log(n)/log(4)+0.5)svg=SVG(540+432j,sys.stdout)svg.group(stroke=colors.blue)# 1/3 and 1 horiz, powers of 4 verticalforvertin[1,1.5,2]:svg.segment(height(vert),height(vert)+540,stroke=colors.green)forpowerin[1,4,16,64,256,1024,4096]:svg.segment(across(power)+432j,across(power),stroke=colors.green)svg.ungroup()points=[]count=1forninrange(1,4**7+1):ifinmdb(n):count+=1points.append(height(count/(n**0.5))+across(n))svg.polyline(points,stroke=colors.red,fill="none")svg.close()
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse
Captions
Add a one-line explanation of what this file represents