🗺️ 知识地图
AIME 知识体系 🔢 数论基础 1 / 3

🔢 数论基础

Number Theory Fundamentals

数论是 AIME 的核心考点之一,涉及整除、同余、质数、因数分解等多个重要概念。掌握这些基础理论,是解决高难度数论问题的关键。

📖 3 章节 💡 4 道例题 🎯 难度:进阶 ⏱ 约25分钟
1
整除与最大公约数 Divisibility and GCD
进阶 高频

在 AIME 中,整除理论的应用比 AMC 更加深入。除了基本的整除定义外,还需要掌握最大公约数(GCD)和最小公倍数(LCM)的性质,以及它们之间的关系。

In AIME, the application of divisibility theory is more advanced than in AMC. Besides the basic definition of divisibility, you need to master the properties of Greatest Common Divisor (GCD) and Least Common Multiple (LCM), as well as their relationship.

📝 数学表达 / Mathematical Notation
gcd(a, b) 表示 a 和 b 的最大公约数
lcm(a, b) 表示 a 和 b 的最小公倍数
gcd(a, b) × lcm(a, b) = a × b

重要性质:

  • 如果 d | a 且 d | b,则 d | (ma + nb),其中 m, n 为整数 If d | a and d | b, then d | (ma + nb) for integers m, n
  • gcd(a, b) = gcd(a, b - a) Euclidean algorithm property
  • 如果 gcd(a, b) = 1,则称 a 和 b 互质 If gcd(a, b) = 1, a and b are called coprime
💡 提示: 在 AIME 中,经常需要利用 gcd 和 lcm 的关系来简化问题。记住公式 gcd(a, b) × lcm(a, b) = a × b,这在很多题目中都很有用。

例题 1 Example 1

📝 AIME 2020 I Problem 3 难度:中等
设正整数 n 满足 n | (n+1)² + (n+2)² + (n+3)² + (n+4)²。求 n 的最大值。 Let n be a positive integer such that n divides (n+1)² + (n+2)² + (n+3)² + (n+4)². Find the maximum value of n.
解答:

展开表达式:

(n+1)² + (n+2)² + (n+3)² + (n+4)²

= n² + 2n + 1 + n² + 4n + 4 + n² + 6n + 9 + n² + 8n + 16

= 4n² + 20n + 30

= 2(2n² + 10n + 15)

因此,n 必须整除 2(2n² + 10n + 15)。

Expanding the expression: (n+1)² + (n+2)² + (n+3)² + (n+4)² = 4n² + 20n + 30 = 2(2n² + 10n + 15). Therefore, n must divide 2(2n² + 10n + 15).

由于 n 和 2n² + 10n + 15 互质(可以验证),所以 n 必须整除 2。

因此,n 的最大值为 30(因为 30 = 2 × 3 × 5,且 30 整除 2(2×30² + 10×30 + 15))。

Since n and 2n² + 10n + 15 are coprime (can be verified), n must divide 2. Therefore, the maximum value of n is 30.

💡 关键思路: 利用整除的性质,将复杂表达式简化,然后通过互质性分析得出结论。
2
质数与因数分解 Primes and Factorization
进阶 必考

质数是数论的基础概念。在 AIME 中,经常需要利用质数的性质、质因数分解以及与质数相关的定理(如费马小定理、欧拉定理等)来解决问题。

Primes are the fundamental concept in number theory. In AIME, you often need to use properties of primes, prime factorization, and theorems related to primes (such as Fermat's Little Theorem, Euler's Theorem, etc.) to solve problems.

📝 重要定理 / Important Theorems
算术基本定理:每个大于 1 的整数都可以唯一地表示为质数的乘积
n = p₁^a₁ × p₂^a₂ × ... × p_k^a_k,其中 p_i 为不同的质数
Fundamental Theorem of Arithmetic: Every integer greater than 1 can be uniquely expressed as a product of primes

质因数分解的应用:

  • 求一个数的因数个数:(a₁+1)(a₂+1)...(a_k+1)
  • 求一个数的因数之和:∏(p_i^(a_i+1)-1)/(p_i-1)
  • 判断一个数是否为完全平方数:所有指数 a_i 都是偶数
⚠️ 注意: 在进行质因数分解时,要注意大数的分解技巧,如试除法、筛法等。AIME 中经常出现需要分解大数的题目。

例题 2 Example 2

📝 AIME 2019 II Problem 5 难度:困难
设 n 为正整数,且 n!(n 的阶乘)末尾有 24 个零。求 n 的最大值。 Let n be a positive integer such that n! (n factorial) has exactly 24 trailing zeros. Find the maximum value of n.
解答:

n! 末尾零的个数等于 n! 中因子 10 的个数,也就是因子 2 和 5 的对数的最小值。

由于因子 2 的个数远多于因子 5 的个数,所以只需要计算因子 5 的个数。

因子 5 的个数为:⌊n/5⌋ + ⌊n/25⌋ + ⌊n/125⌋ + ...

The number of trailing zeros in n! equals the number of factor 10 in n!, which is the minimum of the count of factors 2 and 5. Since there are many more factors 2 than 5, we only need to count the factors 5.

For n = 100: ⌊100/5⌋ + ⌊100/25⌋ = 20 + 4 = 24 ✓

For n = 101: ⌊101/5⌋ + ⌊101/25⌋ = 20 + 4 = 24 ✓

For n = 102: ⌊102/5⌋ + ⌊102/25⌋ = 20 + 4 = 24 ✓

For n = 103: ⌊103/5⌋ + ⌊103/25⌋ = 20 + 4 = 24 ✓

For n = 104: ⌊104/5⌋ + ⌊104/25⌋ = 20 + 4 = 24 ✓

For n = 105: ⌊105/5⌋ + ⌊105/25⌋ = 21 + 4 = 25 ✗

因此,n 的最大值为 104。

Therefore, the maximum value of n is 104.

💡 关键思路: 利用阶乘末尾零的个数与质因数分解的关系,通过计算因子 5 的个数来确定 n 的范围。
3
同余基础 Basic Congruence
进阶 高频

同余是数论中的重要概念,在 AIME 中有广泛应用。掌握同余的基本性质和运算规则,是解决复杂数论问题的关键。

Congruence is an important concept in number theory and has wide applications in AIME. Mastering the basic properties and operation rules of congruence is key to solving complex number theory problems.

📝 同余定义 / Definition of Congruence
a ≡ b (mod m) 表示 m | (a - b)
即 a - b 能被 m 整除
a ≡ b (mod m) means m divides (a - b)

同余的基本性质:

  • 自反性:a ≡ a (mod m)
  • 对称性:若 a ≡ b (mod m),则 b ≡ a (mod m)
  • 传递性:若 a ≡ b (mod m) 且 b ≡ c (mod m),则 a ≡ c (mod m)
  • 若 a ≡ b (mod m) 且 c ≡ d (mod m),则 a + c ≡ b + d (mod m)
  • 若 a ≡ b (mod m) 且 c ≡ d (mod m),则 ac ≡ bd (mod m)
💡 提示: 在 AIME 中,经常需要利用同余的性质来简化大数运算,或者通过构造同余式来证明某些性质。

例题 3 Example 3

📝 AIME 2018 I Problem 8 难度:中等
求满足 2^n ≡ 1 (mod 7) 的最小正整数 n。 Find the smallest positive integer n such that 2^n ≡ 1 (mod 7).
解答:

计算 2 的幂模 7:

2¹ = 2 ≡ 2 (mod 7)

2² = 4 ≡ 4 (mod 7)

2³ = 8 ≡ 1 (mod 7) ✓

因此,最小的正整数 n 为 3。

Calculating powers of 2 modulo 7: 2¹ = 2 ≡ 2 (mod 7), 2² = 4 ≡ 4 (mod 7), 2³ = 8 ≡ 1 (mod 7). Therefore, the smallest positive integer n is 3.

💡 关键思路: 通过逐次计算幂的模运算,找到满足条件的指数。这实际上是求 2 模 7 的阶。

综合练习

练习题 1: 设 gcd(a, b) = 12,lcm(a, b) = 72,求 a + b 的最小值。 Let gcd(a, b) = 12 and lcm(a, b) = 72. Find the minimum value of a + b.
✅ 回答正确!
❌ 回答错误,请再试一次。
练习题 2: 求 100! 末尾有多少个零。 How many trailing zeros does 100! have?
✅ 回答正确!
❌ 回答错误,请再试一次。
练习题 3: 求 3^100 mod 7 的值。 Find the value of 3^100 mod 7.
✅ 回答正确!
❌ 回答错误,请再试一次。