Hello!
As my previous post was a bit short, I make it up to you readers right now. Here is the solution to the brain teaser (list all partitions of the integer 9):
![](https://static.wixstatic.com/media/af42e7_65a906a6ddb643a2a121f2b040ccbd22~mv2.jpg/v1/fill/w_844,h_1500,al_c,q_85,enc_auto/af42e7_65a906a6ddb643a2a121f2b040ccbd22~mv2.jpg)
What comes to rooted tree generation, one has to solve the partition equation with setting root vertex and internal vertices as bases and letting other objects act as partition numbers. Here is the process for rooted tree generation when v = 4:
![](https://static.wixstatic.com/media/af42e7_59429f535e814fa6ade16f4ba395b1d5~mv2.jpg/v1/fill/w_844,h_1500,al_c,q_85,enc_auto/af42e7_59429f535e814fa6ade16f4ba395b1d5~mv2.jpg)
Here is some more added info to the case v = 4:
![](https://static.wixstatic.com/media/af42e7_3a198a5aec9e47279f21edd3a6a8ee25~mv2.jpg/v1/fill/w_844,h_1500,al_c,q_85,enc_auto/af42e7_3a198a5aec9e47279f21edd3a6a8ee25~mv2.jpg)
...And another example, case v = 6:
![](https://static.wixstatic.com/media/af42e7_591ecfd9ddc24ed7a978fb1ad32eb22f~mv2.jpg/v1/fill/w_844,h_1500,al_c,q_85,enc_auto/af42e7_591ecfd9ddc24ed7a978fb1ad32eb22f~mv2.jpg)
![](https://static.wixstatic.com/media/af42e7_539fa6edac894d64b6845c7b13f099d9~mv2.jpg/v1/fill/w_844,h_1500,al_c,q_85,enc_auto/af42e7_539fa6edac894d64b6845c7b13f099d9~mv2.jpg)
![](https://static.wixstatic.com/media/af42e7_d3610d3e2fa24f6d850483ed03e4edae~mv2.jpg/v1/fill/w_844,h_1500,al_c,q_85,enc_auto/af42e7_d3610d3e2fa24f6d850483ed03e4edae~mv2.jpg)
I also generated the actual graphical presentations:
![](https://static.wixstatic.com/media/af42e7_123f01c4327046a1aeb3c1651348bdfe~mv2.jpg/v1/fill/w_844,h_1500,al_c,q_85,enc_auto/af42e7_123f01c4327046a1aeb3c1651348bdfe~mv2.jpg)
Here this post ends. In the next post I will continue explaining rooted tree generation with more examples. But before that, a little brain teaser:
Use TGA to generate all rooted rooted trees with v = 5. List the phases in the same manner as in this post. Compare the process with the one of listing all partitions of the integer 4. How do these differ?
I will see you next time!