The value of tan α+2tan(2α)+4tan(4α)+.....+2n−1tan(2n−1α)+2ncot(2nα) is
cotα
cotα−tanα=cot2α−1cotα=2cot2αtanα=cotα−2cot2α
Relpacing α by 2α and multiplying both side by 2, we get
2tan2α=2cot2α−22cot22α
Similiarly,
22tan22α=22cot22α−23cot23α2n−1tan2n−1α=2n−1cot2n−1α−2ncot2nα
Adding all, we get
tanα+2tan2α+22tan22α+.....2n−1tan2n−1α=cotα−2ncot2nα⇒tanα+2tan2α+22tan22α+....+2ncot2nα=cotα