I asked ChatGPT to implement an algorithm to compute bicolour patterns with tables of marks and it answered with some mysterious recursion that has nothing to do with it (namely: table[i][j] = table[i-1][j-1] + table[i-1][j] + table[i][j-1]).