suppose that $n$ is natural number and even, show that $n \nmid 1^n +2^n+3^n + \ldots (n-1)^n$.
so I put $n=2k$ and I supposed $n \mid 1^n +2^n+3^n + \ldots (n-1)^n$ then with a little calculation we find out if $k$ is odd we have contradiction,but if $k$ is even we don't have any contradiction but still something is wrong but I couldn't find it,please help me with this,or any other solution.thanks.
Let $n=2^i(2j+1)$. As $n$ is even, we have $i\ge 1$. And of course $n\ge 2^i>i$. So $n\ge i+1$
Let $S_n=\sum_{k=1}^{n-1}k^n$
For any odd number, $k^n\equiv 1[2^{i+1}]$, by induction on $i$:
a. It's true for $i=1$ that $(2x+1)^2\equiv 1[4]$
b. Suppose it's true for $i$, then $z=(2x+1)^{2^{i}}\equiv 1[2^{i+1}]$
$$(2x+1)^{2^{i+1}}=z^2=(2^{i+1}y+1)^2=2^{i+2}(2^iy^2+y)+1\equiv1[2^{i+2}]$$
c. So $k^n=k^{2^i(2j+1)}\equiv1^{(2j+1)}[2^{i+1}]\equiv 1[2^{i+1}]$
As $2^i$ divides $n$ and not $S_n$, then $n$ does not divide $S_n$