Given a matrix $M$ that consists of a set of $4K$ binary row vectors (each vector entry is 0 or 1) each of length $K$. Moreover, it is known/promised that no subset of rows in matrix add to an all 1 vector. For a given integer $X$, the only the following operations permitted on the rows of the matrix:
- Modular addition: $r_i = (r_i*u+ r_j*v)\%X$, for some integers $u, v$
Objective: Using the above two operations, transform a row into an all 1 vector (whenever it is possible). Is this achievable? My guess is yes (using a process similar to Gaussian Elimination) but need a reconfirmation.
Let us choose 2 random prime numbers $P_1$ and $P_2$ ($P_1$ < $P_2$) as $X$.
Query 1: Is it possible that there exists instances of $M$, that (using the above 2 operations) we can transform a row to an all 1 vector for $P_1$, but the same will not be possible for $P_2$?
Query 2: For each given instance of $M$, is there some value $V$ beyond which for all (prime) $X$, the above 2 operations will always be able to result in an all 1 vector?
Moreover, is for any given matrix $M$ and $X$ is there a general property that we can always test or state that is true iff such a row transformation is possible?
Can someone please help with this (along with examples for both queries if possible)?