Taxicab numbers: Difference between revisions

m
added more whitespace to make the example easier to read.
(→‎{{header|Tcl}}: Added zkl)
m (added more whitespace to make the example easier to read.)
Line 1:
{{draft task|Mathematics}}
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 <math>&nbsp; '''1729</math>''':
:<math>:: 1729 &nbsp; &nbsp; = &nbsp; &nbsp; 1^<sup>3</sup> + 12^<sup>3</sup> &nbsp; &nbsp; = &nbsp; &nbsp; 9^<sup>3</sup> + 10^<sup>3</mathsup>
 
;Task requirements
 
* 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.
* Show the 2,000<sup>th</sup> taxicab number and a half dozen more ''(extra credit)''