{\scalefont{0.4}

\begin{forest}
for tree={s sep= 4mm, l=0.5mm}
%%for tree={grow=east, s sep= 7mm, l=0.5mm}
[{\scalefont{1.5}${\color{blue}0000000000}$}, name=root
[1
%left branch ends level 4
[1 [1  [1, name=4q6 ] [0, name=4q7t3] ]	 [0 [1, name=4q7t2] [0,name=4q8t4] ] ]
%mid branch, level 6-12
[0, name=22
[1, name=33 [1 [1 [1,name=6q5t] [0,name=6q6t4]]]
	[0, name=46 [1
		[1 [1 [1,name=8q4t3] [0,name=8q5t5]]]
		[0 [\color{mygreen}{\fbox{1}}, name=A [1 [1 [1, name=10q3t5] [0, name=10q4t6]]]
			[0 [\color{blue}{\fbox{1}}, name=P015 [1 [1, name=11red,edge=red,
 edge label={node[midway,right, red]{$t$}} 
				[1, name=12q3t5] [0,name=12q4t6]]]
				[0,name=P105]]]]
		 ]]] ]  %closes branches left of C
   [0, name=C
[1, name=47 [1 [1, name=6q6t2] [0, name=6q7t4]]]
[0, name=48 [1 [1 [1 [1,name=8q5t3] [0, name=8q6t5] ]]
	    	[0, name=68 [1 [1 [1 [1, name=10q4t4] [0, name=10q5t6]]]
				[0, name=88 [1
[1 [1, name=112red,edge=red, edge label={node[midway,right, red]{$t^2$}} 
	[1, name=12q4t3] [0,name=12q5t5]]]
[0 [\color{mygreen}{\fbox{1}}, name=A2 ,edge=red, edge label={node[midway,right, red]{$t$}} 
		[1 [1 [1, name=14q3t5] [0, name=14q4t6]]]
			[0 [\color{blue}{\fbox{1}}, name=P0152 [1 [1, name=15red,edge=red,
 edge label={node[midway,right, red]{t}} 
				[1, name=16q3t5] [0,name=16q4t6]]]
				[0,name=P1052]]]] ]
]] ]
]]]]]]
] 
\node at (A) [left] { ${\color{mygreen} A=}$\; };
\node at (A2) [left]  { ${\color{mygreen} A=}$\; };
{\scalefont{1.4}
\draw[->, red] (P105) .. controls +(south east:1cm) and +(east:2cm) .. 
node[near start,right, red]{$\;1$} (P015);
\draw[->, red] (P1052) .. controls +(south east:1cm) and +(east:2cm) .. 
node[near start,right, red]{$\;1$} (P0152);
\draw[->] (root) .. controls +(south east:2cm) and +(east:2cm) .. 
node[near start,right]{\quad\; $q$} (root);
%%\node at (0011) [below] {\, $q^2$};
\node at (P015) [left] { ${\color{blue} (01)^5=}$\;};
\node at (P0152) [left] { ${\color{blue} (01)^5=}$\;};
%%\node at (C) [left] { ${\color{blue}C}$ \,};
\node at (4q6) [below] {\, $q^6$};
\node at (4q7t3) [below] {\, $q^7 t^3$};
\node at (4q7t2) [below] {\, $q^7 t^2$};
\node at (4q8t4) [below] {\, $q^8 t^4$};
\node at (6q5t) [below] {\, $q^5 t$};
\node at (6q6t4) [below] {\, $q^6 t^4$};
\node at (6q6t2) [below] {\, $q^6 t^2$};
\node at (6q7t4) [below] {\, $q^7 t^4$};
%\node at (6q6t2) [below] {\, $q^6 t^2$};
%\node at (6q7t4) [below] {\, $q^7 t^4$};
\node at (8q4t3) [below] {\, $q^4 t^3$};
\node at (8q5t5) [below] {\, $q^5 t^5$};
\node at (8q5t3) [below] {\, $q^5 t^3$};
\node at (8q6t5) [below] {\, $q^6 t^5$};
\node at (10q3t5) [below] {\, $q^3 t^5$};
\node at (10q4t6) [below] {\, $q^4 t^6$};
\node at (10q4t4) [below] {\, $q^4 t^4$};
\node at (10q5t6) [below] {\, $q^5 t^6$};
\node at (12q3t5) [below] {\, $q^3 t^5$};
\node at (12q4t6) [below] {\, $q^4 t^6$};
\node at (12q4t3) [below] {\, $q^4 t^3$};
\node at (12q5t5) [below] {\, $q^5 t^5$};
\node at (14q3t5) [below] {\, $q^3 t^5$};
\node at (14q4t6) [below] {\, $q^4 t^6$};
\node at (16q3t5) [below] {\, $q^3 t^5$};
\node at (16q4t6) [below] {\, $q^4 t^6$};
} %scalefont
\end{forest}



%%%


} %scalefont


