当前位置:网站首页>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>
边栏推荐
猜你喜欢
随机推荐
越来越火的图数据库到底能做什么?
小米--测试开发
BGP实验(含MPLS)
Spinnaker调用Jenkins API 返回403错误
通过whl安装第三方包
LYVE1抗体丨Relia Tech LYVE1抗体解决方案
卡尔曼滤波器KF
电子邮件安全或面临新威胁!
分布式事务框架 seata
JS get parameter value of URL hyperlink
数据库扩容也可以如此丝滑,MySQL千亿级数据生产环境扩容实战
FastDFS 一文读懂
【MySQL —— 索引】
手撕Gateway源码,今日撕工作流程、负载均衡源码
View the version number of CUDA, pytorch, etc.
It will invest about 200 billion US dollars in the United States in 20 years, and Samsung Electronics looks so handsome
- the skip/skipif Pytest learning
米哈游--测试开发提前批
C语言 函数递归
身为程序员的我们如何卷死别人?破局重生。









