Let $n \in (1,+\infty)$, I've shown that the function $$ I(n)=\int_{0}^{+\infty}\arctan\left(\frac{1}{x^n}\right)\,\mathrm{d}x $$ is defined on $(1,+\infty)$ and that it can be expressed by $$ I(n)=\frac{1}{n}\int_{0}^{+\infty}\frac{\arctan\left(x\right)}{x^{(n+1)/n}}\,\mathrm{d}x $$ I wanted to know if there was a way to compute this kind of integral. I know that $$ I\left(2\right)=\frac{\pi}{\sqrt{2}}, \quad I\left(3\right)=\frac{\pi}{\sqrt{3}}. $$ Despite that I did not manage to prove it, it was starting well to find a beautiful formula however it becomes difficult to compute for odd integer value of $n$ and gives strange value for even integer value.
Any help?
Another solution is to invoke the formula
$$ \forall 0 < m < n \ : \quad \int_{0}^{\infty} \frac{x^{m-1}}{1+x^n} \, dx = \frac{\pi}{n}\csc\left(\frac{\pi m}{n}\right) \tag{1} $$
whose proof can be found here. Indeed,
\begin{align*} I(n) &= \int_{0}^{\infty} \frac{\arctan(x^n)}{x^2} \, dx \tag{$x\mapsto 1/x$} \\ &= \left[-\frac{1}{x}\arctan(x^n) \right]_{x=0}^{x=\infty} + \int_{0}^{\infty} \frac{nx^{n-2}}{1 + x^{2n}} \, dx \tag{IbP} \\ &= n \cdot \frac{\pi}{2n}\csc\left(\frac{\pi (n-1)}{2n}\right) \tag{by (1)} \\ &= \frac{\pi}{2}\sec\left(\frac{\pi}{2n}\right). \end{align*}