# Taylor series exp. & a couple of other questions

Problem

Find the sum of the series

$$s(x) = \sum _{n=1} ^{\infty} \frac{1}{2^{n}} \tan \frac{x}{2^n}$$

Solution

If

$$s(x) = \sum _{n=1} ^{\infty} \frac{1}{2^{n}} \tan \frac{x}{2^n} = \frac{x}{3} + \frac{x^3}{45} + \frac{2x^5}{945} + \dotsb$$

$$\cot x = \frac{1}{x} - \frac{x}{3} - \frac{x^3}{45} - \frac{2x^5}{945} - \dotsb$$

Then

$$s(x) = \frac{1}{x} - \cot x \quad (x \neq n\pi \quad n \in \mathbb{N}) \mbox{ and } s(0) = 0$$

Questions

I found the maclaurin series expansion for $$s(x)$$ and $$\cot x$$ with the aid of mathematica. I know how to obtain the latter through long division, but I'm not sure on how to find the former. The only concept that I have in mind right now is that of a generic Taylor series:

$$\sum _{n=0} ^{\infty} \frac{f^{(n)}(a)}{n!} (x-a) ^n$$

Any help is highly appreciated.
{"ft_lang_label":"__label__en","ft_lang_prob":0.58239836,"math_prob":1.0000038,"size":1744,"snap":"2021-43-2021-49","text_gpt3_token_len":721,"char_repetition_ratio":0.16781609,"word_repetition_ratio":0.9589041,"special_character_ratio":0.44094038,"punctuation_ratio":0.03208556,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":1.0000088,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-12-02T18:53:43Z\",\"WARC-Record-ID\":\"<urn:uuid:d35fb30e-43db-4dde-9671-48e022bcc17c>\",\"Content-Length\":\"61044\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:dc8299ab-4b9a-413f-b038-5476e14defce>\",\"WARC-Concurrent-To\":\"<urn:uuid:fe26536d-9590-4079-998c-34019050c266>\",\"WARC-IP-Address\":\"172.67.68.135\",\"WARC-Target-URI\":\"https://www.physicsforums.com/threads/taylor-series-exp-a-couple-of-other-questions.58632/\",\"WARC-Payload-Digest\":\"sha1:W3BFC7QUWMLRPYEINNE4QI4XYJLU3CBQ\",\"WARC-Block-Digest\":\"sha1:7ZQIZHV33K2NERZ5XQZEKWWOTWS345OD\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-49/CC-MAIN-2021-49_segments_1637964362287.26_warc_CC-MAIN-20211202175510-20211202205510-00636.warc.gz\"}"}