Odd or even row dot product based on order of Matrix

944 Views Asked by At

For a given NxN matrix what is not the value of N such that the dot product of a row with itself will be even and dot product of any row with a different row is odd.
a) 2k b) 2k,4k,4k+1 c) 4k

1

There are 1 best solutions below

4
On

Here are some ideas that may help the thought process, presented as a HINT. Given that any row must dot as odd with any other row, there is not a zero row mod 2 (no row with all even values). Given that any row dots even with itself, each row has an even number of odd elements.

Consider

$$\pmatrix{0 & 1 & 1& 1&\\ 1& 0& 1& 1& \cdots\\ 1& 1& 0& 1& \\ 1& 1& 1& 0& \\ \vdots & & & & \ddots }$$

This shows existence for any $N = 2k + 1$.

Next consider the smallest even dimension $N =2$ ...