# Math Help - sum of the numbers less than p divisible by p?

1. ## sum of the numbers less than p divisible by p?

is $\sum_{n=1}^{p-1}{n}$ always divisible by p if p is prime?

Thanks for any help

2. Originally Posted by hmmmm
is $\sum_{n=1}^{p-1}{n}$ always divisible by p if p is prime?

Thanks for any help
Yes, unless $p=2$. In fact, it is true as long as $p$ is ANY odd number.

Try rewriting the sum (for $p>2$, in which case $p$ is odd):

$[1+(p-1)]+[2+(p-2)]+\cdots +[\frac{p-1}{2}+\frac{p+1}{2}]$

3. $\sum_{n=1}^{p-1}{n}=\frac{p-1}{2}*p$ as p-1 is even (so divisible by 2) then it is divisible by p?

4. Exactly. Writing the sum as I did above, you immediately get what you have just written.