随笔分类 - 数论
摘要:此题是 2018 年 ICPC Asia Beijing Regional Contest 的 C 题。 题目大意 求斜边长度不超过 ( ) 的勾股数的数量。不计两直角边的顺序,即勾股数 和 视作同一组。 分析 这是一道颇
阅读全文
摘要:For non negative integers and and a prime , the following congruence relation holds: $$\binom{m}{n} \equiv \prod_{i=0}^{k} \binom {m_i}{n_i
阅读全文
摘要:费马测试(Fermat test) Some of the cryptographic algorithms make use of big prime numbers. However, checking if a big number is prime is not so easy. Howev
阅读全文
摘要:Problem 求 中素因子数最多且最小的数 , 充分大。 Solution 将任意自然数 ( ) 分解 $$ n = p_1^{k_1 } p_2^{k_2} p_3^{k_3} \dots P_m^{k_m} \quad (p_1<p_2<
阅读全文
摘要:"传送门" time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output ZS the Coder has recently found an
阅读全文
摘要:传送门 GCD Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Problem DescriptionGive you a sequence of int
阅读全文