OEIS/FASS curves: Difference between revisions

From tehowiki
Jump to navigation Jump to search
imported>Gfis
base 2,3,4,6
imported>Gfis
no stairs
 
(13 intermediate revisions by the same user not shown)
Line 14: Line 14:
  400,401,402,403,404,414,424,434,433,432,431,421,422,423,413,
  400,401,402,403,404,414,424,434,433,432,431,421,422,423,413,
  412,411,410,420,430,440,441,442,443,444
  412,411,410,420,430,440,441,442,443,444
[[File:Balsaholz-Kn.jpg|250px|right|Balsa lumber 8 mm]]
In each generation the number of digits is increased by one. The first 25 values form the adjacency condition matrix as defined by Knuth:
In each generation the number of digits is increased by one. The first 25 values form the adjacency condition matrix as defined by Knuth:
         Kn
         Kn
Line 26: Line 27:
  00  10==20==30==40
  00  10==20==30==40
   
   
[[File:Balsaholz-Kn.jpg|250px|right|Balsa lumber 8 mm]]
Here, the last digit is the y coordinate, and the digit before is the x coordinate. In generation 3, the left-most digit can be interpreted as the z coordinate. Since this is '''K'''nuth's original adjacency matrix, and since it shows a path similiar to a letter '''n''' inside the square, I named it "Kn".
Here, the last digit is the y coordinate, and the digit before is the x coordinate. In generation 3, the left-most digit can be interpreted as the z coordinate. Since this is Knuth's original adjacency matrix, and since it shows a letter "n", I named it "Kn".


===The curve is '''[https://en.wikipedia.org/wiki/Space-filling_curve space-filling]''' in every dimension===  
===The curve is '''[https://en.wikipedia.org/wiki/Space-filling_curve space-filling]''' in every dimension===  
For the '''[http://www.teherba.org/threejs/meander_Kn.html cube]''' I wrote a Javascript program with the beautiful framework '''[http://threejs.org three.js]'''.
For the '''[http://www.teherba.org/threejs/meander_Kn.html cube]''' I wrote a Javascript program with the beautiful framework '''[http://threejs.org three.js]'''.


A [https://github.com/google/hilbert#hilbert----- package for Hilbert and Peano curves] can be found on github.com.
A [https://github.com/google/hilbert#hilbert Go package for Hilbert and Peano curves] can be found on github.com.
===Variants===
===Variants===
Next I wrote a Perl program which always starts with nodes 00, 01, but which then exhausts all possible paths which fill the 5*5 square. That program found several adjacency matrices which have similiar properties like that of Knuth. Depending the shapes of the paths, I invented names for them:
Next I wrote a Perl program which always starts with nodes 00, 01, but which then exhausts all possible paths which fill the 5*5 square. That program found several adjacency matrices which have similiar properties like that of Knuth. Depending the shapes of the paths, I invented names for them:
Line 48: Line 48:
For these 4 matrices I checked the uniqueness of the generated paths up to n=3125 (5th dimension). Proofs similiar to that for sequence A220952 can probably be devised for these matrices, too.
For these 4 matrices I checked the uniqueness of the generated paths up to n=3125 (5th dimension). Proofs similiar to that for sequence A220952 can probably be devised for these matrices, too.


The cube for "Fs" can be viewed and turned in all directions:
You may look at:
* as a '''[http://teherba.org/threejs/meander.html colored line]''' with coordinates  
* "Fs" as a '''[http://teherba.org/threejs/meander.html colored line]''' with coordinates  
* as a '''[http://teherba.org/threejs/meander-box.html solid 3D model]'''
* "Fs" as a '''[http://teherba.org/threejs/meander-box.html solid 3D model]'''
* '''[http://www.teherba.org/threejs/index.html more examples]''', also for bases 2..7
===Different Bases===
===Different Bases===
Searching for space filling paths reminds me a bit to the famous [http://oeis.org/A001011 OEIS stamp folding sequence A001011]. The Perl program mentioned above finds following numbers of space filling matrices for bases 1, 2, 3 ...;
Searching for space filling paths reminds me a bit to the famous [http://oeis.org/A001011 OEIS stamp folding sequence A001011]. The Perl program mentioned above finds following numbers of space filling matrices for bases 1, 2, 3 ...;
  base count examples and notes
  base count examples and notes
  1      1  (a single node)  
  1      1  (a single node)  
 
  2      1  01==11  first order Hilbert curve  
  2      1  01==11  first order Hilbert curve  
             ||  ||
             ||  ||
             00  10
             00  10
                                                          n
  3      4  02==12==22    02==12==22    02==12==22    02==12  22   only this last matrix
  3      4  02==12==22    02==12==22    02==12==22    02==12  22
                     ||    ||      ||    ||      ||    ||  ||  ||   generates a path up to the
                     ||    ||      ||    ||      ||    ||  ||  ||
             01==11  21    01  11==21    01  11  21    01  11  21   6th dimension
             01==11  21    01  11==21    01  11  21    01  11  21
             ||  ||  ||    ||  ||        ||  ||  ||    ||  ||  ||
             ||  ||  ||    ||  ||        ||  ||  ||    ||  ||  ||
             00  10==20    00  10==20    00  10==20    00  10==20
             00  10==20    00  10==20    00  10==20    00  10==20
Line 69: Line 70:
  6  11072
  6  11072
  ...    ?
  ...    ?
The basic building block (for odd bases) seems to be the last matrix for base 3 above. Only this one generates a path (up to the 6th dimension).
===Examples===
   
{| border="1"
| Base
| Variants
|-
| 2
| [http://www.teherba.org/threejs/meander-4.html?base=2&title=&label=on&vec=u+00%2C01%2C11%2C10%2C110%2C111%2C101%2C100%2C100 u]
|-
| 3
| [http://www.teherba.org/threejs/meander-4.html?base=3&title=&label=on&vec=N+%5B0%2C1%2C2%2C12%2C11%2C10%2C20%2C21%2C22%2C122%2C121%2C120%2C110%2C111%2C112%2C102%2C101%2C100%2C200%2C201%2C202%2C212%2C211%2C210%2C220%2C221%2C222 N] - simple wave, nucleus of Kn
|-
| 4
| [http://www.teherba.org/threejs/meander-4.html?base=4&title=&label=on&decout=on&vec=0%2C1%2C2%2C3%2C13%2C12%2C11%2C10%2C20%2C21%2C22%2C23%2C33%2C32%2C31%2C30%0D%0A%2C130%2C131%2C132%2C133%2C123%2C122%2C121%2C120%2C110%2C111%2C112%2C113%2C103%2C102%2C101%2C100%0D%0A%2C200%2C201%2C202%2C203%2C213%2C212%2C211%2C210%2C220%2C221%2C222%2C223%2C233%2C232%2C231%2C230%0D%0A%2C330%2C331%2C332%2C333%2C323%2C322%2C321%2C320%2C310%2C311%2C312%2C313%2C303%2C302%2C301%2C300%0D%0A%2C300 M] - probably not extensible to 4th dimension
|-
| 5
| [http://www.teherba.org/threejs/meander-4.html?base=5&title=&label=on&decout=on&vec=Kn+%5B0%2C1%2C2%2C3%2C4%2C14%2C24%2C34%2C33%2C32%2C31%2C21%2C22%2C23%2C13%2C12%2C11%2C10%2C20%2C30%2C40%2C41%2C42%2C43%2C44%0D%0A%09%09%09%09%09%2C144%2C244%2C344%2C343%2C342%2C341%2C241%2C242%2C243%2C143%2C142%2C141%2C140%2C240%2C340%2C330%2C320%2C310%2C210%2C220%0D%0A%09%09%09%09%09%2C230%2C130%2C120%2C110%2C111%2C112%2C113%2C123%2C122%2C121%2C131%2C132%2C133%2C233%2C232%2C231%2C221%2C222%2C223%2C213%0D%0A%09%09%09%09%09%2C212%2C211%2C311%2C312%2C313%2C323%2C322%2C321%2C331%2C332%2C333%2C334%2C324%2C314%2C214%2C224%2C234%2C134%2C124%2C114%0D%0A%09%09%09%09%09%2C104%2C204%2C304%2C303%2C302%2C301%2C201%2C202%2C203%2C103%2C102%2C101%2C100%2C200%2C300%2C400%2C401%2C402%2C403%2C404%0D%0A%09%09%09%09%09%2C414%2C424%2C434%2C433%2C432%2C431%2C421%2C422%2C423%2C413%2C412%2C411%2C410%2C420%2C430%2C440%2C441%2C442%2C443%2C444%0D%0A%09%09%09%09%09%2C444%5D Kn] - Knuth's original OEIS sequence [https://oeis.org/A220952 A220952]<br
/>[http://www.teherba.org/threejs/meander-4.html?base=5&title=&label=on&decout=on&vec=Fs+0%2C1%2C2%2C3%2C4%2C14%2C24%2C34%2C33%2C23%2C13%2C12%2C22%2C32%2C31%2C21%2C11%2C10%2C20%2C30%2C40%2C41%2C42%2C43%2C44%0D%0A%09%09%09%09%09%2C144%2C244%2C344%2C343%2C243%2C143%2C142%2C242%2C342%2C341%2C241%2C141%2C140%2C240%2C340%2C330%2C230%2C130%2C120%2C220%0D%0A%09%09%09%09%09%2C320%2C310%2C210%2C110%2C111%2C211%2C311%2C321%2C221%2C121%2C131%2C231%2C331%2C332%2C232%2C132%2C122%2C222%2C322%2C312%0D%0A%09%09%09%09%09%2C212%2C112%2C113%2C213%2C313%2C323%2C223%2C123%2C133%2C233%2C333%2C334%2C234%2C134%2C124%2C224%2C324%2C314%2C214%2C114%0D%0A%09%09%09%09%09%2C104%2C204%2C304%2C303%2C203%2C103%2C102%2C202%2C302%2C301%2C201%2C101%2C100%2C200%2C300%2C400%2C401%2C402%2C403%2C404%0D%0A%09%09%09%09%09%2C414%2C424%2C434%2C433%2C423%2C413%2C412%2C422%2C432%2C431%2C421%2C411%2C410%2C420%2C430%2C440%2C441%2C442%2C443%2C444%0D%0A%09%09%09%09%09%2C444 Fs] - center turned<br
/>[http://www.teherba.org/threejs/meander-4.html?base=5&title=&label=on&vec=Ln+0%2C1%2C2%2C3%2C4%2C14%2C13%2C12%2C11%2C10%2C20%2C30%2C40%2C41%2C31%2C21%2C22%2C23%2C24%2C34%2C33%2C32%2C42%2C43%2C44%2C144%2C143%2C142%2C132%2C133%2C134%2C124%2C123%2C122%2C121%2C131%2C141%2C140%2C130%2C120%2C110%2C111%2C112%2C113%2C114%2C104%2C103%2C102%2C101%2C100%2C200%2C300%2C400%2C401%2C301%2C201%2C202%2C203%2C204%2C304%2C303%2C302%2C402%2C403%2C404%2C414%2C413%2C412%2C312%2C313%2C314%2C214%2C213%2C212%2C211%2C311%2C411%2C410%2C310%2C210%2C220%2C230%2C240%2C340%2C330%2C320%2C420%2C430%2C440%2C441%2C431%2C421%2C321%2C331%2C341%2C241%2C231%2C221%2C222%2C223%2C224%2C234%2C233%2C232%2C242%2C243%2C244%2C344%2C343%2C342%2C332%2C333%2C334%2C324%2C323%2C322%2C422%2C423%2C424%2C434%2C433%2C432%2C442%2C443%2C444%2C444 Ln] - asymmetric, similiar to Kn <br
/>[http://www.teherba.org/threejs/meander-4.html?base=5&title=&label=on&decout=on&vec=Ls+0%2C1%2C2%2C3%2C4%2C14%2C13%2C12%2C11%2C10%2C20%2C30%2C40%2C41%2C31%2C21%2C22%2C32%2C42%2C43%2C33%2C23%2C24%2C34%2C44%0D%0A%2C144%2C134%2C124%2C123%2C133%2C143%2C142%2C132%2C122%2C121%2C131%2C141%2C140%2C130%2C120%2C110%2C111%2C112%2C113%2C114%0D%0A%2C104%2C103%2C102%2C101%2C100%2C200%2C300%2C400%2C401%2C301%2C201%2C202%2C302%2C402%2C403%2C303%2C203%2C204%2C304%2C404%0D%0A%2C414%2C314%2C214%2C213%2C313%2C413%2C412%2C312%2C212%2C211%2C311%2C411%2C410%2C310%2C210%2C220%2C320%2C420%2C430%2C330%0D%0A%2C230%2C240%2C340%2C440%2C441%2C341%2C241%2C231%2C331%2C431%2C421%2C321%2C221%2C222%2C322%2C422%2C432%2C332%2C232%2C242%0D%0A%2C342%2C442%2C443%2C343%2C243%2C233%2C333%2C433%2C423%2C323%2C223%2C224%2C324%2C424%2C434%2C334%2C234%2C244%2C344%2C444%0D%0A%2C444 Ls] - asymmetric, similiar to Fs<br
/>[http://www.teherba.org/threejs/meander-4.html?base=5&title=&label=on&vec=NN+%5B0%2C1%2C2%2C3%2C4%2C14%2C13%2C12%2C11%2C10%2C20%2C21%2C22%2C23%2C24%2C34%2C33%2C32%2C31%2C30%2C40%2C41%2C42%2C43%2C44%2C144%2C143%0D%0A%2C142%2C141%2C140%2C130%2C131%2C132%2C133%2C134%2C124%2C123%2C122%2C121%2C120%2C110%2C111%2C112%2C113%2C114%2C104%2C103%2C102%2C101%2C100%2C200%2C201%2C202%2C203%2C204%2C214%2C213%2C212%2C211%2C210%2C220%2C221%2C222%2C223%2C224%2C234%2C233%0D%0A%2C232%2C231%2C230%2C240%2C241%2C242%2C243%2C244%2C344%2C343%2C342%2C341%2C340%2C330%2C331%2C332%2C333%2C334%2C324%2C323%2C322%0D%0A%2C321%2C320%2C310%2C311%2C312%2C313%2C314%2C304%2C303%2C302%2C301%2C300%2C400%2C401%2C402%2C403%2C404%2C414%2C413%0D%0A%2C412%2C411%2C410%2C420%2C421%2C422%2C423%2C424%2C434%2C433%2C432%2C431%2C430%2C440%2C441%2C442%2C443%2C444%2C1444%2C%5D NN] - simple wave
|-
| 6
| [http://www.teherba.org/threejs/meander-4.html?base=6&title=&label=on&vec=%5B000%2C001%2C002%2C003%2C004%2C005%2C015%2C014%2C013%2C012%2C011%2C010%2C020%2C021%2C022%2C023%0D%0A%2C024%2C025%2C035%2C034%2C033%2C032%2C031%2C030%2C040%2C041%2C042%2C043%2C044%2C045%2C055%2C054%0D%0A%2C053%2C052%2C051%2C050%2C150%2C151%2C152%2C153%2C154%2C155%2C145%2C144%2C143%2C142%2C141%2C140%0D%0A%2C130%2C131%2C132%2C133%2C134%2C135%2C125%2C124%2C123%2C122%2C121%2C120%2C110%2C111%2C112%2C113%0D%0A%2C114%2C115%2C215%2C214%2C213%2C212%2C211%2C210%2C220%2C221%2C222%2C223%2C224%2C225%2C235%2C234%0D%0A%2C233%2C232%2C231%2C230%2C240%2C241%2C242%2C243%2C244%2C245%2C255%2C254%2C253%2C252%2C251%2C250%0D%0A%2C350%2C351%2C352%2C353%2C354%2C355%2C345%2C344%2C343%2C342%2C341%2C340%2C330%2C331%2C332%2C333%0D%0A%2C334%2C335%2C325%2C324%2C323%2C322%2C321%2C320%2C310%2C311%2C312%2C313%2C314%2C315%2C415%2C414%0D%0A%2C413%2C412%2C411%2C410%2C420%2C421%2C422%2C423%2C424%2C425%2C435%2C434%2C433%2C432%2C431%2C430%0D%0A%2C440%2C441%2C442%2C443%2C444%2C445%2C455%2C454%2C453%2C452%2C451%2C450%2C550%2C551%2C552%2C553%0D%0A%2C554%2C555%2C545%2C544%2C543%2C542%2C541%2C540%2C530%2C531%2C532%2C533%2C534%2C535%2C525%2C524%0D%0A%2C523%2C522%2C521%2C520%2C510%2C511%2C512%2C513%2C514%2C515%2C505%2C504%2C503%2C502%2C501%2C500%0D%0A%2C400%2C401%2C402%2C403%2C404%2C405%2C305%2C304%2C303%2C302%2C301%2C300%2C200%2C201%2C202%2C203%0D%0A%2C204%2C205%2C105%2C104%2C103%2C102%2C101%2C100%5D W] - probably not extensible to 4th dimension
|-
| 7
| [http://www.teherba.org/threejs/meander-4.html?base=7&title=&label=on&vec=%5B0%2C1%2C2%2C3%2C4%2C5%2C6%2C16%2C26%2C36%2C46%2C56%2C55%2C54%2C53%2C52%2C51%2C%0D%0A41%2C31%2C21%2C22%2C23%2C24%2C34%2C33%2C32%2C42%2C43%2C44%2C45%2C35%2C25%2C15%2C%0D%0A14%2C13%2C12%2C11%2C10%2C20%2C30%2C40%2C50%2C60%2C61%2C62%2C63%2C64%2C65%2C66%2C%0D%0A166%2C266%2C366%2C466%2C566%2C565%2C564%2C563%2C562%2C561%2C461%2C361%2C261%2C262%2C263%2C264%2C%0D%0A364%2C363%2C362%2C462%2C463%2C464%2C465%2C365%2C265%2C165%2C164%2C163%2C162%2C161%2C160%2C260%2C%0D%0A360%2C460%2C560%2C550%2C540%2C530%2C520%2C510%2C410%2C310%2C210%2C220%2C230%2C240%2C340%2C330%2C%0D%0A320%2C420%2C430%2C440%2C450%2C350%2C250%2C150%2C140%2C130%2C120%2C110%2C111%2C112%2C113%2C114%2C%0D%0A115%2C125%2C135%2C145%2C144%2C143%2C142%2C132%2C133%2C134%2C124%2C123%2C122%2C121%2C131%2C141%2C%0D%0A151%2C152%2C153%2C154%2C155%2C255%2C355%2C455%2C454%2C453%2C452%2C352%2C353%2C354%2C254%2C253%2C%0D%0A252%2C251%2C351%2C451%2C441%2C431%2C421%2C321%2C331%2C341%2C241%2C231%2C221%2C222%2C223%2C224%2C%0D%0A234%2C233%2C232%2C242%2C243%2C244%2C344%2C343%2C342%2C332%2C333%2C334%2C324%2C323%2C322%2C422%2C%0D%0A423%2C424%2C434%2C433%2C432%2C442%2C443%2C444%2C445%2C435%2C425%2C325%2C335%2C345%2C245%2C235%2C%0D%0A225%2C215%2C315%2C415%2C414%2C413%2C412%2C312%2C313%2C314%2C214%2C213%2C212%2C211%2C311%2C411%2C%0D%0A511%2C512%2C513%2C514%2C515%2C525%2C535%2C545%2C544%2C543%2C542%2C532%2C533%2C534%2C524%2C523%2C%0D%0A522%2C521%2C531%2C541%2C551%2C552%2C553%2C554%2C555%2C556%2C546%2C536%2C526%2C516%2C416%2C316%2C%0D%0A216%2C226%2C236%2C246%2C346%2C336%2C326%2C426%2C436%2C446%2C456%2C356%2C256%2C156%2C146%2C136%2C%0D%0A126%2C116%2C106%2C206%2C306%2C406%2C506%2C505%2C504%2C503%2C502%2C501%2C401%2C301%2C201%2C202%2C%0D%0A203%2C204%2C304%2C303%2C302%2C402%2C403%2C404%2C405%2C305%2C205%2C105%2C104%2C103%2C102%2C101%2C%0D%0A100%2C200%2C300%2C400%2C500%2C600%2C601%2C602%2C603%2C604%2C605%2C606%2C616%2C626%2C636%2C646%2C%0D%0A656%2C655%2C654%2C653%2C652%2C651%2C641%2C631%2C621%2C622%2C623%2C624%2C634%2C633%2C632%2C642%2C%0D%0A643%2C644%2C645%2C635%2C625%2C615%2C614%2C613%2C612%2C611%2C610%2C620%2C630%2C640%2C650%2C660%2C%0D%0A661%2C662%2C663%2C664%2C665%2C666%2C1666%2C%5D Kn7] - like Kn, c.f. [https://oeis.org/A300857 A300857]<br />[http://www.teherba.org/threejs/meander-4.html?base=7&title=&vec=%5B0%2C1%2C2%2C3%2C4%2C5%2C6%2C16%2C15%2C14%2C13%2C12%2C11%2C10%2C20%2C30%2C40%2C%0D%0A41%2C31%2C21%2C22%2C32%2C42%2C43%2C33%2C23%2C24%2C34%2C44%2C45%2C35%2C25%2C26%2C%0D%0A36%2C46%2C56%2C55%2C54%2C53%2C52%2C51%2C50%2C60%2C61%2C62%2C63%2C64%2C65%2C66%2C%0D%0A166%2C165%2C164%2C163%2C162%2C161%2C160%2C150%2C151%2C152%2C153%2C154%2C155%2C156%2C146%2C136%2C%0D%0A126%2C125%2C135%2C145%2C144%2C134%2C124%2C123%2C133%2C143%2C142%2C132%2C122%2C121%2C131%2C141%2C%0D%0A140%2C130%2C120%2C110%2C111%2C112%2C113%2C114%2C115%2C116%2C106%2C105%2C104%2C103%2C102%2C101%2C%0D%0A100%2C200%2C300%2C400%2C401%2C301%2C201%2C202%2C302%2C402%2C403%2C303%2C203%2C204%2C304%2C404%2C%0D%0A405%2C305%2C205%2C206%2C306%2C406%2C416%2C316%2C216%2C215%2C315%2C415%2C414%2C314%2C214%2C213%2C%0D%0A313%2C413%2C412%2C312%2C212%2C211%2C311%2C411%2C410%2C310%2C210%2C220%2C320%2C420%2C430%2C330%2C%0D%0A230%2C240%2C340%2C440%2C441%2C341%2C241%2C231%2C331%2C431%2C421%2C321%2C221%2C222%2C322%2C422%2C%0D%0A432%2C332%2C232%2C242%2C342%2C442%2C443%2C343%2C243%2C233%2C333%2C433%2C423%2C323%2C223%2C224%2C%0D%0A324%2C424%2C434%2C334%2C234%2C244%2C344%2C444%2C445%2C345%2C245%2C235%2C335%2C435%2C425%2C325%2C%0D%0A225%2C226%2C326%2C426%2C436%2C336%2C236%2C246%2C346%2C446%2C456%2C356%2C256%2C255%2C355%2C455%2C%0D%0A454%2C354%2C254%2C253%2C353%2C453%2C452%2C352%2C252%2C251%2C351%2C451%2C450%2C350%2C250%2C260%2C%0D%0A360%2C460%2C461%2C361%2C261%2C262%2C362%2C462%2C463%2C363%2C263%2C264%2C364%2C464%2C465%2C365%2C%0D%0A265%2C266%2C366%2C466%2C566%2C565%2C564%2C563%2C562%2C561%2C560%2C550%2C551%2C552%2C553%2C554%2C%0D%0A555%2C556%2C546%2C536%2C526%2C525%2C535%2C545%2C544%2C534%2C524%2C523%2C533%2C543%2C542%2C532%2C%0D%0A522%2C521%2C531%2C541%2C540%2C530%2C520%2C510%2C511%2C512%2C513%2C514%2C515%2C516%2C506%2C505%2C%0D%0A504%2C503%2C502%2C501%2C500%2C600%2C601%2C602%2C603%2C604%2C605%2C606%2C616%2C615%2C614%2C613%2C%0D%0A612%2C611%2C610%2C620%2C630%2C640%2C641%2C631%2C621%2C622%2C632%2C642%2C643%2C633%2C623%2C624%2C%0D%0A634%2C644%2C645%2C635%2C625%2C626%2C636%2C646%2C656%2C655%2C654%2C653%2C652%2C651%2C650%2C660%2C%0D%0A661%2C662%2C663%2C664%2C665%2C666%2C1666%2C%5D IssI], another shape<br
/>[http://www.teherba.org/threejs/meander-4.html?base=7&title=&vec=%5B0%2C1%2C2%2C3%2C4%2C5%2C6%2C16%2C15%2C14%2C13%2C12%2C11%2C10%2C20%2C30%2C40%2C%0D%0A41%2C31%2C21%2C22%2C23%2C24%2C34%2C33%2C32%2C42%2C43%2C44%2C45%2C35%2C25%2C26%2C%0D%0A36%2C46%2C56%2C55%2C54%2C53%2C52%2C51%2C50%2C60%2C61%2C62%2C63%2C64%2C65%2C66%2C%0D%0A166%2C165%2C164%2C163%2C162%2C161%2C160%2C150%2C151%2C152%2C153%2C154%2C155%2C156%2C146%2C136%2C%0D%0A126%2C125%2C135%2C145%2C144%2C143%2C142%2C132%2C133%2C134%2C124%2C123%2C122%2C121%2C131%2C141%2C%0D%0A140%2C130%2C120%2C110%2C111%2C112%2C113%2C114%2C115%2C116%2C106%2C105%2C104%2C103%2C102%2C101%2C%0D%0A100%2C200%2C300%2C400%2C401%2C301%2C201%2C202%2C203%2C204%2C304%2C303%2C302%2C402%2C403%2C404%2C%0D%0A405%2C305%2C205%2C206%2C306%2C406%2C416%2C316%2C216%2C215%2C315%2C415%2C414%2C413%2C412%2C312%2C%0D%0A313%2C314%2C214%2C213%2C212%2C211%2C311%2C411%2C410%2C310%2C210%2C220%2C230%2C240%2C340%2C330%2C%0D%0A320%2C420%2C430%2C440%2C441%2C431%2C421%2C321%2C331%2C341%2C241%2C231%2C221%2C222%2C223%2C224%2C%0D%0A234%2C233%2C232%2C242%2C243%2C244%2C344%2C343%2C342%2C332%2C333%2C334%2C324%2C323%2C322%2C422%2C%0D%0A423%2C424%2C434%2C433%2C432%2C442%2C443%2C444%2C445%2C435%2C425%2C325%2C335%2C345%2C245%2C235%2C%0D%0A225%2C226%2C236%2C246%2C346%2C336%2C326%2C426%2C436%2C446%2C456%2C356%2C256%2C255%2C355%2C455%2C%0D%0A454%2C453%2C452%2C352%2C353%2C354%2C254%2C253%2C252%2C251%2C351%2C451%2C450%2C350%2C250%2C260%2C%0D%0A360%2C460%2C461%2C361%2C261%2C262%2C263%2C264%2C364%2C363%2C362%2C462%2C463%2C464%2C465%2C365%2C%0D%0A265%2C266%2C366%2C466%2C566%2C565%2C564%2C563%2C562%2C561%2C560%2C550%2C551%2C552%2C553%2C554%2C%0D%0A555%2C556%2C546%2C536%2C526%2C525%2C535%2C545%2C544%2C543%2C542%2C532%2C533%2C534%2C524%2C523%2C%0D%0A522%2C521%2C531%2C541%2C540%2C530%2C520%2C510%2C511%2C512%2C513%2C514%2C515%2C516%2C506%2C505%2C%0D%0A504%2C503%2C502%2C501%2C500%2C600%2C601%2C602%2C603%2C604%2C605%2C606%2C616%2C615%2C614%2C613%2C%0D%0A612%2C611%2C610%2C620%2C630%2C640%2C641%2C631%2C621%2C622%2C623%2C624%2C634%2C633%2C632%2C642%2C%0D%0A643%2C644%2C645%2C635%2C625%2C626%2C636%2C646%2C656%2C655%2C654%2C653%2C652%2C651%2C650%2C660%2C%0D%0A661%2C662%2C663%2C664%2C665%2C666%2C1666%2C%5D LnT], yet another
|-
| 9
| [http://www.teherba.org/threejs/meander-4.html?base=9&title=&vec=%5B0%2C1%2C2%2C3%2C4%2C5%2C6%2C7%2C8%2C18%2C28%2C38%2C48%2C58%2C68%2C78%2C77%2C%0D%0A67%2C57%2C47%2C37%2C36%2C46%2C56%2C66%2C76%2C75%2C74%2C73%2C63%2C64%2C65%2C55%2C%0D%0A54%2C53%2C43%2C44%2C45%2C35%2C34%2C33%2C32%2C42%2C52%2C62%2C72%2C71%2C61%2C51%2C%0D%0A41%2C31%2C21%2C22%2C23%2C24%2C25%2C26%2C27%2C17%2C16%2C15%2C14%2C13%2C12%2C11%2C%0D%0A10%2C20%2C30%2C40%2C50%2C60%2C70%2C80%2C81%2C82%2C83%2C84%2C85%2C86%2C87%2C88%2C%0D%0A188%2C288%2C388%2C488%2C588%2C688%2C788%2C787%2C687%2C587%2C487%2C387%2C386%2C486%2C586%2C686%2C%0D%0A786%2C785%2C784%2C783%2C683%2C684%2C685%2C585%2C584%2C583%2C483%2C484%2C485%2C385%2C384%2C383%2C%0D%0A382%2C482%2C582%2C682%2C782%2C781%2C681%2C581%2C481%2C381%2C281%2C282%2C283%2C284%2C285%2C286%2C%0D%0A287%2C187%2C186%2C185%2C184%2C183%2C182%2C181%2C180%2C280%2C380%2C480%2C580%2C680%2C780%2C770%2C%0D%0A670%2C570%2C470%2C370%2C360%2C460%2C560%2C660%2C760%2C750%2C740%2C730%2C630%2C640%2C650%2C550%2C%0D%0A540%2C530%2C430%2C440%2C450%2C350%2C340%2C330%2C320%2C420%2C520%2C620%2C720%2C710%2C610%2C510%2C%0D%0A410%2C310%2C210%2C220%2C230%2C240%2C250%2C260%2C270%2C170%2C160%2C150%2C140%2C130%2C120%2C110%2C%0D%0A111%2C112%2C113%2C114%2C115%2C116%2C117%2C127%2C126%2C125%2C124%2C123%2C122%2C121%2C131%2C141%2C%0D%0A151%2C161%2C171%2C172%2C162%2C152%2C142%2C132%2C133%2C134%2C135%2C145%2C144%2C143%2C153%2C154%2C%0D%0A155%2C165%2C164%2C163%2C173%2C174%2C175%2C176%2C166%2C156%2C146%2C136%2C137%2C147%2C157%2C167%2C%0D%0A177%2C277%2C267%2C257%2C247%2C237%2C236%2C246%2C256%2C266%2C276%2C275%2C274%2C273%2C263%2C264%2C%0D%0A265%2C255%2C254%2C253%2C243%2C244%2C245%2C235%2C234%2C233%2C232%2C242%2C252%2C262%2C272%2C271%2C%0D%0A261%2C251%2C241%2C231%2C221%2C222%2C223%2C224%2C225%2C226%2C227%2C217%2C216%2C215%2C214%2C213%2C%0D%0A212%2C211%2C311%2C411%2C511%2C611%2C711%2C712%2C612%2C512%2C412%2C312%2C313%2C314%2C315%2C415%2C%0D%0A414%2C413%2C513%2C514%2C515%2C615%2C614%2C613%2C713%2C714%2C715%2C716%2C616%2C516%2C416%2C316%2C%0D%0A317%2C417%2C517%2C617%2C717%2C727%2C627%2C527%2C427%2C327%2C326%2C426%2C526%2C626%2C726%2C725%2C%0D%0A724%2C723%2C623%2C624%2C625%2C525%2C524%2C523%2C423%2C424%2C425%2C325%2C324%2C323%2C322%2C422%2C%0D%0A522%2C622%2C722%2C721%2C621%2C521%2C421%2C321%2C331%2C341%2C351%2C451%2C441%2C431%2C531%2C541%2C%0D%0A551%2C651%2C641%2C631%2C731%2C741%2C751%2C761%2C661%2C561%2C461%2C361%2C371%2C471%2C571%2C671%2C%0D%0A771%2C772%2C672%2C572%2C472%2C372%2C362%2C462%2C562%2C662%2C762%2C752%2C742%2C732%2C632%2C642%2C%0D%0A652%2C552%2C542%2C532%2C432%2C442%2C452%2C352%2C342%2C332%2C333%2C334%2C335%2C345%2C344%2C343%2C%0D%0A353%2C354%2C355%2C455%2C454%2C453%2C443%2C444%2C445%2C435%2C434%2C433%2C533%2C534%2C535%2C545%2C%0D%0A544%2C543%2C553%2C554%2C555%2C655%2C654%2C653%2C643%2C644%2C645%2C635%2C634%2C633%2C733%2C734%2C%0D%0A735%2C745%2C744%2C743%2C753%2C754%2C755%2C765%2C764%2C763%2C663%2C664%2C665%2C565%2C564%2C563%2C%0D%0A463%2C464%2C465%2C365%2C364%2C363%2C373%2C374%2C375%2C475%2C474%2C473%2C573%2C574%2C575%2C675%2C%0D%0A674%2C673%2C773%2C774%2C775%2C776%2C676%2C576%2C476%2C376%2C366%2C466%2C566%2C666%2C766%2C756%2C%0D%0A746%2C736%2C636%2C646%2C656%2C556%2C546%2C536%2C436%2C446%2C456%2C356%2C346%2C336%2C337%2C347%2C%0D%0A357%2C457%2C447%2C437%2C537%2C547%2C557%2C657%2C647%2C637%2C737%2C747%2C757%2C767%2C667%2C567%2C%0D%0A467%2C367%2C377%2C477%2C577%2C677%2C777%2C778%2C678%2C578%2C478%2C378%2C368%2C468%2C568%2C668%2C%0D%0A768%2C758%2C748%2C738%2C638%2C648%2C658%2C558%2C548%2C538%2C438%2C448%2C458%2C358%2C348%2C338%2C%0D%0A328%2C428%2C528%2C628%2C728%2C718%2C618%2C518%2C418%2C318%2C218%2C228%2C238%2C248%2C258%2C268%2C%0D%0A278%2C178%2C168%2C158%2C148%2C138%2C128%2C118%2C108%2C208%2C308%2C408%2C508%2C608%2C708%2C707%2C%0D%0A607%2C507%2C407%2C307%2C306%2C406%2C506%2C606%2C706%2C705%2C704%2C703%2C603%2C604%2C605%2C505%2C%0D%0A504%2C503%2C403%2C404%2C405%2C305%2C304%2C303%2C302%2C402%2C502%2C602%2C702%2C701%2C601%2C501%2C%0D%0A401%2C301%2C201%2C202%2C203%2C204%2C205%2C206%2C207%2C107%2C106%2C105%2C104%2C103%2C102%2C101%2C%0D%0A100%2C200%2C300%2C400%2C500%2C600%2C700%2C800%2C801%2C802%2C803%2C804%2C805%2C806%2C807%2C808%2C%0D%0A818%2C828%2C838%2C848%2C858%2C868%2C878%2C877%2C867%2C857%2C847%2C837%2C836%2C846%2C856%2C866%2C%0D%0A876%2C875%2C874%2C873%2C863%2C864%2C865%2C855%2C854%2C853%2C843%2C844%2C845%2C835%2C834%2C833%2C%0D%0A832%2C842%2C852%2C862%2C872%2C871%2C861%2C851%2C841%2C831%2C821%2C822%2C823%2C824%2C825%2C826%2C%0D%0A827%2C817%2C816%2C815%2C814%2C813%2C812%2C811%2C810%2C820%2C830%2C840%2C850%2C860%2C870%2C880%2C%0D%0A881%2C882%2C883%2C884%2C885%2C886%2C887%2C888%2C888 some example] (id="34862")
|}
For your own experiments, you may use the '''[http://www.teherba.org/threejs/index.html DIY meander cube]''' page. You may specify whether labels should be attached, in decimal or in the "natural" base, and you can even export an STL file there.
===3D Manufacturing===
===3D Manufacturing===
[[File:trinckle-box.jpg|250px|right|4x4 cm cube (polyamide sintering)]]
[[File:trinckle-box.jpg|250px|right|4x4 cm cube (polyamide sintering)]]
Line 82: Line 117:
In the next step I ordered a 5x5x5 cm [https://en.wikipedia.org/wiki/Bubblegram bubblegram], an internally engraved glass cube from [http://www.easycrystal.de/eng/ easycrystal.de] for about 40 &euro;. Such a cube is very stable, and the engraved point cloud for the FASS curve is geometrically exact. In addition to the curve the base 5 coordinates are shown, but they are very tiny.
In the next step I ordered a 5x5x5 cm [https://en.wikipedia.org/wiki/Bubblegram bubblegram], an internally engraved glass cube from [http://www.easycrystal.de/eng/ easycrystal.de] for about 40 &euro;. Such a cube is very stable, and the engraved point cloud for the FASS curve is geometrically exact. In addition to the curve the base 5 coordinates are shown, but they are very tiny.
The STL file should probably be "cleaned" from triangles inside the bars. There is a [https://all3dp.com/free-stl-editor-open-edit-stl-file/ good overview of 7 free STL editors], among them [http://www.meshmixer.com/ MeshMixer].
The STL file should probably be "cleaned" from triangles inside the bars. There is a [https://all3dp.com/free-stl-editor-open-edit-stl-file/ good overview of 7 free STL editors], among them [http://www.meshmixer.com/ MeshMixer].
===Observations and efficiency considerations===
A brute-force, backtracking algorithm which generates all pathes for a specific base runs rather fast up to base 5 (412 possible paths). For base 7, there are about 3 millions of paths starting with 00~01 ("~" denotes "adjacent to"), but only 47 of them can be continued in dimensions > 2. For base 9, the brute-force approach is not feasible, and it is necessary to develop restrictions for the backtracking algorithm.
For the following discussion, let digits b = base-1, a = b-1, c=b+1, h=a/2, and for elements (n, n) on the diagonal, m=n-1, p=n+1. For a node, we will write xy instead of (x,y), and zxy instead of (z,x,y). hh is the ''center'' element, {00, 0b, bb, b0} is the set of ''corner'' elements. Let st be the coordinates of the start point, and ef those of the end point.
0b  1b  ..  ab  bb      ..  ..  ..  ..  ..
                       
0a  1a  ..  aa  ba      ..  mp  np  pp  ..
                       
..  ..  hh  ..  ..      ..  mn  nn  pn  ..
                       
01  11  ..  a1  b1      ..  mm  nm  pm  ..
                       
00  10  ..  a0  b0      ..  ..  ..  ..  ..
The path must visit every node in the square of the adjacency matrix exactly once,  and so it must in the d-dimensional cubes (for d >= 3) of edge length ''base''. Furthermore, any projection of such a cube to the plane must show the same adjacency matrix (for odd bases; even bases are discussed later). In essence, any projection must not show some "T" pattern:
mn==nn==pn        mp
    ||            ||
    nm      or    mn==nn
                  ||
                  mm
====Start and end points in some corner====
The start point starts the multidimensional path, and the end point is the last path element in the square, 2-dimensional adjacency matrix. At the end point, the path continues into the 3rd dimension (z=1), It is natural to assume a start point 00, and experiments show that the end point then always is the opposite corner bb for continuing paths. BTW, there are continuing paths which are not rotational symmetric (e.g. Ls and Ln for base 5).
* The start and the end point both are corner elements.
Otherwise, they will show a "T" pattern in one of the projections zx, zy.
====Normalization 00~01====
* We may always start with 00~01 without loss of generality.
There are 7 equivalent paths starting with 00~10, 0b~0a, 0b~1b, bb~ab, bb~ba, b0~1b, b0~a0. Therefore only one set needs to be computed.
====Diagonal start and end point====
* Start and end point are in opposite corners.
With the normalized start 00~01, and 0b as end point, we get 00b~10b, and therefore 00~10, a contradiction. With b0 as end point, we get 0b0~1b0, and the same contradiction 00~10. Therefore, the end point must be bb.
====Straight left edge====
* The path starts with 00, 01, 02, ...0b.
If there is any deviation 0n~1n with 0 < n < b, then the corresponding diagonal element 0nn has, in addition to its 2 normal neigbours in the adjacency matrix, a 3rd neighbour 1nn in the next z plane.
====The path may not divide the square====
* If the path hits a border, one of the 2 neighbouring nodes must already be contained in the path.
If both neighbours were not visited so far, the path would divide the square in 2 halves, It would turn into one of them, and could never reach the non-visited nodes in the other one.
====Elementary waves on the diagonal====
It appears that continuing paths must contain ''wave'' shapes at least on one of the diagonal nodes 22, 33 .. aa. The 3-wave has the "n" shape, the 5-wave looks like "NN", and in general the b-wave is 00~01..0b~1b~1a..10~20..2b..ba~bb. The shapes on the diagonal nodes will be rotated, but only in 2 out of 4 possible ways, depending on the parity of the row number.
====No "stairs"====
It seems - at least for odd bases - that path segments which change the direction 4 times (or more often) in a row are not allowed:
XX==XX            XX==XX
    ||                ||
    XX==XX  or  XX==XX
        ||        ||
        XX        XX
====Implementation====
The Perl program <code>[https://github.com/gfis/fasces/blob/master/data/gen_paths.pl gen_paths.pl]</code> uses the restrictions mentioned above.
===Path expressions===
In order to prove the desired properties, we will use a language which describes the paths up to some generation (dimension). We use the following operations to build path expressions:
* A0 = [] : the empty path
* X = [a,b,c] : build a path expression ''X'' from elements ''a,b,c''
* "/X"    : reverse the sequence of elements in path expression ''X''
* "X.n+m" : insert digit ''m'' after the digit for ''base^n'' in each element of ''X''
Examples:
[].0+1 = [1];
[12].0+3 = [123];
[12].2+3 = [312];
[1234].1+0 = [12304];
With this notation, we can describe the paths for base 3 and base 5 in a rather consistent way. It should be obvious how additional expressions must be added for higher dimensions. Similiar shapes show very similiar path expressions.
====Base 3====
n      A0 = [];
        A1 = [A0.0+0,/A0.0+1,A0.0+2];
        A2 = [A1.1+0,/A1.1+1,A1.1+2];
        A3 = [A2.2+0,/A2.2+1,A2.2+2];
        ...
s      A0 = [];
        A1 = [A0.0+0,/A0.0+1,A0.0+2];
        A2 = [A1.0+0,/A1.0+1,A1.0+2];
        A3 = [A2.0+0,/A2.0+1,A2.0+2];
        ...
====Base 5====
Fs    A0 = [];
        A1 = [A0.0+3,/A0.0+2,A0.0+1];
        B1 = [A0.0+0,/A1,A0.0+4];
        A2 = [A1.0+3,/A1.0+2,A1.0+1];
        B2 = [A1.0+0,/A2,A1.0+4];
        C2 = [B1.1+0,/B2,B1.1+4];
        A3 = [A2.0+3,/A2.0+2,A2.0+1];
        B3 = [A2.0+0,/A3,A2.0+4];
        C3 = [B2.1+0,/B3,B2.1+4];
        D3 = [C2.2+0,/C3,C2.2+4];
        ...
Kn    A0 = [];
        A1 = [A0.0+3,/A0.0+2,A0.0+1];
        B1 = [A0.0+0,/A1,A0.0+4];
        A2 = [A1.1+3,/A1.1+2,A1.1+1];
        B2 = [A1.0+0,/A2,A1.0+4];
        C2 = [B1.1+0,/B2,B1.1+4]
        A3 = [A2.2+3,/A2.2+2,A2.2+1];
        B3 = [A2.0+0,/A3,A2.0+4];
        C3 = [B2.1+0,/B3,B2.1+4];
        D3 = [C2.2+0,/C3,C2.2+4];
        ...
Ln    A0 = [];
        A1 = [A0.0+2,/A0.0+3,A0.0+4];
        B1 = [A0.0+0,/A0.0+1,A1];
        A2 = [A1.1+2,/A1.1+3,A1.1+4];
        B2 = [A1.0+0,/A1.0+1,A2];
        C2 = [B1.1+0,/B1.1+1,B2];
        A3 = [A2.2+2,/A2.2+3,A2.2+4];
        B3 = [A2.0+0,/A2.0+1,A3];
        C3 = [B2.1+0,/B2.1+1,B3];
        D3 = [C2.2+0,/C2.2+1,C3];
        ...
Ls    A0 = [];
        A1 = [A0.0+2,/A0.0+3,A0.0+4];
        B1 = [A0.0+0,/A0.0+1,A1];
        A2 = [A1.0+2,/A1.0+3,A1.0+4];
        B2 = [A1.0+0,/A1.0+1,A2];
        C2 = [B1.1+0,/B1.1+1,B2];
        A3 = [A2.0+2,/A2.0+3,A2.0+4];
        B3 = [A2.0+0,/A2.0+1,A3];
        C3 = [B2.1+0,/B2.1+1,B3];
        D3 = [C2.2+0,/C2.2+1,C3];
        ...
NN    A0 = [];
        A1 = [A0.0+0,/A0.0+1,A0.0+2,/A0.0+3,A0.0+4]
        A2 = [A1.1+0,/A1.1+1,A1.1+2,/A1.1+3,A1.1+4]
        A3 = [A2.2+0,/A2.2+1,A2.2+2,/A2.2+3,A2.2+4]
        ...

Latest revision as of 12:21, 30 May 2018

Steel wire
Steel wire

Beyond OEIS sequence A220952

After my initial attemps to extend sequence A220952 I became interested in FASS curves in general.

Fischertechnik 15 mm
Fischertechnik 15 mm

Sequence A220952 is best discussed with numbers to base 5. The first 125 values then are:

0,
1,2,3,4,
14,24,34,33,32,31,21,22,23,13,12,11,10,20,30,40,41,42,43,44,
144,244,344,343,342,341,241,242,243,143,142,141,140,240,340,
330,320,310,210,220,230,130,120,110,111,112,113,123,122,121,
131,132,133,233,232,231,221,222,223,213,212,211,311,312,313,
323,322,321,331,332,333,334,324,314,214,224,234,134,124,114,
104,204,304,303,302,301,201,202,203,103,102,101,100,200,300,
400,401,402,403,404,414,424,434,433,432,431,421,422,423,413,
412,411,410,420,430,440,441,442,443,444
Balsa lumber 8 mm
Balsa lumber 8 mm

In each generation the number of digits is increased by one. The first 25 values form the adjacency condition matrix as defined by Knuth:

       Kn
04==14==24==34  44
||          ||  ||
03  13==23  33  43
||  ||  ||  ||  ||
02  12  22  32  42
||  ||  ||  ||  ||
01  11  21==31  41
||  ||          ||
00  10==20==30==40

Here, the last digit is the y coordinate, and the digit before is the x coordinate. In generation 3, the left-most digit can be interpreted as the z coordinate. Since this is Knuth's original adjacency matrix, and since it shows a path similiar to a letter n inside the square, I named it "Kn".

The curve is space-filling in every dimension

For the cube I wrote a Javascript program with the beautiful framework three.js.

A Go package for Hilbert and Peano curves can be found on github.com.

Variants

Next I wrote a Perl program which always starts with nodes 00, 01, but which then exhausts all possible paths which fill the 5*5 square. That program found several adjacency matrices which have similiar properties like that of Knuth. Depending the shapes of the paths, I invented names for them:

        Fs                    Ls                    Ln                    NN       
04==14==24==34  44    04==14  24==34==44    04==14  24==34  44    04==14  24==34  44
||          ||  ||    ||  ||  ||            ||  ||  ||  ||  ||    ||  ||  ||  ||  ||
03  13==23==33  43    03  13  23==33==43    03  13  23  33  43    03  13  23  33  43
||  ||          ||    ||  ||          ||    ||  ||  ||  ||  ||    ||  ||  ||  ||  ||
02  12==22==32  42    02  12  22==32==42    02  12  22  32==42    02  12  22  32  42
||          ||  ||    ||  ||  ||            ||  ||  ||            ||  ||  ||  ||  ||
01  11==21==31  41    01  11  21==31==41    01  11  21==31==41    01  11  21  31  41
||  ||          ||    ||  ||          ||    ||  ||          ||    ||  ||  ||  ||  ||
00  10==20==30==40    00  10==20==30==40    00  10==20==30==40    00  10==20  30==40 

For these 4 matrices I checked the uniqueness of the generated paths up to n=3125 (5th dimension). Proofs similiar to that for sequence A220952 can probably be devised for these matrices, too.

You may look at:

Different Bases

Searching for space filling paths reminds me a bit to the famous OEIS stamp folding sequence A001011. The Perl program mentioned above finds following numbers of space filling matrices for bases 1, 2, 3 ...;

base count examples and notes
1      1   (a single node) 

2      1   01==11  first order Hilbert curve 
           ||  ||
           00  10
                                                         n
3      4   02==12==22    02==12==22    02==12==22    02==12  22  
                   ||    ||      ||    ||      ||    ||  ||  ||  
           01==11  21    01  11==21    01  11  21    01  11  21  
           ||  ||  ||    ||  ||        ||  ||  ||    ||  ||  ||
           00  10==20    00  10==20    00  10==20    00  10==20
4     26
5    412   where 5 generate paths up to the 5th dimension
6  11072
...    ?

The basic building block (for odd bases) seems to be the last matrix for base 3 above. Only this one generates a path (up to the 6th dimension).

Examples

Base Variants
2 u
3 N - simple wave, nucleus of Kn
4 M - probably not extensible to 4th dimension
5 Kn - Knuth's original OEIS sequence A220952
Fs - center turned
Ln - asymmetric, similiar to Kn
Ls - asymmetric, similiar to Fs
NN - simple wave
6 W - probably not extensible to 4th dimension
7 Kn7 - like Kn, c.f. A300857
IssI, another shape
LnT, yet another
9 some example (id="34862")

For your own experiments, you may use the DIY meander cube page. You may specify whether labels should be attached, in decimal or in the "natural" base, and you can even export an STL file there.

3D Manufacturing

4x4 cm cube (polyamide sintering)
4x4 cm cube (polyamide sintering)

All my attempts to physically build such objects were unsatisfying so far. The balsa lumber and the Fischertechnik (above) approaches worked somehow, but both needed distance bars (thin needles for the balsa, red blocks for Fischertechnik) to keep the geometry in shape. Cutting and glueing the 62 balsa parts was very tedious.

In discussions with several people I learned that such FASS curves cannot be produced by conventional processes like milling or die casting. Therefore I tried the current hype of 3D printing.

With Three.js it is also very easy to store an STL file derived from the virtual scene. STL is the main format for stereolithography CAD software, 3D printers and other manufacturing devices. STL stores a mesh, that is a set of triangles representing the geometry of the object.

  • Download the meander STL file and view it with the free service of viewstl.com, and/or
  • send the STL file to the production service company of your choice.

During my holidays in Greece I sent this a file to trinckle.com in Germany, and within 10 days and 20 € I received the nice 4x4 cm cube on the right. It was made by sintering plastic (polyamide) with a laser. The problem is that the structure cannot be built on a supporting surface, and that there is some warping caused by the heat of the laser and the weight of the material. The object is very fragile.

3D laser crystal
3D laser crystal

In the next step I ordered a 5x5x5 cm bubblegram, an internally engraved glass cube from easycrystal.de for about 40 €. Such a cube is very stable, and the engraved point cloud for the FASS curve is geometrically exact. In addition to the curve the base 5 coordinates are shown, but they are very tiny. The STL file should probably be "cleaned" from triangles inside the bars. There is a good overview of 7 free STL editors, among them MeshMixer.

Observations and efficiency considerations

A brute-force, backtracking algorithm which generates all pathes for a specific base runs rather fast up to base 5 (412 possible paths). For base 7, there are about 3 millions of paths starting with 00~01 ("~" denotes "adjacent to"), but only 47 of them can be continued in dimensions > 2. For base 9, the brute-force approach is not feasible, and it is necessary to develop restrictions for the backtracking algorithm.

For the following discussion, let digits b = base-1, a = b-1, c=b+1, h=a/2, and for elements (n, n) on the diagonal, m=n-1, p=n+1. For a node, we will write xy instead of (x,y), and zxy instead of (z,x,y). hh is the center element, {00, 0b, bb, b0} is the set of corner elements. Let st be the coordinates of the start point, and ef those of the end point.

0b  1b  ..  ab  bb      ..  ..  ..  ..  ..
                       
0a  1a  ..  aa  ba      ..  mp  np  pp  ..
                       
..  ..  hh  ..  ..      ..  mn  nn  pn  ..
                       
01  11  ..  a1  b1      ..  mm  nm  pm  ..
                       
00  10  ..  a0  b0      ..  ..  ..  ..  ..

The path must visit every node in the square of the adjacency matrix exactly once, and so it must in the d-dimensional cubes (for d >= 3) of edge length base. Furthermore, any projection of such a cube to the plane must show the same adjacency matrix (for odd bases; even bases are discussed later). In essence, any projection must not show some "T" pattern:

mn==nn==pn        mp
    ||            || 
    nm      or    mn==nn
                  ||
                  mm

Start and end points in some corner

The start point starts the multidimensional path, and the end point is the last path element in the square, 2-dimensional adjacency matrix. At the end point, the path continues into the 3rd dimension (z=1), It is natural to assume a start point 00, and experiments show that the end point then always is the opposite corner bb for continuing paths. BTW, there are continuing paths which are not rotational symmetric (e.g. Ls and Ln for base 5).

  • The start and the end point both are corner elements.

Otherwise, they will show a "T" pattern in one of the projections zx, zy.

Normalization 00~01

  • We may always start with 00~01 without loss of generality.

There are 7 equivalent paths starting with 00~10, 0b~0a, 0b~1b, bb~ab, bb~ba, b0~1b, b0~a0. Therefore only one set needs to be computed.

Diagonal start and end point

  • Start and end point are in opposite corners.

With the normalized start 00~01, and 0b as end point, we get 00b~10b, and therefore 00~10, a contradiction. With b0 as end point, we get 0b0~1b0, and the same contradiction 00~10. Therefore, the end point must be bb.

Straight left edge

  • The path starts with 00, 01, 02, ...0b.

If there is any deviation 0n~1n with 0 < n < b, then the corresponding diagonal element 0nn has, in addition to its 2 normal neigbours in the adjacency matrix, a 3rd neighbour 1nn in the next z plane.

The path may not divide the square

  • If the path hits a border, one of the 2 neighbouring nodes must already be contained in the path.

If both neighbours were not visited so far, the path would divide the square in 2 halves, It would turn into one of them, and could never reach the non-visited nodes in the other one.

Elementary waves on the diagonal

It appears that continuing paths must contain wave shapes at least on one of the diagonal nodes 22, 33 .. aa. The 3-wave has the "n" shape, the 5-wave looks like "NN", and in general the b-wave is 00~01..0b~1b~1a..10~20..2b..ba~bb. The shapes on the diagonal nodes will be rotated, but only in 2 out of 4 possible ways, depending on the parity of the row number.

No "stairs"

It seems - at least for odd bases - that path segments which change the direction 4 times (or more often) in a row are not allowed:

XX==XX            XX==XX
    ||                ||
    XX==XX   or   XX==XX
        ||        ||
        XX        XX

Implementation

The Perl program gen_paths.pl uses the restrictions mentioned above.

Path expressions

In order to prove the desired properties, we will use a language which describes the paths up to some generation (dimension). We use the following operations to build path expressions:

  • A0 = [] : the empty path
  • X = [a,b,c] : build a path expression X from elements a,b,c
  • "/X"  : reverse the sequence of elements in path expression X
  • "X.n+m" : insert digit m after the digit for base^n in each element of X

Examples:

[].0+1 = [1]; 
[12].0+3 = [123]; 
[12].2+3 = [312]; 
[1234].1+0 = [12304];

With this notation, we can describe the paths for base 3 and base 5 in a rather consistent way. It should be obvious how additional expressions must be added for higher dimensions. Similiar shapes show very similiar path expressions.

Base 3

n      A0 = [];
       A1 = [A0.0+0,/A0.0+1,A0.0+2];
       A2 = [A1.1+0,/A1.1+1,A1.1+2];
       A3 = [A2.2+0,/A2.2+1,A2.2+2];
       ...
s      A0 = [];
       A1 = [A0.0+0,/A0.0+1,A0.0+2];
       A2 = [A1.0+0,/A1.0+1,A1.0+2];
       A3 = [A2.0+0,/A2.0+1,A2.0+2];
       ...

Base 5

Fs     A0 = [];
       A1 = [A0.0+3,/A0.0+2,A0.0+1];
       B1 = [A0.0+0,/A1,A0.0+4];
       A2 = [A1.0+3,/A1.0+2,A1.0+1];
       B2 = [A1.0+0,/A2,A1.0+4];
       C2 = [B1.1+0,/B2,B1.1+4];
       A3 = [A2.0+3,/A2.0+2,A2.0+1];
       B3 = [A2.0+0,/A3,A2.0+4];
       C3 = [B2.1+0,/B3,B2.1+4];
       D3 = [C2.2+0,/C3,C2.2+4];
       ...
Kn     A0 = [];
       A1 = [A0.0+3,/A0.0+2,A0.0+1];
       B1 = [A0.0+0,/A1,A0.0+4];
       A2 = [A1.1+3,/A1.1+2,A1.1+1];
       B2 = [A1.0+0,/A2,A1.0+4];
       C2 = [B1.1+0,/B2,B1.1+4]
       A3 = [A2.2+3,/A2.2+2,A2.2+1];
       B3 = [A2.0+0,/A3,A2.0+4];
       C3 = [B2.1+0,/B3,B2.1+4];
       D3 = [C2.2+0,/C3,C2.2+4];
       ...
Ln     A0 = [];
       A1 = [A0.0+2,/A0.0+3,A0.0+4];
       B1 = [A0.0+0,/A0.0+1,A1];
       A2 = [A1.1+2,/A1.1+3,A1.1+4];
       B2 = [A1.0+0,/A1.0+1,A2];
       C2 = [B1.1+0,/B1.1+1,B2];
       A3 = [A2.2+2,/A2.2+3,A2.2+4];
       B3 = [A2.0+0,/A2.0+1,A3];
       C3 = [B2.1+0,/B2.1+1,B3];
       D3 = [C2.2+0,/C2.2+1,C3];
       ...
Ls     A0 = [];
       A1 = [A0.0+2,/A0.0+3,A0.0+4];
       B1 = [A0.0+0,/A0.0+1,A1];
       A2 = [A1.0+2,/A1.0+3,A1.0+4];
       B2 = [A1.0+0,/A1.0+1,A2];
       C2 = [B1.1+0,/B1.1+1,B2];
       A3 = [A2.0+2,/A2.0+3,A2.0+4];
       B3 = [A2.0+0,/A2.0+1,A3];
       C3 = [B2.1+0,/B2.1+1,B3];
       D3 = [C2.2+0,/C2.2+1,C3];
       ...
NN     A0 = [];
       A1 = [A0.0+0,/A0.0+1,A0.0+2,/A0.0+3,A0.0+4]
       A2 = [A1.1+0,/A1.1+1,A1.1+2,/A1.1+3,A1.1+4]
       A3 = [A2.2+0,/A2.2+1,A2.2+2,/A2.2+3,A2.2+4]
       ...