Given two non-negative integers $m>n$, let's say that $m$ ends in $n$ if we can get $n$ by erasing some digits (from left to right) in the decimal representation of $m$. For example, 329 ends in 29, and also in 9. Determine how many three-digit numbers end in the product of their digits.
Problem
Source: Central American Olympiad 2007, Problem 5
Tags:
12.06.2007 08:57
I recommend checking my casework.
12.06.2007 23:45
You missed something.
08.08.2007 13:28
Jutaro wrote: Given two non-negative integers $ m>n$, let's say that $ m$ ends in $ n$ if we can get $ n$ by erasing some digits (from left to right) in the decimal representation of $ m$. For example, 329 ends in 29, and also in 9. Determine how many three-digit numbers end in the product of their digits. Let $ a,b,c$ be digits of a number. If $ n$ is one-digit number then we have: $ abc=c$ or $ c(ab-1)=0$. If $ c=0$ then we 90 numbers that satisfy conditions. If $ ab=1$ then where are 9 such numbers. If $ n$ is two-digit number then we have: $ c(ab-1)=10b$ or $ k(ab-1)=10$ where $ c=kb$. After checking three cases $ k=1, k=2$ and $ k=5$ we get 4 solutions: $ 236, 324, 612$ and $ 315$. All in all, there are 103 such numbers.
05.11.2007 04:48
Hello. I'm new here and I'm from Chile. This forum will give me the possibility to practise English and to learn MATH. First it's very easy to notice that the product of the digits of all 3-digits numbers that ends in 0 is cero. (0) The number abc can ends in bc or c. That's why that now we have 2 possibilities: (1) c=a*b*c (c>0) --> ab=1 --> a=b=1 (because they must be positive integers) (2) bc=a*b*c --> 10*b + c=a*b*c --> 10*b = c*(a*b -1) so now he have that c can be 1,2,5,10,b,2*b,5*b,10*b . But c<=9 so the possibilities now are 1,2,5,b,2b,5b. c=1 --> ab-1=10b --> b(a-10)=1 Impossible (a<=9) c=2 --> ab-1=5b --> b(a-5)=1 --> a=6, b=1 c=5 --> ab-1=2b --> b(a-2)=1 --> a=3, b=1 c=b --> ab-1=10 --> ab=11 (impossible, they are integer and <=9) c=2b --> ab-1=5 --> ab=6 --> a=2,3,6 and b=3,2,1 --> c=6,4,2 (in that order) c=5b --> ab-1=2 --> ab=3 --> a=3, b=1, c=5 So the numbers are: (0) :100,110,120...200,210,...300,......990 (1): 111, 112, 113,....,119 (2) 236, 315, 324, 612. Finally from (0) we get 90 numbers, from (1) 9 numbers and from (2) 4. So there are 90+9+4=103 numbers.