当前位置:网站首页>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>
边栏推荐
猜你喜欢
随机推荐
新一代服务网关Gateway的实践笔记
【面经】被虐了之后,我翻烂了equals源码,总结如下
MPLS Comprehensive Experiment
动态内存二
详谈RDMA技术原理和三种实现方式
分子个数 数论(欧拉函数 前缀和
关于mnn模型输出的数据杂乱无章问题
Nanoprobes Mono- Sulfo -NHS-Nanogold的使用和应用
米哈游--测试开发提前批
c语言分层理解(c语言指针(上))
【每日一题】899. 有序队列
电子邮件安全或面临新威胁!
2022-08-03: What does the following go code output?A: 2; B: 3; C: 1; D: 0.package main import "fmt" func main() { slice := []i
Shell编程之循环语句(for、while)
corn表达式 具体详解与案例
【详细教程】一文参透MongoDB聚合查询
扩展卡尔曼滤波EKF
C语言实验十五 文件
北京电竞元宇宙论坛活动顺利召开
利用matlab求解线性优化问题【基于matlab的动力学模型学习笔记_11】









