正文
增加 2 行删除 2 行
76 行未改动77787980818283842 行未改动87888990919293949596201 行未改动全部展开76 行未改动int x, y;exgcd(a, m, x, y);return (x + m) % m;}:::---2 行未改动#### 证明一:将 $a,\ 2\times a,\ 3\times a,\ \dots,\ (p-1)\times a$ 放入序列 $A$ 中$.$ 序列 $A$ 在模 $p$ 的意义下一定是 $\{1,\ 2,\ 3,\ \dots,\ p-1\}$ 的一个排列(顺序不确定,但不重不漏)$.$ 证明如下:假设存在 $i,\ j(i,\ j\in[1,\ p-1]\ \land\ i\ <\ j)$ ,使得 $i\times a \equiv j\times a \pmod{p}$$$\therefore p\ |\ (j-i)\cdot a\\\because p\ \nmid\ a,\ p\ \mathtt{是素数}\\\therefore p\ |\ (j-i)201 行未改动全部展开76 行未改动7778798081828384852 行未改动888990919293949596201 行未改动全部展开76 行未改动int x, y;exgcd(a, m, x, y);return (x + m) % m;}```:::---2 行未改动#### 证明一:将 $a,\ 2\times a,\ 3\times a,\ \dots,\ (p-1)\times a$ 放入序列 $A$ 中$.$ 序列 $A$ 在模 $p$ 的意义下一定是 $\{1,\ 2,\ 3,\ \dots,\ p-1\}$ 的一个排列(顺序不确定,但不重不漏)$.$ 证明如下:假设存在 $i,\ j(i,\ j\in[1,\ p-1]\ \land\ i\ <\ j)$ ,使得 $i\times a \equiv j\times a \pmod{p}$$$\therefore p\ |\ (j-i)\cdot a\\\because p\ \nmid\ a,\ p\ \mathtt{是素数}\\\therefore p\ |\ (j-i)201 行未改动全部展开