当前位置:网站首页>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>
边栏推荐
猜你喜欢
随机推荐
Node.js的基本使用(三)数据库与身份认证
FPGA按键消抖+蜂鸣器
HNUCM 您好中国
七夕活动浪漫上线,别让网络拖慢和小姐姐的开黑时间
全面讲解 Handler机制原理解析 (小白必看)
View the version number of CUDA, pytorch, etc.
In V8 how arrays (with source code, picture and text easier to understand)
代码重构:面向单元测试
搭建好pytorch环境后,pip和conda指令不能用
Graph-node:创建一个新的subgraph
GeoAO:一种快速的环境光遮蔽方案
利用matlab求解线性优化问题【基于matlab的动力学模型学习笔记_11】
分布式事务框架 seata
BPF 可移植性和 CO-RE(一次编译,到处运行)
Unity intercepts 3D images and the implementation of picture-in-picture PIP
ML18-自然语言处理
手撕Gateway源码,今日撕工作流程、负载均衡源码
小身材有大作用——光模块寿命分析(二)
vscode插件设置——Golang开发环境配置
伦敦银最新均线分析系统怎么操作?









