旅游景点 旅游攻略 日本旅游 文化旅游 旅游景区 昆明旅游 桂林旅游 乡村旅游 上海旅游

Mathematica基础——ChineseRemainder

时间:2024-10-31 04:08:05

1、求模9余7的最小正整数:ChineseRemainder[{7},{9}]答案当然是7。

Mathematica基础——ChineseRemainder

3、求除以 9、8、7 的余数为8、7、6 的最小正整数:ChineseRemainder[{8,7,6}, {9,8,7}]

Mathematica基础——ChineseRemainder

5、一种数据加密的方法:数据= {931074546, 117172357, 482333642, 199386034, 394354985}随机密钥 = Ra荏鱿胫协ndomPrime[{10^9, 10^12}, 5]加密后的数据 = ChineseRemainder[数据,随机密钥]解密=Mod[加密后的数据, 随机密钥]

Mathematica基础——ChineseRemainder
© 途途旅游