随笔分类 - 数论
摘要:大牛博客:https://blog.csdn.net/AgoniAngel/article/details/52261452 Polya公式(优化过程):
阅读全文
摘要:Beads of N colors are connected together into a circular necklace of N beads (N<=1000000000). Your job is to calculate how many different kinds of the
阅读全文
摘要:There is an equation ax + by + c = 0. Given a,b,c,x1,x2,y1,y2 you must determine, how many integer roots of this equation are satisfy to the following
阅读全文
摘要:In our daily life we often use 233 to express our feelings. Actually, we may say 2333, 23333, or 233333 … in the same meaning. And here is the questio
阅读全文
摘要:欧拉定理表明,若n,a为正整数,且n,a互质,则: 费马小定理: a是不能被质数p整除的正整数,则有a^(p-1) ≡ 1 (mod p) 证明这个定理非常简单,由于p是质数,所以有φ(p) = p-1,代入欧拉定理即可证明。推论:对于任意正整数a,有a^p ≡ a (mod p),因为a能被p整除
阅读全文
浙公网安备 33010602011771号