Blow your head up 2!

Let m m and n n be two different positive integers in reverse order (e.g. 1234 1234 and 4321 4321 ). Given that m n = 298894956667 mn = 298894956667 , find the value of m + n m + n .


The answer is 1265572.

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.

10 solutions

Caleb Townsend
Mar 6, 2015

There are only 4 4 divisors of 298894956667 : 298894956667: the number itself, 1 , 1, 314159 , 314159, and 951413. 951413. Since m m and n n are positive integers in reverse order, they must be 314159 314159 and 951413. 951413. m + n = 314159 + 951413 = 1265572 m + n = 314159 + 951413 = \boxed{1265572}

Yuxuan Seah
Jun 1, 2014

... All I can say is that the two numbers are 314159 and 951413. How to figure that out is left as an exercise to the solver (Good luck! You'll need it)

i know how to solve it prime factorize and find. it takes a hell of time to prime factorize this godzilla

Parker Prathyoom - 7 years ago

But how did you solve this???

Anuj Shikarkhane - 6 years, 10 months ago

Teach us! HAHAHA

Astro Enthusiast - 6 years, 10 months ago
Horisadi Afyama
May 26, 2015

21.7 sec , counting from 0 . Slow... but it works...

What code program is this?

Calvin Lin Staff - 4 years, 11 months ago
Chew-Seong Cheong
May 15, 2015

I used a Python coding:

The answer for m = 100000 π m = \lfloor 100000\pi \rfloor .

Arulx Z
May 11, 2015
1
2
3
for(int i = 10000;;i++)
    if(Double.parseDouble(new StringBuilder(String.valueOf(i)).reverse().toString()) * i == 298894956667d)
        System.out.println(i + Integer.parseInt(new StringBuilder(String.valueOf(i)).reverse().toString()));

Bill Bell
Mar 28, 2015

Cracking a walnut with a truck.

Mehul Chaturvedi
Mar 14, 2015

Python :

1
2
3
4
5
6
def re(n):   #i'm making reverse function as re(n)
    return int(str(n)[::-1])
for m in range(1,999999):
    k=re(m)
    if k*m==298894956667.0:
        print 'answer is',k+m

So you have improved using Python.

Chew-Seong Cheong - 6 years ago
Brock Brown
Mar 8, 2015

Python:

1
2
3
4
5
6
7
def goal(n):
    m = int(str(n)[::-1])
    return m * n == 298894956667
n = 1
while not goal(n):
    n += 1
print "Answer:", n+int(str(n)[::-1])

Aryan Gaikwad
Mar 6, 2015

All you need to do is to find out the factors of 298894956667.

Here is the java solution. I was going to make the solution more specific, but then I realized that 298894956667 has only 2 factors other than the number itself and 1.

for(int i = 100_000;i < 1_000_000;i++)
    if(298894956667d % i == 0)
        System.out.println(i);

Also one more thing to notice is that the factors will be between 1 million and 100 thousand.

Rajen Kapur
Jan 8, 2015

I worked simultaneously from left and right matching till I got to the middle where I found that the squares of the digits add up to 133. Looking at both the ends 9 and 3 were obvious then 5, 4, 1 and 1 were possible choice. Of course there was lot of effort involved. Please share better methods.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...