返回题库

AIME 1994 · 第 5 题

AIME 1994 — Problem 5

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

Given a positive integer nn\,, let p(n)p(n)\, be the product of the non-zero digits of nn\,. (If nn\, has only one digit, then p(n)p(n)\, is equal to that digit.) Let

S=p(1)+p(2)+p(3)++p(999)S=p(1)+p(2)+p(3)+\cdots+p(999)

.

What is the largest prime factor of SS\,?

解析

Solution

Solution 1

Suppose we write each number in the form of a three-digit number (so 50055 \equiv 005), and since our p(n)p(n) ignores all of the zero-digits, replace all of the 00s with 11s. Now note that in the expansion of

(1+1+2+3+4+5+6+7+8+9)(1+1+2+3++9)(1+1+2+3++9)(1+ 1 +2+3+4+5+6+7+8+9) (1+ 1 +2+3+\cdots+9) (1+ 1 +2+3+\cdots+9)

we cover every permutation of every product of 33 digits, including the case where that first 11 represents the replaced 00s. However, since our list does not include 000000, we have to subtract 11. Thus, our answer 103\boxed{103}.

Solution 2

Note that p(1)=p(11),p(2)=p(12),p(3)=p(13),p(19)=p(9)p(1)=p(11), p(2)=p(12), p(3)=p(13), \cdots p(19)=p(9), and p(37)=3p(7)p(37)=3p(7). So p(10)+p(11)+p(12)++p(19)=46p(10)+p(11)+p(12)+\cdots +p(19)=46, p(10)+p(11)++p(99)=4645=2070p(10)+p(11)+\cdots +p(99)=46*45=2070. We add p(1)+p(2)+p(3)++p(10)=45p(1)+p(2)+p(3)+\cdots +p(10)=45 to get 2115. When we add a digit we multiply the sum by that digit. Thus 2115(1+1+2+3+4+5+6+7+8+9)=211546=4745462115\cdot (1+1+2+3+4+5+6+7+8+9)=2115\cdot 46=47\cdot 45\cdot 46. But we didn't count 100, 200, 300, ..., 900. Thus, we have to add another 45 to get 45216345\cdot 2163. The largest prime factor of that is 103\boxed{103}.