AMC 8 2017 Problem 19
AMC8 2017 年第 19 题
整除与因数★★★★☆
For any positive integer , the notation M! denotes the product of the integers 1 through . What is the largest integer for which is a factor of the sum 98!+99!+100! ?
对于任何正整数 M,符号 M! 表示从 1 到 M 的所有整数的乘积(例如 4! = 1×2×3×4 = 24)。求使得 是 98!+99!+100! 的因子的最大整数 n 是多少?
- A.23
- B.24
- C.25
- D.26
- E.27
正确答案 · Correct Answer
D
解析 · Solution
解法1
三个连续阶乘相加,先「提公因式」化简成 ,再数里头有几个 5。答案 n=26。难点全在「数 5」那一步——25 是个坑。
解法1(提公因式 + 数 5)
98!、99!、100! 里 98! 最小。由 99!=99×98!、100!=100×99×98! 把 98! 提出来:
要找最大的 使 整除它,就是数这个数里「一共有几个质因数 5」。
· ,含 4 个 5。
· 里有几个 5?只有 5 的倍数才带 5:
先数 5 的倍数 5、10、15、…、95,共 个,各带一个 5 → 先记 19 个。
「但 25、50、75 是 的倍数,每个其实带两个 5」,上一步只数到一个,要再补一个: 个 → 再加 3。
再上一层 125 是 ?而 125>98,没有,停。
合计 19+3=22 个 5。
· 两处相加:22+4=26。所以 n=26。
用小数字看清第一步
怕「提公因式」那步,用小数字试:。三个连续阶乘相加 = 最小那个阶乘 一个整数;本题同样提出 98! 得 ,再回解法1 数 5。
前置(数阶乘里有几个某质数,叫勒让德公式):数 n! 里质数 的个数,就是「先数 的倍数,再补 的倍数,再补 的倍数……」一直到除不动:
本质是「双重计数补漏」: 的倍数含两个 ,第一遍只数了一个、漏了第二个,第二项补上; 的含三个,再补……
易错点:㈠ 问的是 5 的幂,只数 5、不数 2(虽然 里也有 );㈡「25 这一层最容易漏」——只数 5 的倍数得 19 就交,会漏掉 25、50、75 各多带的那个 5,正确是 19+3=22;㈢ 别忘了 额外的 4 个 5,只算 98! 会得 22 而不是 26。
Solution 1
*(Factor out, then count fives.)* Among 98!, 99!, 100! the smallest is 98!. Using 99!=99×98! and 100!=100×99×98!:
The largest with dividing this is just the total number of factors of 5 in it.
· contributes 4 fives.
· How many 5's in ? Only multiples of 5 carry one. Count multiples of 5: 5, 10, …, 95, that is , each giving one 5 → 19 so far. But 25, 50, 75 are multiples of and carry two 5's each; the first pass caught only one, so add more. Next level 125 is : none. Total 19+3=22.
· Add up: 22+4=26, so n=26.
*(See the first step with small numbers.)* If factoring out feels unclear, try small: . Three consecutive factorials add up to the smallest one times a whole number; here that gives , then count fives as above.
Prerequisite (Legendre's formula): the number of times a prime divides n! is — count multiples of , then add multiples of , then , and so on. It is double-counting repair: a multiple of holds two 's, the first pass missed the second, and the next term restores it.
Traps: count only 5's, not 2's; the 25-level is the easy miss (stopping at 19 instead of 22); and don't forget the extra four 5's from .
继续练习