Let $p,q\in\mathbb{R}$ and consider the series $\sum_{n\geq 2}\frac{1}{n^{p}(\ln(n))^{q}}$.
i) Show by the comparison test, that the series is convergent if $p>1$ and divergent if $p<1$ for all $q\in\mathbb{R}$.
ii) Show by the integral test, that if $p=1$ the series is convergent if and only if $q>1$.
[Hint: The antiderivatives $(\ln(x))^{-a}$ and $\ln(\ln(x))$ can be used].
My answer to i) Define $a_{n}:=\frac{1}{n^{p}(\ln(n))^{q}}$. Note that $\ln(x)<1/x\implies 1/\ln(x)>x$ for all $x\in [2,\infty)$. We can use the comparisons:
If $q\geq 0$ we have $1/(\ln(x))^{q}\geq 1/x^{q}$ and $1/(\ln(x))^{q}\leq x^{q}$.
If $q< 0$ we have $1/(\ln(x))^{q}<1/x^{q}$ and $1/(\ln(x))^{q}>x^{q}$.
Assume $q\geq 0$. We see that $\sum_{n\geq 2}a_{n}\geq \sum_{n\geq2}1/x^{p+q}$. By divergence test, the $\sum_{n\geq2}1/x^{p+q}$ diverges if $p+q<1 \iff p<1-q\leq 1$, that is, if $p\leq 1$ (or should it be $p<1$?)
We also see that $\sum_{n\geq 2}a_{n}\leq \sum_{n\geq2}1/x^{p-q}$. By the $p$-test, the $\sum_{n\geq2}1/x^{p-q}$ converges if $p-q>1\iff p>1+q\geq 1$, that is, if $p>1$.
Assume $q<0$. We see that $\sum_{n\geq 2}a_{n}<\sum_{n\geq 2}1/n^{p}$ which converges if $p>1$. We also see that $\sum_{n\geq 2}a_{n}>\sum_{n\geq 2}1/n^{p-q}$ which diverges if $p-q<1\iff p<1+q<1$.
Question: I have shown that the series diverges if $p\leq 1$ for $q\geq 0$ -- but it diverges if $p<1$ for $q<0$. What do I have to do with it?
My answer to ii) I don't know how the hint is helping me. Define $f(x):=\frac{1}{x^{p}(\ln(x))^{q}}$ for all $x\geq 2$. The function is decreasing if $f'(x)\leq 0 \iff q\geq -p\ln(x)$, that is, if $x\geq e^{-q/p}$. Letting $p=1$, the function is decreasing if $x\geq e^{-q}$.
$\impliedby:$ For $q\neq 1$, we have that $$ \int_{2}^{\infty}f(x)\,\mathrm{d}x=\int_{2}^{\infty}\frac{1}{x(\ln(x))^{q}}=\int_{\ln(2)}^{\infty}\frac{1}{m^{q}}\,\mathrm{d}m=\left [ \frac{1}{1-q}\frac{1}{m^{q-1}} \right ]_{\ln(2)}^{\infty}. $$ We see that the series is convergent if $q-1>0$ and divergent if $q-1<0$. For $q=1$, the series too is divergent.
$\implies$: Proving it by contraposition that the series is divergent if $q\leq 1$. Since it already has been shown, then the series converges only if $q>1$.
Edit: I have edited both cases many times. Thanks to Steven Stadnicki, Dr. MV and Bernard for helping me.