Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
For n \equiv 0, 1, 2(mod 9)$n \equiv 0, 1, 2 \pmod 9$, write {1,...,3n}$\{\,1,\dots,3n\,\}$ as the disjoint union of arithmetic progressions A1, A2,...,An$A_1, A_2,\dots,A_n$ of length 3, where Ai$A_i$ has step i$i$.
For n \equiv 0, 1, 2(mod 9), write {1,...,3n} as the disjoint union of arithmetic progressions A1, A2,...,An of length 3, where Ai has step i.
For $n \equiv 0, 1, 2 \pmod 9$, write $\{\,1,\dots,3n\,\}$ as the disjoint union of arithmetic progressions $A_1, A_2,\dots,A_n$ of length 3, where $A_i$ has step $i$.