考点数论
余数与同余
考什么 · What it tests
只关心「除完剩几」。把大数换成它的余数来算,求个位数、求星期几、韩信点兵,本质都是「同余」——同余下加减乘照样成立。
Only "what's left over" matters. Replace big numbers by their remainders — finding a units digit, a day of the week, or the classic remainder puzzle are all congruences, where add, subtract, and multiply still work.
需要先会 · Prerequisites
- 带余除法(被除数 = 除数 × 商 + 余数) / Division with remainder (dividend = divisor × quotient + remainder)
- 整除与因数 / Divisibility and factors
- 数列的周期性 / Periodicity of sequences
常见套路 · Common moves
- 先取余再运算:算大数的和/积除以 的余数,先把每个数换成余数再算,数立刻变小——同余题的通用第一招。Reduce first, then compute: to find a big sum or product's remainder mod , replace each number by its remainder before computing — the numbers shrink at once, the universal first move.
- 求个位数 = 模 10 找周期:如 的个位按 $3,9,7,1$ 循环,周期 4,看指数除以 4 的余数定位。A units digit is a period mod 10: e.g. cycles $3,9,7,1$ with period 4, so the exponent's remainder mod 4 pins it down.
- 「除以几余几」凑同一个数:多个「除 余 」的条件,若余数补齐后一致(如都差 1),加上那个差就整除,问题立刻简化。Align mismatched remainders: with several "divide by , remainder " conditions, if they line up after a shift (all short by 1), adding that shift makes everything divisible and the problem collapses.
易错点 · Common pitfalls
- 余数取成负数或超过除数:余数必须在 0 到「除数减 1」之间,$-1$ 除以 5 的余数是 4 不是 $-1$。Taking a remainder negative or too big: it must lie between 0 and one less than the divisor, so $-1$ mod 5 is 4, not $-1$.
- 模幂时直接把指数对 取余:应是底数按周期循环,不是把指数对 取余——先找个位周期再定位。Reducing the exponent mod for a power: it's the base that cycles by a period, not the exponent mod — find the cycle first, then locate.
真题
官方真题共 35 道2025 #6★2018 #7★★2016 #5★★2014 #8★★2008 #3★★2002 #5★★1994 #6★★1988 #10★★2025 #13★★★2022 #17★★★2020 #19★★★2019 #14★★★2018 #21★★★2014 #21★★★2013 #13★★★2012 #12★★★2012 #15★★★2011 #22★★★2008 #15★★★2007 #18★★★2006 #23★★★2005 #20★★★2004 #19★★★2003 #23★★★2000 #14★★★1999 #24★★★1998 #22★★★1997 #25★★★1996 #15★★★1995 #15★★★1994 #15★★★1992 #15★★★1989 #22★★★1985 #20★★★1998 #24★★★★
变形生成中 · 练习包先用官方真题