I have to find the value of a such that the following series converges:$$\sum_{n=1}^{\infty}n^{\frac{1}{3}}\left|\sin\left(\frac{1}{n}\right)-\frac{1}{n^a}\right|$$
First of all, I simplified the series with the respective asymptotic as follows: $$\sum_{n=1}^{\infty}n^{\frac{1}{3}}\left|\frac{1}{n}-\frac{1}{n^a}\right| \sim \sum_{n=1}^{\infty}n^{\frac{1}{3}}\left|\frac{1}{n^a}\right|$$ Then, simplifying again, it results: $$\sum_{n=1}^{\infty}\frac{1}{n^{a-\frac{1}{3}}}$$ Which should converge for $a>\frac{4}{3}$, but I checked with Mathematica, which according to it, it is wrong.
The first step is wrong.
(First of all, $a_n\sim b_n$ and $\sum_{n=1}^\infty a_n \sim \sum_{n=1}^\infty b_n$ are not the same thing; the second, actually, does not mean anything. But that's not the main point...)
Note that, as $n\to\infty$, $$ \sin\frac{1}{n} - \frac{1}{n^a} = \frac{1}{n} - \frac{1}{6n^3} - \frac{1}{n^a} + o\left(\frac{1}{n^3}\right) $$ so that $$ n^{1/3}\left(\sin\frac{1}{n} - \frac{1}{n^a} \right) = \left(\frac{1}{n^{2/3}} - \frac{1}{n^{a-1/3}} \right) - \frac{1}{6n^{8/3}} + o\left(\frac{1}{n^{8/3}}\right) $$ So for the series $\sum_n n^{1/3}\left|\sin\frac{1}{n} - \frac{1}{n^a} \right|$ to converge, you need the term in parentheses to cancel (why?), which gives you what $a$ must be.