当前位置:网站首页>Modulo operation (MOD)
Modulo operation (MOD)
2022-08-04 00:21:00 【super azhen】
Table of Contents
First, the basic operation law
I. Basic operation laws
2. Elimination Law
Theorem (elimination law): If gcd(c,p) = 1 , then ac ≡ bc mod p leads to a ≡ (b mod p)
3. EulerFunction
The Euler function is a very important function in number theory. The Euler function refers to: for a positive integer n, the number of positive integers less than n and relatively prime to n is denoted as: φ(n), whereφ(1) is defined as 1, but does not have any substantial meaning.
Define the set of numbers less than n and relatively prime to n as Zn, and call this set the complete remainder set of n.
Obviously, for a prime number p, φ(p) = p -1. For two prime numbers p, q, their product n = pq satisfies φ(n) =(p-1)(q-1)
Prove: For prime numbers p, q, satisfy φ(n) =(p-1)(q-1)
Consider the complete remainder set Zn = { 1,2,....,pq -1} of n, and the set that is not coprime to n consists of the union of the following three sets:
1) The set {p,2p,3p,....,(q-1)p} that is divisible by p is q-1 in total
2) The set {q,2q,3q,....,(p-1)q} that is divisible by q has a total of p-1
3) Obviously, there are no common elements in sets 1 and 2, so the number of elements in Zn = pq - (p-1 + q- 1 + 1) = (p-1)(q-1)
Four. Euler's Theorem
V. Reference
https://zh.m.wikipedia.org/zh-hans/%E6%A8%A1%E9%99%A4a>
边栏推荐
猜你喜欢
win10+cuda11.7+pytorch1.12.0安装
POE交换机全方位解读(上)
SQL优化的一些建议,希望可以帮到和我一样被SQL折磨的你
Talking about the future development direction of my country's industrial parks
Justin Sun was invited to attend the 36氪 Yuan Universe Summit and delivered a keynote speech
带你造轮子,自定义一个随意拖拽可吸边的悬浮View组件
【面经】被虐了之后,我翻烂了equals源码,总结如下
利用matlab求解线性优化问题【基于matlab的动力学模型学习笔记_11】
[Miscellaneous] How to install the specified font into the computer and then use the font in the Office software?
Install third-party packages via whl
随机推荐
易动纷享--测试实习生视频面试
求解同余方程 数论 扩展欧几里得
超级完美版布局有快捷键,有背景置换
libnet
"Miscellaneous" barcode by Excel as a string
RSS订阅微信公众号初探-feed43
【超详细教程】LVS+KeepAlived高可用部署实战应用
电子邮件安全或面临新威胁!
Jmeter-断言
2023年航空航天、机械与机电工程国际会议(CAMME 2023)
带你造轮子,自定义一个随意拖拽可吸边的悬浮View组件
【每日一题】899. 有序队列
ES6高级-迭代器与生成器的用法
Sqlnet. Ora file with the connection of authentication test
Prometheus监控Harbor(二进制版)
教你如何定位不合理的SQL?并优化之
rsync basic usage
C# wpf使用ffmpeg命令行实现录屏
Using matlab to solve the linear optimization problem based on matlab dynamic model of learning notes _11 】 【
ping数据包中的进程号