逻辑函数Mod5问题
我正在寻找解决方案:
A= {0,1,2,3,4};
F(x) = 3x - 1 (mod5)
你能帮我求逆矩阵吗?我正在努力解决这个问题,因为它似乎不是一对一的。
感谢您的帮助。
I am looking for a solution:
A= {0,1,2,3,4};
F(x) = 3x - 1 (mod5)
Could you help me to find the inverse. I am struggling with this as it seems to be not to be onto or 1to1.
Thank you for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
x = 2y + 2
,其中y = F(x)
-> 3x - 1 = 3(2y+2) - 1 = 6y + 5 = y (mod 5)
编辑:如果您希望针对主值列表 mod 5 [0,1 ,2,3,4],只需对其中每一个求 2y+2,得到的就是 [2,4,1,3,0]。如果你重新插入 3x-1,你会得到预期的 [0,1,2,3,4]。
x = 2y + 2
, wherey = F(x)
-> 3x - 1 = 3(2y+2) - 1 = 6y + 5 = y (mod 5)
edit: if you want this to be evaluated for the list of principal values mod 5 [0,1,2,3,4], just evaluate 2y+2 for each of these, and what you get is [2,4,1,3,0]. Which, if you plug back into 3x-1, you get [0,1,2,3,4] as expected.