I am drawing a tree like given below. The MWE for it is below:
\documentclass[]{article}
\usepackage{forest}
\title{}
\author{}
\begin{document}
\date{}
\begin{forest}
[n
[n-1
[n-2[$\vdots$]][n-2[$\vdots$]]]
[n-1
[n-2[$\vdots$]][n-2[$\vdots$]]]]
\end{forest}
\end{document}
I wish to write the count of number of nodes at each level of the tree.
For example, adjacent to n, I wish to write 1. In the next level, 2 and so on.
Since I am using forest
package,
[n\hspace{1cm}1]
doesn't seem to help. Any simple ideas on how to do this?
Edit 1:
I found a related question which is not working for me.
justtrees
as a bad job. Some of the design decisions just made it horrible. On the positive side, it taught me to avoid those 'easy' solutions when writingprooftrees
, though I realise that's not much consolation to you.