Let assume facebook has $n$ users. Mark Zuckerberg decided that people are allowed to open groups under the following restrictions:
1) No two different groups can exactly the same participants.
2) The number of users in each group is even.
3) Every two group has an odd number of common users.
Denote by $m$ the maximal number of groups that can be formed in facebook under the restrictions mentioned above. Prove $m \leq n$.
I tried solving this by defined a matrix, multiplying it by its transpose and using some rank considerations I thought I could derive the bound, but I didn't succeed. Could you please give me a hint?
The question had anther subsection : prove that in the case that $n$ is even than we have stron inequality
Let $[n]=\{1,\ldots,n\}$ be the set of users, and let $\mathscr{G}\subseteq\wp([n])$ be the collection of groups. As leonbloy pointed out, we can use the classic problem to show that $|\mathscr{G}|\le n+1$. Suppose that $|\mathscr{G}|=n+1$. For each $G\in\mathscr{G}$ let $v_G$ be the vector associated with $G$; $v_G\cdot v_H=1$ for distinct $G,H\in\mathscr{G}$, while $v_G\cdot v_G=0$ for all $G\in\mathscr{G}$. (All arithmetic is done modulo $2$.) The $n+1$ vectors $v_G$ for $G\in\mathscr{G}$ must be linearly dependent, so there are scalars $c_G$ for $G\in\mathscr{G}$, not all $0$, such that $\sum_{G\in\mathscr{G}}c_Gv_G=0$. Then for each $H\in\mathscr{G}$ we have
$$0=v_H\cdot\sum_{G\in\mathscr{G}}c_Gv_G=\sum_{G\in\mathscr{G}\setminus\{H\}}c_G\;.$$
Let $H$ and $K$ be distinct members of $\mathscr{G}$; then
$$c_H-c_K=\sum_{G\in\mathscr{G}\setminus\{K\}}c_G-\sum_{G\in\mathscr{G}\setminus\{H\}}c_G=0\;,$$
so $c_H=c_K$, and we must have $c_G=1$ for all $G\in\mathscr{G}$.
Fix $H\in\mathscr{G}$; $\sum_{G\in\mathscr{G}\setminus\{H\}}1=0$, so $n$ is even. For each $G\in\mathscr{G}$ let $G\,'=[n]\setminus G$; $n$ and $|G|$ are even, so $|G'|$ is even. Moreover, if $G$ and $H$ are distinct members of $\mathscr{G}$, then
$$|G\,'\cap H'|=n-|G\cup H|=n-|G|-|H|+|G\cap H|$$
is odd. Let $\mathscr{G}'=\{G\,':G\in\mathscr{G}\}$; then $\mathscr{G}'$ satisfies the same conditions as $\mathscr{G}$, soby the same argument we must have $\sum_{G\in\mathscr{G}}v_{G\,'}=0$, where $v_{G\,'}$ is of course the vector corresponding to the set $G\,'$. But then
$$0=\sum_{G\in\mathscr{G}}v_G+\sum_{G\in\mathscr{G}}v_{G\,'}=\sum_{G\in\mathscr{G}}(v_G+v_{G\,'})=\sum_{G\in\mathscr{G}}\mathbf{1}\;,$$
where $\mathbf{1}=v_{[n]}$ is the vector of all ones, and it follows that $n+1=|\mathscr{G}|$ is even and hence that $n$ is odd. This is a contradiction, and it follows that $|\mathscr{G}|$ cannot be $n+1$: it must be at most $n$.