# calculate the sum $\sum 2^{-n} (\frac 1 n -\frac 1 {n+1})$ [duplicate]

calculate the sum $$\sum 2^{-n} (\frac 1 n -\frac 1 {n+1})$$

well, I need this because it show up in an integral, here my attemp:

$$\sum 2^{-n} (\frac 1 n -\frac 1 {n+1}) = \sum 2^{-n} \frac{1}{(n)(n+1)}$$

and I know that $$\sum_{n=1}^{\infty}2^{-n} = 1$$

The power series for $$\log(1-x)$$ is $$-\sum_{n\geq 1}\frac{x^n}{n}$$. In particular $$\sum_{n\geq 1}\frac{1}{2^nn}=\log 2$$. It follows that
$$\sum_{n\geq 1}\frac{1}{2^n(n+1)} = 2\sum_{m\geq 2}\frac{1}{2^mm}=2(\log 2-1/2).$$
$$\sum_{n\geq 1}2^{-n}\left(\frac{1}{n}-\frac{1}{n+1}\right) = 1-\log 2 = 0.3068\cdots$$
$$\ln(1-x)=-\sum_{n=1}^{\infty} \frac{x^n}{n}.~~~(1)$$ Integrate (1) w.,r.x both sides from $$x=0$$ to $$x=1/2$$ to get get $$-\int_{0}^{1/2} \ln(1-x) dx =\left .\sum_{n=1}^{\infty} \frac{x^{n+1}}{n(n+1)}\right|_{0}^{1/2}.$$ $$\Rightarrow \sum_{n=1}^{\infty} 2^{-n} \left (\frac{1}{n}-\frac{1}{n+1} \right)=2\int_{1}^{1/2} \ln t~ dt=1-\ln2.$$
{"ft_lang_label":"__label__en","ft_lang_prob":0.5947372,"math_prob":1.00001,"size":257,"snap":"2020-34-2020-40","text_gpt3_token_len":114,"char_repetition_ratio":0.19367589,"word_repetition_ratio":0.09090909,"special_character_ratio":0.50583655,"punctuation_ratio":0.050847456,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":1.0000099,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-08-13T21:47:51Z\",\"WARC-Record-ID\":\"<urn:uuid:05c92935-c6b5-4bba-9ce2-ff340df79420>\",\"Content-Length\":\"135947\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:c46d3088-7ab3-4dcb-b6cf-dd0930227d89>\",\"WARC-Concurrent-To\":\"<urn:uuid:bb3f849c-f0eb-4ec3-906e-5a93eaeb288b>\",\"WARC-IP-Address\":\"151.101.193.69\",\"WARC-Target-URI\":\"https://math.stackexchange.com/questions/3272382/calculate-the-sum-sum-2-n-frac-1-n-frac-1-n1/3272397\",\"WARC-Payload-Digest\":\"sha1:ZO5VD5ORW47LHUELW27B6P32AHQN3TZL\",\"WARC-Block-Digest\":\"sha1:VMGNDITSWBETVYHDLWAXF5RIEOSVZPYV\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-34/CC-MAIN-2020-34_segments_1596439739073.12_warc_CC-MAIN-20200813191256-20200813221256-00562.warc.gz\"}"}