Problem

Source:

Tags: modular arithmetic, algebra, polynomial



Let $ p$ be a prime and let $ d \in \left\{0,\ 1,\ \ldots,\ p\right\}$. Prove that \[ \sum_{k = 0}^{p - 1}{\binom{2k}{k + d}}\equiv r \pmod{p}, \]where $ r \equiv p-d \pmod 3$, $ r\in\{-1,0,1\}$.