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 |
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 |
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 = 1<sup>3</sup> + 12<sup>3</sup> = 9<sup>3</sup> + 10<sup>3</sup> </big> </b> |
|||
;Task requirements |
;Task requirements |
||
* Compute and display the lowest |
* 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 |
* Show the 2,000<sup>th</sup> taxicab number, and a half dozen more |
||
;See also: |
;See also: |
||
* |
* [http://oeis.org/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. |
||
* |
* [https://en.wikipedia.org/wiki/Taxicab_number taxicab number] on Wikipedia. |
||
<br><br> |
<br><br> |
||