The expression
$\tan\theta+2\tan(2\theta)+2^2\tan(2^2\theta)+\dots+2^{14}\tan(2^{14}\theta)+2^{15}\cot(2^{15}\theta)$ equals to :
The answer in the answer book is given to be $\cot\theta$. I am unable to think in which way to proceed to find the required solution.
thanks in advance!
HINT :
$$a\tan\beta+2a\cot(2\beta)=a\left(\tan\beta+2\cdot\frac{1-\tan^2\beta}{2\tan\beta}\right)=a\cot\beta.$$ So, one has $$2^{14}\tan(2^{14}\theta)+2^{15}\cot(2^{15}\theta)=2^{14}\cot(2^{14}\theta)$$ $$2^{13}\tan(2^{13}\theta)+2^{14}\cot(2^{14}\theta)=2^{13}\cot(2^{13}\theta)$$
and so on.