Show that given seven real numbers, it is always possible take two of them, such that $$\left\vert\frac{a-b}{1+ab}\right\vert<\frac{1}{\sqrt{3}}$$
The "Pigeonhole principle" states that if $n$ items are put into $m$ containers, with $n > m$, then at least one container must contain more than one item, but how I an define my "container" such that meets the condition of the problem?
(using the idea of @Wojowu:)
HINT: write $a_i = \tan \alpha_i$ with $\alpha_i = \arctan(a_i) \in (-\frac{\pi}{2}, \frac{\pi}{2})$. Say $$a_1 \le a_2 \le \cdots \le a_7$$ and so $$-\frac{\pi}{2} < \alpha_1 \le \alpha_2 \le \cdots \le \alpha_7 < \frac{\pi}{2}$$
We have $$ (\alpha_2 -\alpha_1) + ( \alpha_3 - \alpha_2) + \cdots + (\alpha_7 - \alpha_6) = \alpha_7 - \alpha_1 < \frac{\pi}{2} - (-\frac{\pi}{2}) < \pi$$ so at least one of the numbers $\alpha_{i+1} - \alpha_i$ is $< \frac{\pi}{6}$ (the sum had six terms). For that difference we have $$0 \le \alpha_{i+1} - \alpha_i < \frac{\pi}{6}$$ so $\tan ( \alpha_{i+1} - \alpha_i ) \in ( 0, \tan \frac{\pi}{6})$
Use now the formula for the tangent of the difference and the value $\tan \frac{\pi}{6}$
$\bf{Added:}$ Since OP mentioned the pigeon-hole principle, let's give a solution using it. Consider the partition of the interval $(-\frac{\pi}{2}, \frac{\pi}{2}]$ into $6$ parts: $$\left(-\frac{\pi}{2}, \frac{\pi}{2}\right] = \bigsqcup_{k=0}^5 \left(-\frac{\pi}{2}+ k\frac{\pi}{6}, -\frac{\pi}{2}+ (k+1)\frac{\pi}{6}\right] $$ At least two of the number $\alpha_i$ ( there are $7$ of them) will be in the same part, so their difference will be $\ge 0$ and $< \frac{\pi}{6}$.