当前位置:网站首页>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>
边栏推荐
猜你喜欢
随机推荐
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
建木DevOps流程的快速运用
【杂项】如何将指定字体装入电脑然后能在Office软件里使用该字体?
超级完美版布局有快捷键,有背景置换(解决opencv 中文路径问题)
一文搞定 SQL Server 执行计划
2022年8月份DAMA-CDGA/CDGP数据治理认证招生简章
Install third-party packages via whl
Three.js入门详解
初始 List 接口
MPLS综合实验
做项目一定用得到的NLP资源【分类版】
Spinnaker调用Jenkins API 返回403错误
一文参透分布式存储系统Ceph的架构设计、集群搭建(手把手)
搭建好pytorch环境后,pip和conda指令不能用
[Miscellaneous] How to install the specified font into the computer and then use the font in the Office software?
vscode插件设置——Golang开发环境配置
数据库扩容也可以如此丝滑,MySQL千亿级数据生产环境扩容实战
2023年第六届亚太应用数学与统计学国际会议(AMS 2023)
查看CUDA、pytorch等的版本号
After building the pytorch environment, the pip and conda commands cannot be used