The Problem is: Does the series $$\sum_{n=1}^\infty \frac {\left(\cos\left(\frac{n\pi}{8}\right)\right)^n}{n}$$ converge or diverge or oscillate ?
My approach : Actually, the series is not absolutely convergent because the subsequence $T_{16k} \gt \sum_{j=1}^k \frac{1}{16j}$ and hence becomes divergent where $T_n$ represents the partial sums of the absolute series .
Now, I have tried to apply the Dirichlet's test on the series but I think the series $$\sum_{n=1}^\infty \left(\cos\left(\frac{n\pi}{8}\right)\right)^n$$ is not bounded because if $n =8k,8k+1,...,8k+7$ for all non-negative integers $k$ , then except $n=8k$, the rest of the series forms into distinct brackets of infinite geometric progressions with common ratio(s) $r \lt 1$ but we get $1+1+..1+...$ in the series for $n=8k$ values and hence the series becomes unbounded .
I can't approach further, a small hint is warmly appreciated .