版本比较
欧拉定理,阶与原根
正文
增加 2 行删除 2 行
37 行未改动38394041424243444546474849505152525354555642 行未改动37 行未改动
### 定义:若$$gcd(a,m)=1$$ $$gcd(a,m)=1$$
则$$a^{\phi(m)}\equiv1\pmod{m}$$
证明略## 扩展欧拉定理### 定义:
$$a^b \equiv\begin{cases} \begin{cases}a^{b \mod{\phi(m)}} \ \ \ \ \ \ \ \ gcd(a,m)=1\\a^b \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ gcd(a,m)\ne1,b<\phi(m)\ \ (mod\ m)\\a^{b\ mod\ \phi(m)+\phi(m)} \ \ \ \ \ \ \ gcd(a,m)\ne1,b\ge\phi(m)\\\end{cases} $$42 行未改动