※ 引述《maple205 (艾瑞克)》之铭言:
: https://i.imgur.com/OwJHXdj.jpg
: 想问一下把S2-S是怎么算出这个答案的?
: 谢谢~
2S - S = -1*2 + (1*2^2 - 2*2^2) + (2*2^3 - 3*2^3) + .... + n*2^(n+1)
= -2 - 2^2 - 2^3 - ... - 2^n + n*2^(n+1)
= -2[2^n - 1]/[2 - 1] + n*2^(n+1)
= -2^(n+1) + 2 + n*2^(n+1)
= (n - 1)*2^(n+1) + 2