I am creating "children" in script and would like to calculate the number of children before launching the script. I have "width" the number of child nodes and "depth" the depth of the nodes.
- 5 wide and 1 deep = 5
- 5 wide and 2 deep = 30 = (5+25)
- 5 wide and 3 deep = 155 = (5+25+125)
and so on. I "see" the pattern but cannot come up with the equation based on the values of width and depth.