A Hadamard matrix of order n is an n * n matrix containing only 1s and -1s, called Hn, such that
where
is the n * n identity matrix. An interesting property of Hadamard matrices is that they have the maximum possible determinant of any n * n matrix with elements in the range [-1, 1]. Hadamard matrices have applications in errorcorrecting codes and weighing design problems.
The Sylvester construction is a way to create a Hadamard matrix of size 2n given
.
can be constructed as:
for example:
and so on.
In this problem you are required to print a part of a Hadamard matrix constructed in the way described above.