I apologize if this isn't advanced enough for this forum, but I'm not sure it belongs in pre-university algebra help either...

---

I don't even know where to begin this problem... any suggestions?

Find (modulo 7) from k=1->300.

I know for any numbers k of the form 7n $\displaystyle k^k$ reduces to zero, 7n+1 reduces to 1, and 7n-1 forms an alternating sequence of 1 and -1. Beyond that I have no ideas. Thoughts?