Cubing

Which is the smallest number which is the sum of two positive cubes which can be expressed in two different ways?


The answer is 1729.

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.

5 solutions

Ryan Tamburrino
Jul 15, 2014

The world-famous Hardy-Ramanujan number!

Hey I am proud to be an Indian for this reason .......It has f=gifted the world with with great mathematicians

ashutosh mahapatra - 6 years, 10 months ago

Log in to reply

Absolutely! Indeed one of the most important areas in the development of mathematics.

Ryan Tamburrino - 6 years, 10 months ago

Log in to reply

and Ramanujan is damn so cool

math man - 6 years, 8 months ago

Taxi-cab number

shivamani patil - 6 years, 8 months ago
Bill Bell
Aug 1, 2014

Brute force, in Python:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
cubes=[n**3 for n in range(1000)]

sums={}

found=False

for i in range (len(cubes)):

    for j in range(i+1):

        if cubes[i]+cubes[j] in sums:

            print sums[cubes[i]+cubes[j]], sum(list(sums[cubes[i]+cubes[j]]))

            print cubes[i], cubes[j],cubes[i]+cubes[j]

            found=True

            break

        else :

            sums[cubes[i]+cubes[j]]=(cubes[i], cubes[j])

    if found:

        break

Swapnil Das
Jun 13, 2015

The famous Hardy Ramanujan Number!

Proud to be a Indian.

Sudhir Aripirala
Jan 25, 2015

An extraordinary discovery from Ramanujan Proud to be an Indian!!!!!!!!!!!!!

Gonna Sing
Jul 23, 2014

1^3+12^3=9^3+10^3 . People know

Consider the caret symbol (^) otherwise everyone go haywire....

敬全 钟 - 6 years, 10 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...