Can the following problem be solved by Sage:

Prove that there is a matrix with 117 elements containing the digits such 
that one can read the squares of the numbers 1, 2, ..., 100.

Here read means that you fix the starting position and direction (8 
possibilities) and then go in that direction, concatenating the numbers. 
For example, if you can find for example the digits 1,0,0,0,0,4 
consecutively, you have found the integer 100004, which contains the square 
numbers of 1, 2, 10, 100 and 20, since you can read off 1, 4, 100, 10000, 
and 400 (reversed) from that sequence.

But there are so many numbers to be found (100 square numbers, to be 
precise, or 81 if you remove those that are contained in another square 
number with total 312 digits) and so few integers in a matrix that you have 
to put all those square numbers so densely that finding such a matrix is 
difficult, at least for me.

I found that if there is such a matrix mxn, we may assume without loss of 
generalty that m<=n. Therefore, the matrix must be of the type 1x117, 3x39 
or 9x13. But what kind of algorithm will find the matrix?

I have managed to do the program that checks if numbers to be added can be 
put on the board. But how can I implemented the searching algorithm?


Source, 
https://stackoverflow.com/questions/44983929/proving-that-a-particular-matrix-exists?noredirect=1&lq=1

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to