Problem 625

Counting Binary Matrices

Problem 627

Counting Binary Matrices

Problem 626

A binary matrix is a matrix consisting entirely of 0s and 1s. Consider the following transformations that can be performed on a binary matrix:
Two binary matrices and will be considered equivalent if there is a sequence of such transformations that when applied to yields . For example, the following two matrices are equivalent:
via the sequence of two transformations "Flip all elements in column 3" followed by "Swap rows 1 and 2".
Define to be the maximum number of binary matrices that can be found such that no two are equivalent. For example, . You are also given that and .
Find , and give your answer modulo .