Taxicab numbers: Difference between revisions

Content added Content deleted
(added FreeBASIC)
m (formatting of task description)
Line 1: Line 1:
{{draft task|Mathematics}}
{{draft task|Mathematics}}
[[File:taxi1729.png|600px||right]]


A   [[wp:Hardy–Ramanujan 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.
A [[wp:Hardy–Ramanujan 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''':
The first taxicab number is 1729 : 1<sup>3</sup> + 12<sup>3</sup> = 9<sup>3</sup> + 10<sup>3</sup>
::: <b> <big> 1729 &nbsp; &nbsp; = &nbsp; &nbsp; 1<sup>3</sup> + 12<sup>3</sup> &nbsp; &nbsp; = &nbsp; &nbsp; 9<sup>3</sup> + 10<sup>3</sup> </big> </b>




;Task requirements
;Task requirements


* Compute and display the lowest &nbsp; '''25''' &nbsp; taxicab numbers (in numeric order, and in a human-readable format).
* 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.
* For each of the taxicab numbers, show the number as well as it's constituent cubes.




;Extra credit:
;Extra credit
* Show the &nbsp; 2,000<sup>th</sup> &nbsp; taxicab number, &nbsp; and a half dozen <u>more</u>
* Show the 2,000<sup>th</sup> taxicab number, and a half dozen more




;See also:
;See also:
* Entry: &nbsp; [http://oeis.org/A001235 A001235 taxicab numbers] on The On-Line Encyclopedia of Integer Sequences.
* [http://oeis.org/A001235 A001235 taxicab numbers] on The On-Line Encyclopedia of Integer Sequences.
* Entry: &nbsp; [http://mathworld.wolfram.com/Hardy-RamanujanNumber.html Hardy-Ramanujan Number] on MathWorld.
* [http://mathworld.wolfram.com/Hardy-RamanujanNumber.html Hardy-Ramanujan Number] on MathWorld.
* Entry: &nbsp; [http://mathworld.wolfram.com/TaxicabNumber.html taxicab number] on MathWorld.
* [http://mathworld.wolfram.com/TaxicabNumber.html taxicab number] on MathWorld.
* Entry: &nbsp; [https://en.wikipedia.org/wiki/Taxicab_number taxicab number] on Wikipedia.
* [https://en.wikipedia.org/wiki/Taxicab_number taxicab number] on Wikipedia.
<br><br>
<br><br>