when I posted this question I was interested in the sum $ \sum_{n=0} ^{\infty} \frac{(-1)^n}{4n+3}$ but when I thought about the generalised sum $ \sum_{n=0} ^{\infty} \frac{(-1)^n}{kn+c +1}$ for all $k \in \mathbb{N} -\{ 1 \} , c \in \mathbb{N} \cup \{0 \} $ I want to know what values of $k,c$ make $\pi $ show up in as a result of this infinite sum.
It is convenient to turn the sum into integrals
$$ \sum_{n=0} ^{\infty} \frac{(-1)^n}{kn+c +1} = \sum_{n=0} ^{\infty} \int_0 ^1 (-1)^n x^{kn+c}dx = \int_0 ^1 \sum_{n=0} ^{\infty} (-1)^n x^{kn+c}dx = \int_0 ^1 x^c\sum_{n=0} ^{\infty} (-1)^n x^{kn}dx = \int \frac{x^c}{1+x^k} dx$$
I noticed the following pattern
for k=2 $$\int_0 ^1 \frac{1}{1+x^2}dx =\frac{\pi}{4}$$ $$\color{red}{\int_0 ^1 \frac{x}{1+x^2}dx =\frac{\ln2}{2}}$$ $$\int_0 ^1 \frac{x^2}{1+x^2}dx =1- \frac{\pi}{4}$$ $$\color{red}{\int_0 ^1 \frac{x^3}{1+x}dx = \frac{1}{2} - \frac{\ln2}{2} }$$
for $k=3$ $$\int_0 ^1 \frac{1}{1+x^3}dx =\frac{1}{18} (2\sqrt{3}\pi +\ln(64))$$ $$\int_0 ^1 \frac{x}{1+x^3}dx = \frac{1}{18} (2\sqrt{3}\pi -\ln(8))$$ $$\color{red}{\int_0 ^1 \frac{x^2}{1+x^3}dx =\frac{\ln2}{3}}$$ $$\int_0 ^1 \frac{x^3}{1+x^3}dx =1- (\frac{1}{9} (\sqrt{3}\pi +\ln(8)))$$ $$\int_0 ^1 \frac{x^4}{1+x^3}dx =\frac{1}{2} -\frac{1}{18} (-2\sqrt{3}\pi +\ln(64))$$ $$\color{red}{\int_0 ^1 \frac{x^5}{1+x^3}dx =\frac{1}{3} (1- \ln(2))}$$
it seems that $\pi$ must show up in every case where $c \neq mk-1$ for all $m \in \mathbb{N}$ put I couldn't prove why.