According to Faulhaber's theorem, It is known that the $nth$ triangular number is always a factor of the sum of odd powers of the first $n$ natural numbers, i.e. If $p>0$, then $$\sum_{k=1}^n k^{2p+1} = \left(\frac{n(n+1)}{2}\right)Q$$ for some integer $Q$.
My question is:
Is there a way to show that $Q$ is always an odd number if $n=4m+1$ and $n=4m+2$?
I am asking this question because I arrived at this equation
$$\sum_{k=1}^n k^{2p+1} = \left(\frac{n(n+1)}{4}\right)(Q-1)$$
Which is easy to see that
$$\left(\frac{n(n+1)}{4}\right)(Q-1)$$ is always an integer when
$n=4m+3$ and $n=4m$
Since $Q$ is some integer.
But $Q$ will have to be an odd number if
$$\left(\frac{n(n+1)}{4}\right)(Q-1)$$
When
$n=4m+1$ and $n=4m+2$.
I have tried all I could to get started but I don't know where to start. Any clue on how to go about it will be appreciated. Thanks.