With a few Repeat Zones, I thought it would be straightforward and intuitive to create a procedural/parametric tree.
I could not have been more wrong.
After trying and discarding nearly a dozen "intuitive" approaches, I hit on one that seemed to be headed in the right direction. After more hours of debugging and tweaking, a trivial desired output finally appeared.
I did learn (the hard way) a lot of subtleties and non-intuitive behaviors for some important nodes. BTW I was using 4.0.2.
My challenge criteria would be: