I am writing a paper about the collatz conjecture, and I want to show a diagram, but I don't know how to add ellipses to the tree.
\usepackage{forest}
\begin{forest} for tree={
edge path={\noexpand\path[\forestoption{edge}] (\forestOve{\forestove{@parent}}{name}.parent anchor) -- +(0,-12pt)-| (\forestove{name}.child anchor)\forestoption{edge label};}
}
[1
[2
[4
[8
[16
[32
[64
[128
[256]
]
[21
[42]
]
]
]
[5
[10
[20
[40]
]
[3
[6]
]
]
]
]
]
]
]
]
\end{forest}
I want the ellipses to be where the red rectangles are, if possible