Question:
Consider set $A= \{ 1, 2, 3, ..., n\}$. For what values of $n$ can $A$ be partitioned into 3 subsets $A_1, A_2, A_3$, such that sum of the elements of each of them are equal?
My Attempt:
For the set $A$ to be partitioned in the required way, sum of all elements of $A$ must be divisible by $3$. Thus a necessary condition is:
$1 + 2 + .. + n = n(n+1)/2 \equiv 0 $ mod $3$
which implies $n = 3t $ or $n = 3t-1$ for integer $t>2$
On trial with values of t up to $t=11$, I found that in every case, $A$ can be partitioned according to the given conditions. But how can I prove this?
Partial answer: For $n=3t$ define the sets: $$A_1 = \{1+6k:1\leq 1+6k\leq n\}\cup \{6k:1\leq 6k \leq n\}=\{1,6,7,12,13,\ldots \}$$ $$A_2 = \{2+6k:1\leq 2+6k\leq n\}\cup \{5+6k:1\leq 5+6k \leq n\}=\{2,5,8,11,14,\ldots \}$$ $$A_3 = \{3+6k:1\leq 3+6k\leq n\}\cup \{4+6k:1\leq 4+6k \leq n\}=\{3,4,9,10,15,\ldots \}$$
Edit: Adding complete solution. For $n=3t-1$ take: $$A_1 = \{5+6k:1\leq 5+6k\leq n\}\cup \{6k:1\leq 6k \leq n\}=\{5,6,11,12,17,\ldots \}$$ $$A_2 = \{1+6k:1\leq 1+6k\leq n\}\cup \{4+6k:1\leq 4+6k \leq n\}=\{1,4,7,10,13,\ldots \}$$ $$A_3 = \{2+6k:1\leq 2+6k\leq n\}\cup \{3+6k:1\leq 3+6k \leq n\}=\{2,3,8,9,14,\ldots \}$$