【LGJOI】命运歧途
WeLikeStudying · · 个人记录
I shall be telling this with a sighSomewhere ages and ages hence.Two roads diverged in a wood, and I ——I took the one less traveled by,And that has made all the difference.
题意
- 题目
\text{ID: 11867} 。 - 对于
k\in[1,n] ,问有多少个n 阶排列满足相邻两项之差不为k ,任意模数。
分析
- 先讲模数为质数的做法,通过它理解模数为什么是质数。