You multiply by 9 by adding a 0

A three-digit number N N (in decimal) contains the digit 0 0 . When the zero is removed, the resulting number is exactly N 9 \frac{N}{9} . What is the value of N N ?

Note: The number may contain more than one zero. The number may not begin with a zero.


The answer is 405.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Ivan Koswara
May 10, 2014

As the problem image shows, there are three cases:

  • Case 1: We strike a zero in the hundreds place.

But this is not even a valid case, as a three-digit number cannot begin with a zero.

  • Case 2: We strike a zero in the units place.

This is the same as dividing by 10 10 , so the number we get will be N 10 \frac{N}{10} . If N 10 = N 9 \frac{N}{10} = \frac{N}{9} , we need to have 9 N = 10 N 9N = 10N , or N = 0 N = 0 , not a three-digit number.

  • Case 3: We strike a zero in the tens place.

Let the number be a 0 b \overline{a0b} , so after removing the zero we get a b \overline{ab} . Thus:

a 0 b = 9 a b \overline{a0b} = 9 \cdot \overline{ab}

100 a + b = 9 ( 10 a + b ) 100a + b = 9 (10a + b)

100 a + b = 90 a + 9 b 100a + b = 90a + 9b

10 a = 8 b 10a = 8b

5 a = 4 b 5a = 4b

If b = 0 b = 0 , then a = 0 a = 0 too, which gives the number a 0 b = 000 = 0 \overline{a0b} = \overline{000} = 0 , not a three-digit number too. So b > 0 b > 0 . But since b b is a decimal digit, it must be less than 10 10 .

Finally, as a , b a,b are integers, we need 5 5 to divide 4 b 4b . Since 4 4 is not divisible by 5 5 , we need to have 5 5 to divide b b . Thus b b is an integer divisible by 5 5 that lies in the range [ 1 , 9 ] [1,9] ; the only possibility is b = 5 b = 5 , which causes a = 4 a = 4 and N = a 0 b = 405 N = \overline{a0b} = \boxed{405} . It can be easily verified that the number works.


Another way is by programming, although clearly it's not an intended solution for a math problem and is rather hard with various conversions between integers and strings. Here's a Python solution:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
# iterate over all three-digit numbers
for number in range(100, 1000):

    # cast to string, as deleting a character is a string operation
    number = str(number)

    # iterate over each character
    for i in range(len(number)):

        # if the character is not a zero, skip
        if number[i] != "0": continue

        # try removing the character
        removed = number[0:i] + number[i+1:]

        # check whether the result is the number divided by 9
        if int(removed) * 9 == int(number):

            # print the number; this one is valid
            print(number)

# prints a single number '405' 

First when I solved it, I used guesswork. But then I realized that it could be done this way.

Nishant Sharma - 6 years, 11 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...