Maths WorkshopMaths problems with full solutions
Exercise 886Combinatorics › Counting principlesL1Added 3 Nov 2026

Counting configurations

#inclusion-exclusion#configurations#chessboard

Statement

How many 3×33\times3 00-11 matrices have at least one row of all 11s?

Hint

Use inclusion-exclusion on "row ii is all 11s".

Show solutionHide solution

Solution

Total. 29=5122^9=512.

Count via IE. Let AiA_i=row ii all ones. ∣Ai∣=26|A_i|=2^6 (other 66 entries free). ∣Ai∩Aj∣=23|A_i\cap A_j|=2^3, ∣A1∩A2∩A3∣=1|A_1\cap A_2\cap A_3|=1.

Union. 3⋅64−3⋅8+1=192−24+1=1693\cdot64-3\cdot8+1=192-24+1=169.

Conclusion. 169169 matrices have at least one all-11 row.