Problem. Among how many people must there be three mutual friends or three mutual strangers? Answer: 6 (): 5 people are not enough.

bool monoTriangle(int n, long long colouring) {   // bit e = colour of edge e in the order (0,1), (0,2), ..., (n-2, n-1)
    vector<vector<int>> col(n, vector<int>(n)); int e = 0;
    for (int i = 0; i < n; i++) for (int j = i + 1; j < n; j++) col[i][j] = col[j][i] = colouring >> e++ & 1;
    for (int i = 0; i < n; i++) for (int j = i + 1; j < n; j++) for (int k = j + 1; k < n; k++)
        if (col[i][j] == col[j][k] && col[j][k] == col[i][k]) return true;
    return false;
}
Ramsey numberValue
6
9
18
between 43 and 46 (open)
general bound