版本比较
算术基本定理
正文
增加 76 行删除 2 行
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677785679808182## 前言这是我和[盟友](https://www.luogu.com.cn/user/1633534)两位五年级蒟蒻合作的数论合集第七篇文章,大佬们不喜勿喷,感谢您的收看。# 质合的定义与判断### 定义质数:$p>1,d\mid p,d>0\Leftrightarrow d=1\text{或} p$合数:若一个大于 $1$ 的整数存在除了 $1$ 和本身的其他因数,则这个数为合数。### 性质一若 $p$ 为质数,且 $p\nmid a$,则 $(p,a)=1$。::::success[证明]{open}$$\because (p,a)\mid p$$$$\therefore (p,a)=1\text{或}p$$$$\because p\nmid a$$$$\therefore (p,a)\ne p$$$$\therefore (p,a)=1$$::::### 性质二若 $p$ 为质数,且 $p\mid ab$,则 $p\mid a$ 或 $p\mid b$。::::success[证明]{open}$$\because p\mid ab$$$$\therefore (p,ab)=p$$若 $p\mid a$,则命题成立。若 $p\nmid a$$$\therefore (p,a)=1$$$$\therefore (p,ab)=(p,b)=p$$$$\therefore p\mid b$$::::### 例题一::::info[题目]{open}若 $n>1$ 且 $n\mid(n-1)!+1$,求证:$n$ 为质数。::::证明质数有两种方法:取它的因数,证明因数只能是 $1$ 或本身;设它是合数,取因数,证矛盾。::::success[完整解答]{open}F1:设 $1\le d\mid n$,则 $d\le n$$$\therefore d\mid(n-1)!+1$$若 $d<n$,则 $d\le n-1$$$\therefore d\mid(n-1)!$$$$\therefore d\mid1$$$$\therefore d=1$$$$\therefore d=1\text{或}n$$$$\therefore n\text{为质数}$$
---F2:::::## 后记**原创不易,点个赞再走吧~~** **求管理员通过qwq** **原创不易,点个赞再走吧~~****求管理员通过qwq**
[更多精彩,关注我们的合集](https://www.luogu.me/article/4y3zfcw5)