Mar 10, 2026 1 min read en algorithm / review Algorithm Miscellany - Mathematics Algorithm Miscellany series: mathematics-related algorithms. Views: Algorithm Miscellany (8 posts) 1 Algorithm Miscellany - Basics 2 Algorithm Miscellany - Dynamic Programming 3 Algorithm Miscellany - String 4 Algorithm Miscellany - Mathematics 5 Algorithm Miscellany - Data Structures 6 Algorithm Miscellany - Graph Theory 7 Algorithm Miscellany - Computational Geometry 8 Algorithm Miscellany - Miscellaneous 最近为了准备保研的机试,开始看OI-WIKI并且刷题,这个博客主要用来记录我还不熟悉,或者冷门的一些算法和trick技巧 数论# 数论基础# 整除# 定义:设a,b∈Za,b\in Za,b∈Z,a≠0a\neq 0a=0,如果∃q∈Z\exist q \in Z∃q∈Z,使得b=aqb = aqb=aq,那么就说bbb可被aaa整除,记作a∣ba|ba∣b,bbb不被aaa整除记作a∤ba\not{|} ba∣b 约数# 带余数除法# 多项式和生成函数# 基本概念# 对于求和式∑anxn\sum a_nx^n∑anxn,如果是有限项相加,称为多项式,记作f(x)=∑n=0manxnf(x) = \sum_{n = 0}^{m}a_nx^nf(x)=∑n=0manxn 可列项相加的求和式称为级数。在和