在MATLAB中找到biginteger的模指数

问题描述

我想在Matlab中为Biginteger计算模幂。

a^b mod n = d

示例:

a=java.math.BigInteger('878');
b=java.math.BigInteger('8097');
c=java.math.BigInteger('961');
d=modPow(a,b,n)

如果给出了nab,如何在Biginteger方程中计算未知的d

a=35367
b=453467
a^b mod n =16

modPow(a,n)=16
n=?

例如,如果方程的答案等于16,而我们想找到n的值,那么我们该如何写模方程来求解{{1 }}在Matlab中,即使是更大的数字? 可以定义找到nn1000000为止的数字。

谢谢。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...