请输入您要查询的字词:

 

单词 ComputationOfPowersUsingFermatsLittleTheorem
释义

computation of powers using Fermat’s little theorem


A straightforward application of Fermat’s theorem consists of rewriting the power of an integer mod n. Suppose we have xab(modn) with a𝒰(n). Then, by Fermat’s theorem we have

aϕ(n)1(modn),

so

xab(1)kab(aϕ(n))kab+kϕ(n)(modn)

for any integer k. This means we can replace b by any integer congruentMathworldPlanetmath to it mod ϕ(n). In particular we have

xab%ϕ(n)(modn)

where b%ϕ(n) denotes the remainder of b upon division by ϕ(n).

This can be used to make the computation of large powers easier. It also allows one to find an easy to compute inverse to xb(modn) whenever b𝒰(n). In fact, this is just xb-1 where b-1 is an inverse to b mod ϕ(n). This forms the base of the RSA cryptosystem where a message x is encrypted by raising it to the bth power, giving xb, and is decrypted by raising it to the b-1th power, giving

(xb)b-1xbb-1,

which, by the above argument, is just

xbb-1%ϕ(n)x,

the original message!

随便看

 

数学辞典收录了18232条数学词条,基本涵盖了常用数学知识及数学英语单词词组的翻译及用法,是数学学习的有利工具。

 

Copyright © 2000-2023 Newdu.com.com All Rights Reserved
更新时间:2025/5/4 12:05:53