I am trying to draw a combinatorics tree starting with n_1 edges at level 1, n_2 edges at level 2, ... , n_k edges at level k. Something like this: 
I found a binary tree code from this site:
Creating dots/lines brackets in tree with Tikz
\documentclass[margin=10pt]{standalone}
\usepackage{tikz}
\usepackage{tikz-qtree}
\usetikzlibrary{trees,calc,arrows.meta,positioning,decorations.pathreplacing,bending}
\tikzset{
edge from parent/.style={draw, thick, blue!70!black},
no edge from this parent/.style={
every child/.append style={
edge from parent/.style={draw=none}}},
level 3/.style={yshift=5cm},
level 4/.style={level distance=5mm}
}
\begin{document}
\begin{tikzpicture}[
level/.style={sibling distance=40mm/#1},
text=black!70!black,>=latex,
font=\sffamily
]
\node (z){1}
child {node (a) {2}
child {node (b) {3}
child {node (b1) {$\vdots$}[no edge from this parent]
child {node (b11) {k}}
}
child {node (b2) {$\vdots$}[no edge from this parent]
child {node (b12) {k}}
}
}
child {node (g) {3}
child {node (g1) {$\vdots$}[no edge from this parent]
child {node (g11) {k}}
}
child {node (g2) {$\vdots$}[no edge from this parent]
child {node (g12) {k}}
}
}
}
%child{node(h) {2}[no edge from this parent]{2}}
child {node (d) {2}
child {node (e) {3}
child {node (e1) {$\vdots$}[no edge from this parent]
child {node (e11) {k}}
}
child {node (e2) {$\vdots$}[no edge from this parent]
child {node (e12) {k}}
}
}
child {node (f) {3}
child {node (f1) {$\vdots$}[no edge from this parent]
child {node (f11) {k}}
}
child {node (f2) {$\vdots$}[no edge from this parent]
child {node (f12) {k}
}
}
}
};
\node[left=5 of z] (ln1) {$n_1$ ways}[no edge from this parent]
child {node (ln2) {$n_2$ ways}[no edge from this parent]
child {node (ln3) {$n_3$ ways}[no edge from this parent]
child {node (ln4) {}[no edge from this parent]
child {node (ln5) {$n_k$ ways}}}}};
%\path (b12.north east) -- (g11.north west) node {$\cdots$};
%\path (e12.north east) -- (f11.north west) node [midway] {$\cdots$};
\coordinate (cd1) at ($(f12)+(1,0)$);
\coordinate (nb1) at ($(g12)!.5!(e11)$);
%\draw[blue!70!black,thick,<->,]
%(cd1) -- (cd1|-z.east) node [near start, fill=white] {log(n)};
\draw[black!70!black,dashed,thick,->]
($(z.west)+(-1em,0)$) -- (ln1);
\draw[black!70!black,dashed,thick,->]
($(a.west)+(-1em,0)$) -- (ln2.east);
\draw[black!70!black,dashed,thick,->]
($(b.west)+(-1em,0)$) -- (ln3);
\draw[black!70!black,dashed,thick,->]
($(b11.west)+(-1em,0)$) -- (ln5);
\draw[black!70!black,thick,decorate,decoration={brace,amplitude=10pt,mirror},->,-{latex[flex=1pt]}] (b11.south west) -- (f12.south east);
\end{tikzpicture}
I tried to edit this to suit my needs, but I am stuck at getting the code to work properly. Moreover, I am not sure if this code can be generalised to n levels with vdots. I also need to show count of edges at each level.
Please help.
