We are given 0<a,b<1 and tan−1a+tan−1b=4π.
Using the addition formula, tan(tan−1a+tan−1b)=1−aba+b=tan4π=1. Therefore a+b=1−ab, which gives a+b+ab=1.
The given series is (a+b)−2a2+b2+3a3+b3−4a4+b4+⋯
This can be written as k=1∑∞(−1)k+1kak+bk=k=1∑∞(−1)k+1kak+k=1∑∞(−1)k+1kbk.
Each sum is the Maclaurin series for ln(1+x) evaluated at x=a and x=b respectively (valid since 0<a,b<1). So the series equals ln(1+a)+ln(1+b)=ln((1+a)(1+b)).
Expanding: (1+a)(1+b)=1+a+b+ab=1+1=2 (using a+b+ab=1).
Therefore the value of the series is ln2=loge2.