Given a non-zero real number $a$. Find all functions $f : R \to R$, such that $$f(f(x + y)) = f(x + y) + f(x)f(y) + axy$$for all $x, y \in R$.
2023 Grand Duchy of Lithuania
There are $n$ students in a class, and some pairs of these students are friends. Among any six students, there are two of them that are not friends, and for any pair of students that are not friends there is a student among the remaining four that is friends with both of them. Find the maximum value of $n$.
The midpoints of the sides $BC$, $CA$ and $AB$ of triangle $ABC$ are $M$, $N$ and $P$ respectively . $G$ is the intersection point of the medians. The circumscribed circle around $BGP$ intersects the line $MP$ at the point $K$ (different than $P$).The circle circumscribed around $CGN$ intersects the line $MN$ at point $L$ (different than $N$). Prove that $\angle BAK = \angle CAL$.
Note that $k\ge 1$ for an odd natural number $$k! ! = k \cdot (k - 2) \cdot ... \cdot 1.$$Prove that $(2^n -1)!! -1$ divides $2^n$ for all $n \ge 3$.