RosettaCodeData/Task/Taxicab-numbers/00-TASK.txt
2023-07-01 13:44:08 -04:00

31 lines
1.2 KiB
Text
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

A   [[wp:HardyRamanujan number|taxicab number]]   (the definition that is being used here)   is a positive integer that can be expressed as the sum of two positive cubes in more than one way.
The first taxicab number is   '''1729''',   which is:
::: 1<sup>3</sup> &nbsp; + &nbsp; 12<sup>3</sup> &nbsp; &nbsp; &nbsp; and also
::: 9<sup>3</sup> &nbsp; + &nbsp; 10<sup>3</sup>.
Taxicab numbers are also known as:
::* &nbsp; taxi numbers
::* &nbsp; taxi-cab numbers
::* &nbsp; taxi cab numbers
::* &nbsp; Hardy-Ramanujan numbers
;Task:
* Compute and display the lowest 25 taxicab numbers (in numeric order, and in a human-readable format).
* For each of the taxicab numbers, show the number as well as it's constituent cubes.
;Extra credit
* Show the 2,000<sup>th</sup> taxicab number, and a half dozen more
;See also:
* [[oeis:A001235|A001235: taxicab numbers]] on The On-Line Encyclopedia of Integer Sequences.
* [http://mathworld.wolfram.com/Hardy-RamanujanNumber.html Hardy-Ramanujan Number] on MathWorld.
* [http://mathworld.wolfram.com/TaxicabNumber.html taxicab number] on MathWorld.
* [[wp:Taxicab_number|taxicab number]] on Wikipedia &nbsp; (includes the story on how taxi-cab numbers came to be called).
<br><br>