I have the following intervals in Quaternary representation $$\bigg[0,\frac{1}{4}\bigg]=[0_4.0, 0_4.1]$$
$$\bigg[\frac{1}{4},\frac{2}{4} \bigg]=[0_4.1, 0_4.2$$
$$\bigg[\frac{2}{4}, \frac{3}{4} \bigg]=[0_4.2, 0_4.3]$$
$$\bigg[\frac{3}{4},1\bigg]=[0_4.3, 1_4.0]$$
I am trying to represent $\frac{2}{5}$ in quarternary form.
The working out gives the nested intervals
$[0,1], [0_4.1, 0_4.2],[0_4.12,0_4.13],[0_4.121.0_4.122]$
How do I get the solution $\frac{2}{5}=0_4.121212...$?
