Mathematica基础——ChineseRemainder

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

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

Mathematica基础——ChineseRemainder

2、求模9余7,且模7余3的最小正整数:ChineseRemainder[{3, 7}, {7,9}]

Mathematica基础——ChineseRemainder

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

Mathematica基础——ChineseRemainder

4、上面问题还可以用另一种方法来写:ChineseRemainder[{-1,-1,-1}, {9,8,7}]

Mathematica基础——ChineseRemainder

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

Mathematica基础——ChineseRemainder
  • 怎么查批量查询新加坡邮政
  • 利用手机理财软件理财要注意些什么
  • 1克拉钻石价格多少
  • 交流JWSL-3系列经济型温湿度变送器使用说明书
  • 热门搜索
    路由器安装方法 销售月总结怎么写 木耳炒什么好吃 小孩感冒鼻塞怎么办 床怎么摆放风水好 土豆泥的家常做法 皮肤过敏治疗方法 莴笋怎么做好吃 回力轮胎怎么样 实习单位鉴定怎么写