Problem

Source:

Tags: combinatorics, Coloring



We call a coloring of a $2022 \times 2022$ checkerboard a banger coloring if it is colored by $2$ colors, black and white, such that each $2 \times 2$ square contains an even number of black cells. The number of banger colorings is $b$. Let $b = b_1b_2... cd$ (so $d$ is the last digit of $b$ and $c$ is the $2$nd last digit of $b$). Enter $c^2 + d^2 + 5$.