🗺️ 知识地图
AMC 8 知识体系 数与运算 🔢 整除与余数 余数与模运算 2 / 3

🔢 余数与模运算

Remainders and Modular Arithmetic

余数的性质和运算法则是 AMC 8 的高频考点,特别是利用周期性求大数乘方的余数,是每年必考的经典题型。

📖 3 章节 💡 3 道例题 🎯 难度:中等 ⏱ 约15分钟
1
余数的基本性质 Basic Properties of Remainders
基础 必考

当一个整数 a 不能被正整数 b 整除时,做除法后得到的"余数" r 满足:

When integer a is not divisible by positive integer b, the remainder r satisfies:

📝 带余除法 / Division Algorithm
a = b × q + r
其中 q 是商(quotient),r 是余数(remainder),且 0 ≤ r < b
where q is the quotient and 0 ≤ r < b

关键结论:

  • 余数一定小于除数:r < b The remainder is always less than the divisor
  • 余数可以为零(此时就是整除)Remainder can be zero (meaning divisible)
  • 任何整数除以 b 的余数只有 b 种可能:0, 1, 2, ..., b−1 There are exactly b possible remainders

举例:

  • 17 ÷ 5 = 3 余 2 → 17 = 5 × 3 + 2
  • 23 ÷ 7 = 3 余 2 → 23 = 7 × 3 + 2
  • 100 ÷ 3 = 33 余 1 → 100 = 3 × 33 + 1
💡 邓老师提示:余数问题在 AMC 8 中最常见的考法是"中国剩余定理"型——即给出多个除数的余数条件,求满足条件的最小正整数。方法是从小到大枚举检验。
📌 例题 1 余数性质

一个数除以 7 余 3,除以 5 余 2。这个数最小是多少? A number leaves a remainder of 3 when divided by 7, and a remainder of 2 when divided by 5. What is the smallest such number?

解题思路
满足"除以7余3"的数有:3, 10, 17, 24, 31...
从中找"除以5余2"的:
3 ÷ 5 = 0 余 3 ✗
10 ÷ 5 = 2 余 0 ✗
17 ÷ 5 = 3 余 2 ✓
所以最小的数是 17。 Numbers ≡ 3 (mod 7): 3, 10, 17, 24... Check each mod 5: 17 ÷ 5 = 3 remainder 2 ✓. Answer: 17.
2
余数的运算规则 Rules for Remainder Arithmetic
中等 高频

余数有以下重要的运算性质,先分别取余,再运算,再取余

Remainders have the following arithmetic properties: reduce first, then operate, then take remainder.

运算规则说明
加法(a+b) mod n = [(a mod n) + (b mod n)] mod n先分别取余,再加,再取余
减法(a−b) mod n = [(a mod n) − (b mod n)] mod n先分别取余,再减,再取余
乘法(a×b) mod n = [(a mod n) × (b mod n)] mod n先分别取余,再乘,再取余
乘方ap mod n = (a mod n)p mod n底数先取余,再乘方,再取余
💡 邓老师提示:乘方的余数规则非常实用!比如求 7100 除以5的余数,只需先算 7 mod 5 = 2,然后只需求 2100 mod 5。这在 AMC 中是常见技巧。 The power rule for remainders is very useful! E.g., to find 7100 mod 5, first note 7 mod 5 = 2, then compute 2100 mod 5.
📌 例题 2 余数运算

一个正整数 N 除以 3 余 2,除以 4 余 1,除以 5 余 3。满足条件的最小正整数 N 是多少? A positive integer N leaves remainders of 2, 1, and 3 when divided by 3, 4, and 5 respectively. What is the smallest such N?

解题思路:逐个条件枚举
满足"除以5余3"的数有:3, 8, 13, 18, 23, 28, 33, 38, 43, 48, 53...
从中找同时满足另外两个条件的:
检验 53:
53 ÷ 3 = 17 余 2
53 ÷ 4 = 13 余 1
53 ÷ 5 = 10 余 3
三个条件全部满足!答案为 53Numbers ≡ 3 (mod 5): 3, 8, 13,..., 53. Check 53: 53÷3=17r2✓, 53÷4=13r1✓, 53÷5=10r3✓. Answer: 53.
3
模运算与周期性 Modular Arithmetic and Periodicity
中等 高频

"a mod n" 表示 a 除以 n 的余数。模运算在 AMC 中最常见的应用是寻找周期规律

"a mod n" denotes the remainder when a is divided by n. The most common application in AMC is finding periodic patterns.

例:观察 2 的乘方除以 7 的余数规律

Example: Observe the pattern of remainders of powers of 2 when divided by 7

n1234567...
2n mod 72412412...

余数呈现 2, 4, 1周期循环,周期为 3。利用周期性,我们可以快速计算很大的乘方除以某数的余数。

The remainders follow a repeating pattern 2, 4, 1 with period 3. Using periodicity, we can quickly find remainders of very large powers.

📝 求乘方余数的步骤 / Steps to Find Remainder of Large Powers
① 先求底数的余数(缩小底数)
② 列出前几项余数,找到周期
③ 用指数除以周期得到余数,确定答案
① Reduce the base modulo n
② List the first few remainders to find the period
③ Divide the exponent by the period to locate the answer
💡 邓老师提示:周期性问题在 AMC 8 中几乎每年考一道。关键是"列表找周期"——列出前 6~8 项余数,周期通常不超过 6。找到周期后,用指数除以周期取余即可。
📌 例题 3 周期性·高频考点

22024 除以 7 的余数是多少? What is the remainder when 22024 is divided by 7?

解题思路:寻找余数周期
列出 2n mod 7 的前几项:
2¹ mod 7 = 2,2² mod 7 = 4,2³ mod 7 = 1
2⁴ mod 7 = 2,2⁵ mod 7 = 4,2⁶ mod 7 = 1
余数呈 2, 4, 1 的周期,周期 = 3
用 2024 ÷ 3 = 674 余 2。
余数为 2 对应周期中的第 2 项,即 4Powers of 2 mod 7: 2, 4, 1 (period 3). Since 2024 ÷ 3 = 674 remainder 2, the answer is the 2nd value = 4.