Is there an algorithm known for power towers modulo a number managing all cases?

﹥>﹥吖頭↗ 提交于 2019-12-21 21:18:11

问题


I would like to have an implementation in PARI/GP for the calculation of

a_1 ^ a_2 ^ ... ^ a_n (mod m)

which manages all cases, especially the cases where high powers appear in the phi-chain.

Does anyone know such an implementation ?

来源:https://stackoverflow.com/questions/21305782/is-there-an-algorithm-known-for-power-towers-modulo-a-number-managing-all-cases

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!