Skip to content
Category
বাং বাংলা
2026 · Regional · Sylhet · Secondary Question 4 of 8

Regional · Sylhet

0 of 8 solved

Solved To revisit Not yet

Question 4 of 8 · BDMO 2026 Regional · Sylhet · Secondary

Combinatorics Answer can be checked Written solution

A 2025×20252025 \times 2025 square grid consists of 202522025^2 cells. Each cell is colored either black or white. A coloring is called balanced if, for every rectangular sub-grid of size a×ba \times b (1≤a,b≤20251 \le a, b \le 2025), the difference between the number of black cells and white cells in that sub grid is at most 1. How many different balanced colorings are possible? (Two colorings are considered different if there exists at least one cell which is colored black in exactly one of them.)