Can you find two 3x3 matrices L and R with integer values such that LR=nL+R with n an integer constant?
First, let write our matrices as
L=⎣⎡a1b1c1a2b2c2a3b3c3⎦⎤R=⎣⎡x1x2x3y1y2y3z1z2z3⎦⎤
This means that LR=⎣⎡a1x1+a2x2+a3x3b1x1+b2x2+b3x3c1x1+c2x2+c3x3a1y1+a2y2+a3y3b1y1+b2y2+b3y3c1y1+c2y2+c3y3a1z1+a2z2+a3z3b1z1+b2z2+b3z3c1z1+c2z2+c3z3⎦⎤
And nL+R=⎣⎡a1n+x1b1n+x2c1n+x3a2n+y1b2n+y2c2n+y3a3n+z1b3n+z2c3n+z3⎦⎤
Combining these to expressions with LR=nL+R yields nine equations of a similar form.
α1γ1+α2γ2+α3γ3=nαi+γj
Now, let us define a mathamatical object, that we call a local triple, that has the following properties.
- A 3d vector (α1,α2,α3) of integers
- An index 1,2,3 related to the row/column that the triple is on
- A token, left/right, based on if the triple is in the left or right matrix.
We will note left local triples as (α1,α2,α3,j∣ and right triples as ∣γ1,γ2,γ3,i)
Let us call two triples (α1,α2,α3,j∣ and ∣γ1,γ2,γ3,i)connected if α1γ1+α2γ2+α3γ3=nαi+γj
Note that the index of a local triple indexes the vector of the other local triple, not the own vector.
Now that this is done, we can check for each left local triple all possible right local triples, and store them in a set.
Then we can check for each set of 3 left local triples, with each a different index, if the intersection for the three corresponding sets contains at least one right local triple of each index. If it does, we can use the 6 local triples with corresponding indexes to build our original matrices back.
The rust code that performs this for single digit non zero integers for n=10 can be found here: https://gitlab.com/Elmosfire/vampire-matrices/-/blob/master/main.rs