Why three-digit integers only?

Find the smallest integer N N where N = A # B B N = \dfrac{A \text{ \# } B}{B} , where A A and B B are three-digit integers, and ( A # B ) (A \text{ \# } B) denotes the six-digit integer formed by placing A A and B B side by side.

Note : Trivial solutions like [ A = 001 , B = 500 , N = 3 ] \left[A=001, B=500, N=3 \right] are not allowed, so assume A , B 100 A, B \geq 100 .


If you've solved this problem, try it's sister problem, an advanced version: Why three-digit integers only? (Part-2) .


The answer is 121.

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.

2 solutions

Garrett Clarke
Jul 26, 2015

Let's rewrite N N without the "#" function:

N = 1000 A + B B = 1000 A B + 1 N=\frac{1000A+B}{B}=\frac{1000A}{B}+1

To minimize N N , we must minimize A A and maximize B B such that B B divides 1000 A 1000A . First, notice that if we let A = 102 + 3 m A=102+3m and B = 850 + 25 m B=850+25m , then:

N = 1000 ( 102 + 3 m ) 850 + 25 m + 1 = 1000 3 ( m + 34 ) 25 ( m + 34 ) + 1 = 121 N = \frac{1000(102+3m)}{850+25m}+1= 1000\frac{3(m+34)}{25(m+34)}+1= 121

If A 125 A\geq125 , then N > 125000 1000 + 1 = 126 N > \frac{125000}{1000}+1=126 , so we only need to check values of A < 125 A<125 .

I personally checked all of the values of A < 125 A<125 , and if A 102 + 3 m A≠102+3m , then N N achieves its maximum when B = 8 A B=8A , therefore N = 1000 A 8 A + 1 = 126 N=\frac{1000A}{8A}+1=126 in these situations, therefore our minimum N N must be 121 \boxed{121} .

Whoa! @Garrett Clarke , From where did you get the idea of substituting A = 102 + 3 m A = 102 + 3m and B = 850 + 25 m B=850+25m ?

Satyajit Mohanty - 5 years, 10 months ago

Log in to reply

Really I was just trying to narrow down the cases I had to check. When I saw that N = 121 N=121 at ( 102 , 850 ) (102,850) and ( 105 , 875 ) (105,875) , and that if A = 120 A=120 then B = 1000 B=1000 (not a solution but it follows the pattern), I made the substitution as a guess and obviously it worked out pretty well lol

Garrett Clarke - 5 years, 10 months ago

Log in to reply

Well, Incredible!

Satyajit Mohanty - 5 years, 10 months ago

Log in to reply

@Satyajit Mohanty Great question, I really enjoyed both this one and the sister problem!

Garrett Clarke - 5 years, 10 months ago

Nice, +1 :)

Kazem Sepehrinia - 5 years, 10 months ago
Kazem Sepehrinia
Jul 27, 2015

To be honest, I was lucky solving this one and I didn't try to get an approach. I started to decrease B B from 1000 1000 and increase A A from 100 100 , for getting a pair ( A , B ) (A, B) such that B 1000 A B|1000 A . First pair that came to my mind was ( A , B ) = ( 108 , 900 ) (A, B)=(108, 900) . It gave me the answer as N = 121 N=121 and it was right.

did the same

Valay Agarawal - 5 years, 9 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...