Loading [MathJax]/jax/output/HTML-CSS/jax.js

First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How one can find a matrix with given condition?

I found the following recreational mathematics problem too hard for me. Can anyone give me hints how to find a solution?

Consider the 4×4 matrices with integer coefficients. Let its elements be ai,j for 1i,j4. Now form a four sets A1,A2,A3,A4. Say that A1 is the set of element ai,j. Also, A2 is the set of elements ai,j+ai+1,j+ai,j+1+ai+1,j+2 i.e. if you think matrix, A2 is like sum of elements of 2×2-subsquares of the matrix. Similarly, denote A3 the set of sums of 3x3-submatrices and A4 the sum of elements of the given 4×4-matrix.

Now, I heard a rumor that one can give an example for 16 integers ai,j such that all integers from 1 to 25 belongs to A1A2A3A4. How can one find such an example? It is easy to see that at least some of the elements ai,j must satisfy 1ai,j25 but there is still too many element that finding such a matrix by brute force seems impossible. I was wondering if genetic algorithm or simulated annealing works for such a problem but I don't have enough experience to implement that.

The best I know is that solution for case 24 is possible:

-42  22  23   7
 13  11 -32  14
-23  16  15   8
 19   9 -22   1

How one can find a matrix with given condition?

I found the following recreational mathematics problem too hard for me. Can anyone give me hints how to find a solution?

Consider the 4×4 matrices with integer coefficients. Let its elements be ai,j for 1i,j4. Now form a four sets A1,A2,A3,A4. Say that A1 is the set of element ai,j. Also, A2 is the set of elements ai,j+ai+1,j+ai,j+1+ai+1,j+2 i.e. if you think matrix, A2 is like sum of elements of 2×2-subsquares of the matrix. Similarly, denote A3 the set of sums of 3x3-submatrices and A4 the sum of elements of the given 4×4-matrix.

Now, I heard a rumor that one can give an example for 16 integers ai,j such that all integers from 1 to 25 belongs to A1A2A3A4. How can one find such an example? It is easy to see that at least some of the elements ai,j must satisfy 1ai,j25 but there is still too many element that finding such a matrix by brute force seems impossible. I was wondering if genetic algorithm or simulated annealing works for such a problem but I don't have enough experience to implement that.

The best I know is that solution for case 24 is possible:

-42  22  23   7
 13  11 -32  14
-23  16  15   8
 19   9 -22   1

How one can find a matrix with given condition?

I found the following recreational mathematics problem too hard for me. Can anyone give me hints how to find a solution?

Consider the 4×4 matrices with integer coefficients. Let its elements be ai,j for 1i,j4. Now form four sets A1,A2,A3,A4. Say that A1 is the set of element ai,j. Also, A2 is the set of elements ai,j+ai+1,j+ai,j+1+ai+1,j+2 i.e. if you think matrix, A2 is like sum of elements of 2×2-subsquares of the matrix. Similarly, denote A3 the set of sums of 3x3-submatrices 3×3-submatrices and A4 the sum of elements of the given 4×4-matrix.

Now, I heard a rumor that one can give an example for 16 integers ai,j such that all integers from 1 to 25 belongs to A1A2A3A4. How can one find such an example? It is easy to see that at least some of the elements ai,j must satisfy 1ai,j25 but there is still too many element that finding such a matrix by brute force seems impossible. I was wondering if genetic algorithm or simulated annealing works for such a problem but I don't have enough experience to implement that.

The best I know is that solution for case 24 is possible:

-42  22  23   7
 13  11 -32  14
-23  16  15   8
 19   9 -22   1

How one can find a matrix with given condition?

I found the following recreational mathematics problem too hard for me. Can anyone give me hints how to find a solution?

Consider the 4×4 matrices with integer coefficients. Let its elements be ai,j for 1i,j4. Now form four sets A1,A2,A3,A4. Say that A1 is the set of element ai,j. Also, A2 is the set of elements ai,j+ai+1,j+ai,j+1+ai+1,j+2 i.e. if you think matrix, A2 is like sum of elements of 2×2-subsquares of the matrix. Similarly, denote A3 the set of sums of 3×3-submatrices and A4 the sum of elements of the given 4×4-matrix.

Now, I heard a rumor that one can give an example for 16 integers ai,j such that all integers from 1 to 25 belongs to A1A2A3A4. How can one find such an example? It is easy to see that at least some of the elements ai,j must satisfy 1ai,j25 but there is still too many element that finding such a matrix by brute force seems impossible. I was wondering if genetic algorithm or simulated annealing works for such a problem but I don't have enough experience to implement that.

The best I know is that solution for the case 24 is possible:

-42  22  23   7
 13  11 -32  14
-23  16  15   8
 19   9 -22   1

How one can find a matrix with given condition?

I found the following recreational mathematics problem too hard for me. Can anyone give me hints how to find a solution?

Consider the a 4×4 matrices matrix with integer coefficients. Let its elements be ai,j for 1i,j4. Now form four sets A1,A2,A3,A4. A1, A2, A3, A4. Say that A1 is the set of element elements ai,j. Also, A2 is the set of elements ai,j+ai+1,j+ai,j+1+ai+1,j+2 ai,j+ai+1,j+ai,j+1+ai+1,j+1 i.e. if you think matrix, A2 is like sum the set of sums of elements of 2×2-subsquares of the matrix. Similarly, denote by A3 the set of sums of 3×3-submatrices and A4 the set containing the sum of all elements of the given 4×4-matrix.

Now, I heard a rumor that one can give an example for of 16 integers ai,j such that all integers from 1 to 25 belongs to $A_1\cup A_2\cup A_3\cup belong to $A_1 \cup A_2 \cup A_3 \cup A_4.Howcanonefindsuchanexample?Itiseasytoseethatatleastsomeoftheelementsa_{i,j}mustsatisfy1\leq a_{i,j}\leq 25$ but there is are still too so many element elements that finding such a matrix by brute force seems impossible. I was wondering if genetic algorithm algorithms or simulated annealing works work for such a problem but I don't have enough experience to implement that.

The best I know is that solution for the case getting all integers from 1 to 24 is possible:possible, for instance using the matrix:

-42  22  23   7
 13  11 -32  14
-23  16  15   8
 19   9 -22   1