Activity › Discussion › Math › A Math trivia › Reply To: A Math trivia

::
Given a large number, <code datanotranslation=””>n, find all positive numbers less than or equal to <code datanotranslation=””>n that can be represented as the sum of two cubes for at least two different pairs.
In other words, find all positive numbers <code datanotranslation=””>m <= n that can be expressed as:
<code datanotranslation=””>m = (a<sup>3</sup> + b<sup>3</sup>) = (c<sup>3</sup> + d<sup>3</sup>) for distinct <code datanotranslation=””>a, <code datanotranslation=””>b, <code datanotranslation=””>c, <code datanotranslation=””>d.
For example,
If <code datanotranslation=””>n = 25000, <code datanotranslation=””>m can be any of <code datanotranslation=””>1729, <code datanotranslation=””>4104, <code datanotranslation=””>13832, or <code datanotranslation=””>20683 as these numbers can be represented as the sum of two cubes for two different pairs.
1729 = 1<sup>3</sup> + 12<sup>3</sup> = 9<sup>3</sup> + 10<sup>3</sup>
4104 = 2<sup>3</sup> + 16<sup>3</sup> = 9<sup>3</sup> + 15<sup>3</sup>
13832 = 2<sup>3</sup> + 24<sup>3</sup> = 18<sup>3</sup> + 20<sup>3</sup>
20683 = 10<sup>3</sup> + 27<sup>3</sup> = 19<sup>3</sup> + 24<sup>3</sup>1729, the HardyRamanujan Number, is the smallest number which can be expressed as the sum of two different cubes in two different ways.<sup>
</sup>