当前位置:网站首页>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>
边栏推荐
猜你喜欢
随机推荐
FPGA按键消抖+蜂鸣器
Go编译原理系列7(Go源码调试)
ros mavros stereo读取rosbag并记录IMU和图片到文件夹
The longest substring that cannot have repeating characters in a leetcode/substring
iframe通信
c语言分层理解(c语言操作符)
小米--测试开发
Why Flutter Flutter of tutorials is the best choice for business?
2021年数据泄露成本报告解读
Unity intercepts 3D images and the implementation of picture-in-picture PIP
机器学习——库
TypeScript学习
迭代扩展卡尔曼滤波IEKF
Jar a key generation document database
使用unbound在RHEL7上搭建DNS服务
【性能优化】MySQL常用慢查询分析工具
[Miscellaneous] How to install the specified font into the computer and then use the font in the Office software?
2022年8月份DAMA-CDGA/CDGP数据治理认证招生简章
易动纷享--测试实习生视频面试
因为一次bug的教训,我决定手撕Nacos源码(先撕客户端源码)