In the game of Projective Set, it turns out that any seven cards contain a projective set. For fewer than 7 cards, how can we determine the probability that one or more sets exist (in terms of the number of cards)?
For those not familiar with Projective Set, here's a description from the wikipedia page linked above:
A Projective Set card has six binary attributes, or bits, generally represented by colored dots. For each color of dot, each card either has that dot or does not. There is one card for each possible combination of dots except the combination of no dots at all, making $2^6 - 1 = 63$ cards total.
Three cards are said to form a "set" if the total number of dots of each color is either 0 or 2. Similarly, four or more cards form a "set" if the number of dots of each color is an even number.
A card and itself could be said to form a two-card set, but as the cards in the deck are all distinct, this does not arise in actual gameplay.
The cards correspond to (nonzero) vectors in the $6$-dimensional vector space $V$ over the $2$-element field ${\Bbb F}_2$. Under this correspondence, a "set" is a collection of vectors whose sum is the zero vector. Since the dimension of the vector space is $6$, any set of $7$ vectors $v_1,\ldots, v_7$ must be linearly dependent, i.e. there exist constants $c_i\in{\Bbb F}_2$, not all zero, such that $$\sum_{i=1}^7 c_i v_i = 0 \textrm{ in }V.$$ But the $c_i$'s all either $0$ or $1$, so this means that some subset of the $v_i$'s must sum to the zero vector. Therefore, any $7$ cards contain a set.
To find the probability that $k$ vectors contain a set, we are asking for the probability that $k$ distinct nonzero vectors $v_1,\ldots,v_k$ are linearly dependent. It's easier to compute the number of ways they can be chosen to be linearly independent. There are $2^6-1$ possibilities for $v_1$; $v_2$ must not be in the subspace spanned by $v_1$, so there are $2^6-2$ possibilities for $v_2$. Similarly there are $2^6-4$ possibilities for $v_3$, and so on, with $2^6-2^{k-1}$ possibilities for $v_k$. Thus the probability that $\{v_1,\ldots, v_k\}$ are linearly independent (i.e. do not contain a set) is $$\frac{\prod_{i=0}^{k-1}(2^6-2^i)}{\prod_{i=1}^k(2^6-i)}.$$ Note that this probability becomes $0$ as soon as $k=7$, confirming that every $7$-tuple contains a set.
(The product in the denominator starts with $1$, rather than $0$, since this is Projective Set (rather than Affine Set), and we threw away the all-zero vector.)