Euler_Phi and Its Applications

版本 1.0.0.0 (16.1 KB) 作者: Sundar Krishnan
Euler_Phi, the LCM method and the Squaring method
1.4K 次下载
更新时间 2005/6/7

无许可证

Euler_Phi.zip is a suite of the foll Programmes :

1) Euler_Phi (n) returns the no of positive integers less than n which are prime to n.

2) a_k_mod_m_LCM_Method (a, m, k) : Imagine computing mod(14^26, 45) or mod(56^3005, 1125).
This programme computes a_k_mod_m = mod (a^k, m) when a and m are coprime, using certain rules for the reduction of computations based on Euler_Phi.

3) b_n_mod_m_Rpt_Sq_Method (b, n, m) : Imagine computing mod(38^75, 103) or mod(38^75, 103). This programme computes b_n_mod_m = mod (b^n, m).
The diff between this pgm and a_k_mod_m_LCM_Method.m is that in a_k_mod_m_LCM_Method,
the inputs a and m are coprime ; here, in b_n_mod_m_Rpt_Sq_Method.m, it is not necessary that b and m need be coprime.

4) Verify_Euler_Phi(n) : This is a small programme to prove that n = sum of Euler_Phi taken over all divisors d of n.

Refer to Euler_Phi function in P15, P22, P23, Prob 21 & Prob 23 / (P26 + P205) in the book : A course in Number Theory and Cryptography by Neal Koblitz.
...

引用格式

Sundar Krishnan (2024). Euler_Phi and Its Applications (https://www.mathworks.com/matlabcentral/fileexchange/5887-euler_phi-and-its-applications), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R14
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Sequence and Numeric Feature Data Workflows 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0

I have added some more comments and explained Prob 21b of NK book in more detail.