AoPSWiki
Looking for a challenging geometry text? Preparing for MATHCOUNTS or the AMC exams? Check out Art of Problem Solving's Introduction to Geometry by Richard Rusczyk.
Personal tools

1994 AIME Problems/Problem 5

From AoPSWiki

Problem

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

.

What is the largest prime factor of ?

Contents

Solution

Solution 1

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

(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 digits, including the case where that first represents the replaced s. However, since our list does not include , we have to subtract . Thus, our answer is the largest prime factor of (1+1+2+3+\cdots +9)^3 - 1 = 46^3 - 1 = (46-1)(46^2 + 46 + 1) = 3^3 \cdot 5 \cdot 7 \cdot \boxed{103}.

Solution 2

Note that p(1)=p(11), p(2)=p(12), p(3)=p(13), \cdots p(19)=p(9), and . So p(10)+p(11)+p(12)+\cdots +p(19)=46, p(10)+p(11)+\cdots +p(99)=46*45=2070. We add p(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\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. We add another 45 to get . The largest prime factor of that is .

See also

1994 AIME (ProblemsResources)
Preceded by
Problem 4
Followed by
Problem 6
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Want to learn how to tackle those tough AMC/AIME/Olympiad counting and probability problems? Check out Art of Problem Solving's NEW Intermediate Counting & Probability by David Patrick.
© Copyright 2008 AoPS Incorporated. All Rights Reserved. • FoundationPrivacyContact Us