-
Puzzle1应该类似于魔方, 不是所有情况都可以复原, 比如说
是不能复原的(应该是, 还没想到方法证明) |
Beta Was this translation helpful? Give feedback.
Answered by
qyl27
Feb 1, 2024
Replies: 2 comments 3 replies
-
是这样,这是阻碍本文继续更新的问题之一,现在在考虑是吃书还是找出一个部分解…… |
Beta Was this translation helpful? Give feedback.
3 replies
-
我又考虑了一下,这个事实上可以转换为一个解线性同余方程组的问题。 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
qyl27
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我又考虑了一下,这个事实上可以转换为一个解线性同余方程组的问题。
把输入作为一个 n * n 维的向量,输入到一个线性变换里面,在模 4 的情况下得到全零的输出。
若该方程组的增广矩阵的秩小于阶数,则无解;否则可求出一个n维向量,将其各个维度上的数值相加,就可以得到答案。
(之所以存在无解的情况,是因为我们的模为 4 ,如果模是质数,则必定有解。)