Evaluate the following sums:
$$\sum^{p}_{x=1}\left(\frac{x}{p}\right), \sum^{p}_{x=1}\left(\frac{x+k}{p}\right), \sum^{p}_{x=1}\left(\frac{ax+b}{p}\right)$$
Let $p$ be a prime and $k, a,$ and $b$ be arbitrary integers.
If someone could explain this to me and perhaps share a resource where I could learn how to solve these types of questions better, I would be indebted.
$$\sum^{p}_{x=1}(\frac{x}{p})=\frac{1}{p}\sum^{p}_{x=1}x=\frac{1}{p}\frac{p(p-1)}{2}=\frac{p-1}{2}$$
$$\sum^{p}_{x=1}(\frac{x+k}{p})=\frac{1}{p}\sum^{p}_{x=1}x+k=\frac{1}{p}\big (\frac{p(p-1)}{2}+pk \big)=\frac{p-1}{2}+k $$
The last summation follows in the exact same way... you split it up.
$$\sum^{p}_{x=1}(\frac{ax+b}{p})$$