\begin{equation}\displaystyle{\sum_\limits{i=0}^n}i\end{equation}
Find the values of n for which the summation is divisible by 3. If Possible write a general formula.
\begin{equation}\displaystyle{\sum_\limits{i=0}^n}i\end{equation}
Find the values of n for which the summation is divisible by 3. If Possible write a general formula.
First, this is equivalent to:
$\sum_{i = 1}^{n}i = 1 + 2 + ...+ (n - 1) + n$
Using the formula for the sum of an arithmetic series:
$1 + 2 + ...+(n-1)+n = \frac{n(n + 1)}{2}$
Obviously this is an integer, because one of $n$ and $n+1$ must be even (divisible by $2$).
Now, we need $\frac{n(n+1)}{2}$ to be divisible by $3$. This is true if and only if one of $n$ and $n + 1$ is divisible by 3. In other words, $n$ must be a multiple of $3$ or one less than a multiple of $3$. Using modular expressions for compactness, the solution set is
$\boxed{\big\{n : n\equiv 0\pmod{3} \text{ or }n\equiv 2\pmod{3}\big\}}$