Let $A=\{1,2,\dots,n\}$, and $\mathcal{A}_1,\dots,\mathcal{A}_k$ be partitions of $A$ into three sets. Suppose that for each pairwise distinct $x,y,z\in A$, there exists $1\leq i\leq k$ such that $x,y,z$ are all in different sets in the partition $\mathcal{A}_i$. What is the minimum possible $k$?
Since we are interested in partitions into three sets, we might want to write each element of $A$ in base three. Then we can have $\mathcal{A}_i$ be the partition into three sets according to whether the $i$th digit is $0,1,$ or $2$. But this is not enough, because three pairwise distinct elements $x,y,z$ might not have a digit in which they are all distinct.
A probabalistic argument claims it goes as $\log n$. For large $n$ there are $\frac {n^3}6$ triplets and a given partition (if the three pieces are the same size) covers $\frac {n^3}{27}$ of them. If we randomly assign the partition we cover $\frac 6{27}$ of the triplets, so a triplet is not covered with chance $\frac 79$ To expect less than one triplet uncovered, we need $k$ partitions with $\frac {n^3}6\left(\frac 79\right)^k \lt 1$ or $k \gt \frac {\log \frac {n^3}6}{-\log \frac 79}\approx 3 \log n$