
数论
文章平均质量分 74
synapse7
这个作者很懒,什么都没留下…
展开
-
关于费马小定理的一个奇妙的组合证明
费马小定理:已知:p是素数,a是整数且1≤ a ≤ p求证:a p − a 能被p整除以下是关于费马小定理最浅显易懂的,也是最奇妙的一个证明,叫做Proof by counting bracelets,创始人是Golomb。证明:假设又一种由p个珠子组成的项链,项链中珠子的种数为最多为a,那么所有可能的不重复的排列为a p,其中珠子种数为1的情况有a种,那么翻译 2013-08-07 11:32:17 · 2733 阅读 · 0 评论 -
HDU 2099 整除的尾数(模运算)
整除的尾数http://acm.hdu.edu.cn/showproblem.php?pid=2099Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Problem Description一个整数,只知道前几位,不知道末二位,被另一个整数原创 2013-08-10 21:14:23 · 1046 阅读 · 0 评论 -
Codeforces Round #136 (Div. 2) / 221B Little Elephant and Numbers (数论)
a原创 2013-08-19 13:22:09 · 1067 阅读 · 0 评论 -
HDU 1021/ZOJ 2060 Fibonacci Again(数论&整除推导&位运算技巧)
Fibonacci Againhttp://acm.hdu.edu.cn/showproblem.php?pid=1021http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=2060Time Limit: 2000/1000 MS (Java/Others) Memory Limit原创 2013-08-10 22:07:39 · 1065 阅读 · 0 评论 -
NEFU 115 斐波那契的整除(数论&整除推导)
斐波那契的整除Time Limit 1000msMemory Limit 65536Kdescription已知斐波那契数列有如下递归定义,f(1)=1,f(2)=1, 且n>=3,f(n)=f(n-1)+f(n-2),它的前几项可以表示为1, 1,2 ,3 ,5 ,8,13,21,34…,现在的问题是想知道f(n)的值是否能被3和4整除,你知道原创 2013-08-10 21:50:32 · 1751 阅读 · 1 评论 -
NEFU 84 五指山(扩展欧几里得)
http://acm.nefu.edu.cn/test/problemshow.php?problem_id=84Time Limit 1000msMemory Limit 65536Kdescription西游记中孙吾空大闹天宫,如来佛祖前来降伏他,说道:“我与你打个赌赛;你若有本事,一筋斗打出我这右手掌中,算你赢,再不用动刀兵苦争战,就请原创 2013-08-12 14:15:19 · 1025 阅读 · 0 评论 -
POJ 1061 青蛙的约会( 扩展欧几里得)
青蛙的约会http://poj.org/problem?id=1061Time Limit: 1000MSMemory Limit: 10000KDescription两只青蛙在网上相识了,它们聊得很开心,于是觉得很有必要见一面。它们很高兴地发现它们住在同一条纬度线上,于是它们约定各自朝西跳,直到碰面为止。可是它们出发之前忘记了一件很重要的事情,既没有问清楚原创 2013-08-12 14:15:10 · 976 阅读 · 0 评论 -
NEFU 117 素数个数的位数(数论)
http://acm.nefu.edu.cn/test/problemshow.php?problem_id=117Time Limit 1000msMemory Limit 65536Kdescription小明是一个聪明的孩子,对数论有着很浓烈的兴趣。他发现求1到正整数10n 之间有多少个素数是一个很难的问题,该问题的难以决定于n 值原创 2013-08-12 14:15:34 · 1116 阅读 · 0 评论 -
NEFU 118 n!后面有多少个0(数论)
n!后面有多少个0http://acm.nefu.edu.cn/test/problemshow.php?problem_id=118Time Limit 1000msMemory Limit 65536Kdescription从输入中读取一个数n,求出n!中末尾0的个数。 input原创 2013-08-12 14:16:18 · 1237 阅读 · 0 评论 -
Codeforces Beta Round #91 (Div. 2) / 122A Lucky Division (数论)
A. Lucky Divisionhttp://codeforces.com/problemset/problem/122/Atime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outpu原创 2013-08-23 17:39:40 · 1030 阅读 · 0 评论 -
NEFU 2 猜想(数论&筛法)
猜想http://acm.nefu.edu.cn/test/problemshow.php?problem_id=2Time Limit 3000msMemory Limit 65536Kdescription哥德巴赫(Goldbach ]C.,1690.3.18~1764.11.20)是德国数学家;出生于格奥尼格斯别原创 2013-08-12 14:27:44 · 990 阅读 · 0 评论 -
POJ 2115 C Looooops(扩展欧几里得)
C Looooopshttp://poj.org/problem?id=2115Time Limit: 1000MSMemory Limit: 65536KDescriptionA Compiler Mystery: We are given a C-language style for loop of type for (variabl原创 2013-08-12 21:10:17 · 904 阅读 · 0 评论 -
NEFU 119 组合素数(数论)
组合素数http://acm.nefu.edu.cn/test/problemshow.php?problem_id=119Time Limit 1000msMemory Limit 65536Kdescription小明的爸爸从外面旅游回来给她带来了一个礼物,小明高兴地跑回自己的房间,拆开一看是一个很大棋盘(非常大),小明有所失原创 2013-08-12 14:14:37 · 1047 阅读 · 0 评论 -
POJ 2992 Divisors(质因数计数公式)
Divisorshttp://poj.org/problem?id=2992Time Limit: 1000MSMemory Limit: 65536KDescriptionYour task in this problem is to determine the number of divisors of Cnk. Just for fun原创 2013-08-13 11:40:50 · 1304 阅读 · 0 评论 -
Codeforces Round #196 (Div. 2) / 337B Routine Problem(数学)
B. Routine Problemhttp://codeforces.com/contest/337/problem/Btime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output原创 2013-08-17 10:25:46 · 1345 阅读 · 0 评论 -
Codeforces Round #152 (Div. 2) / 248B Chilly Willy (数论)
B. Chilly Willyhttp://codeforces.com/problemset/problem/248/Btime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output原创 2013-08-30 09:19:50 · 1529 阅读 · 0 评论 -
UVa 10006 Carmichael Numbers(数论&卡米歇尔数&考塞特判别法)
10006 - Carmichael NumbersTime limit: 3.000 secondshttp://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=115&page=show_problem&problem=947An important topic nowadays in原创 2013-08-07 23:06:51 · 2754 阅读 · 2 评论 -
IIUC ONLINE CONTEST 2008 / UVa 11388 GCD LCM (数论)
11388 - GCD LCMTime limit: 1.000 secondshttp://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=467&page=show_problem&problem=2383The GCD of two positive intege原创 2013-09-06 21:54:00 · 947 阅读 · 0 评论 -
UVa 11889 Benefit (数论)
11889 - BenefitTime limit: 5.000 secondshttp://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=467&page=show_problem&problem=2989Recently Yaghoub is playing a new trick原创 2013-09-08 12:42:21 · 1374 阅读 · 0 评论 -
UVa 10780 Again Prime? No Time. (数论&素因子分解)
10780 - Again Prime? No Time.Time limit: 3.000 secondshttp://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=467&page=show_problem&problem=1721The problem statement is原创 2013-09-08 13:27:47 · 1244 阅读 · 0 评论 -
UVa 11752 The Super Powers (数学)
11752 - The Super PowersTime limit: 1.000 secondshttp://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=467&page=show_problem&problem=2852We all know the Super Powers原创 2013-09-08 23:51:12 · 2522 阅读 · 0 评论 -
Codeforces Round #105 (Div. 2) / 148A Insomnia cure (枚举 || 数论)
A. Insomnia curehttp://codeforces.com/problemset/problem/148/Atime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output原创 2013-08-24 09:53:59 · 2354 阅读 · 0 评论 -
UVa 10791 Minimum Sum LCM (数论&素因子分解)
10791 - Minimum Sum LCMTime limit: 3.000 secondshttp://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=467&page=show_problem&problem=1732LCM (Least Common Multiple) of原创 2013-09-12 06:33:29 · 1828 阅读 · 0 评论 -
UVa 136 Ugly Numbers (数论)
136 - Ugly NumbersTime limit: 3.000 secondshttp://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=72Ugly numbers are numbers whose only pr原创 2013-09-13 23:51:30 · 1620 阅读 · 0 评论 -
UVa 694 The Collatz Sequence (数论)
694 - The Collatz SequenceTime limit: 3.000 secondshttp://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=94&page=show_problem&problem=635An algorithm given by Lothar原创 2013-09-14 00:54:43 · 1060 阅读 · 0 评论 -
UVa 568 Just the Facts (数论&打表&不打表)
568 - Just the FactsTime limit: 3.000 secondshttp://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=100&page=show_problem&problem=509The expression N!, read as ``N fac原创 2013-10-01 10:07:45 · 1545 阅读 · 1 评论 -
UVa 10110 Light, more light (数论)
10110 - Light, more lightTime limit: 3.000 secondshttp://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=100&page=show_problem&problem=1051The ProblemThere is man na原创 2013-09-30 19:44:22 · 1386 阅读 · 0 评论 -
UVa 408 Uniform Generator (最大公约数&证明)
408 - Uniform GeneratorTime limit: 3.000 secondshttp://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=100&page=show_problem&problem=349Computer simulations often requ原创 2013-10-01 00:11:28 · 1251 阅读 · 0 评论 -
UVa 160 Factors and Factorials (数论)
160 - Factors and FactorialsTime limit: 3.000 secondshttp://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=96题目点这:http://uva.onlinejudge.org/external/1原创 2013-09-28 15:19:26 · 2241 阅读 · 0 评论 -
UVa 10879 Code Refactoring (因数分解)
10879 - Code RefactoringTime limit: 3.000 secondshttp://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=100&page=show_problem&problem=1820"Harry, my dream is a原创 2013-10-01 15:09:23 · 1111 阅读 · 0 评论 -
UVa 10229 Modular Fibonacci (矩阵快速幂求斐波那契)
10229 - Modular FibonacciTime limit: 3.000 secondshttp://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=115&page=show_problem&problem=1170The Fibonacci numbers (0, 1,原创 2013-10-02 17:55:48 · 1547 阅读 · 0 评论 -
POJ 3070 Fibonacci(矩阵快速幂)
Fibonaccihttp://poj.org/problem?id=3070Time Limit: 1000MSMemory Limit: 65536KDescriptionIn the Fibonacci integer sequence, F0 = 0, F1 = 1, and Fn = Fn − 1 + Fn − 2 for n原创 2013-08-12 21:47:57 · 815 阅读 · 0 评论 -
UVa 10127/POJ 2551 Ones (模运算&转换思想)
10127 - OnesTime limit: 3.000 secondshttp://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=13&page=show_problem&problem=1068Given any integer 0 Sample input3 7 99原创 2013-08-09 20:31:36 · 1074 阅读 · 0 评论 -
UVa 10140 / POJ 2689 Prime Distance (素数距离&筛两遍)
Prime Distancehttp://poj.org/problem?id=2689Time Limit: 1000MSTime Limit: 1000MSDescriptionThe branch of mathematics called number theory is about properties of numbers. On原创 2013-08-12 14:16:01 · 1197 阅读 · 0 评论 -
UVa 543 Goldbach's Conjecture (素数&哥德巴赫猜想)
543 - Goldbach's ConjectureTime limit: 3.000 secondshttp://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=484In 1742, Christian Goldbach,原创 2013-10-05 01:30:14 · 1842 阅读 · 0 评论 -
UVa 374 Big Mod (快速幂取模)
374 - Big ModTime limit: 3.000 secondshttp://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=310Calculatefor large values of B, P,原创 2013-10-05 09:55:18 · 1724 阅读 · 0 评论 -
UVa 686 Goldbach's Conjecture (II) (哥德巴赫猜想)
686 - Goldbach's Conjecture (II)Time limit: 3.000 secondshttp://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=627Goldbach's Conjecture:原创 2013-10-05 11:55:06 · 1290 阅读 · 0 评论 -
UVa 10394 Twin Primes (孪生素数)
10394 - Twin PrimesTime limit: 3.000 secondshttp://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=1335Twin primes are pairs of primes of原创 2013-10-05 10:48:23 · 1895 阅读 · 1 评论 -
UVa 11827 Maximum GCD (gcd&读入技巧)
11827 - Maximum GCDTime limit: 1.000 secondshttp://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=2927Given the N integers, you have to f原创 2013-10-05 14:08:45 · 3289 阅读 · 0 评论 -
UVa 10929 You can say 11 (数论)
10929 - You can say 11Time limit: 3.000 secondshttp://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=1870Introduction to the problemYou原创 2013-09-21 09:33:59 · 1922 阅读 · 0 评论