当前位置:网站首页>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>
边栏推荐
- Shell编程之循环语句(for、while)
- Using matlab to solve the linear optimization problem based on matlab dynamic model of learning notes _11 】 【
- 【详细教程】一文参透MongoDB聚合查询
- 扩展卡尔曼滤波EKF
- The longest substring that cannot have repeating characters in a leetcode/substring
- Graph-node:创建一个新的subgraph
- ros mavros stereo读取rosbag并记录IMU和图片到文件夹
- BGP实验(含MPLS)
- HNUCM 您好中国
- 数据库扩容也可以如此丝滑,MySQL千亿级数据生产环境扩容实战
猜你喜欢
随机推荐
LeetCode 0155. 最小栈
YOLOv7改进之二十二:涨点神器——引入递归门控卷积(gnConv)
通过whl安装第三方包
【杂项】通过Excel为字符串产生条码
初始 List 接口
【杂项】如何将指定字体装入电脑然后能在Office软件里使用该字体?
win10+cuda11.7+pytorch1.12.0安装
The problem of disorganized data output by mnn model
轻量级网络整理及其在Yolov5上的实现
MPLS Comprehensive Experiment
corn表达式 具体详解与案例
全面讲解 Handler机制原理解析 (小白必看)
使用unbound在RHEL7上搭建DNS服务
libnet
ENS域名注册量创历史新高 逆市增长之势?光环之下存在炒作风险
c语言分层理解(c语言操作符)
高斯推断推导
超级完美版布局有快捷键,有背景置换(解决opencv 中文路径问题)
求解同余方程 数论 扩展欧几里得
Jmeter-参数化