$$\text{The value of}\quad\tan\frac{\pi}{16} + 2\tan\frac{\pi}{8} +4 \quad\text{is equal to _______.}$$ (Answer: $\cot\frac{\pi}{16}$)
I solved the question by the identity $$\tan \phi = \cot\phi-2\cot 2\phi$$ and got the right answer. However, I want to get some other way so that I can solve the question using basic expansions of tangent, rather than using such an uncommon identity (which I had to look up in the book).