This story is very famous among mathematicians. 1729 is sometimes called the “Hardy-Ramanujan number”.
There are two ways to say that 1729 is the sum of two cubes. 1x1x1=1; 12x12x12=1728. So 1+1728=1729 But also: 9x9x9=729; 10x10x10=1000. So 729+1000=1729 There are other numbers that can be shown to be the sum of two cubes in more than one way, but 1729 is the smallest of them.
Ramanujan did not actually discover this fact. It was known in 1657 by a Frenchmathematician Bernard Franicle de Bessy.
But it got famous after the ramanujans above conversation.
So it's famously known as Ramanujan Number.