The solution must be a lookup table since the 6th taxicab number is already greater than 2^64. If anyone find an algorithm for this, DO NOT publish here, publish a scientific paper. Researchers published a paper just about the upper bounds for the 7th to12th number for instance.
The 6th taxicab number is not even a certainty apparently http://jucs.org/jucs_9_10/what_is_the_value/Calude_C_S.pdf
not a general solution
Considering that the proof of the 6th taxicab number produced over 8GB of data and consisted of an exhaustive search over the integers up to 1e21, a truly generic solution is not really possible.
Create a Multiplication table matrix...
01 - Scalar variables
02 - Vector Variables 2
Graph Algorithms - 1 : Length of the largest closed path
Integer Sequence - II : New Fibonacci
Generate this matrix
Graph Algorithms - 2 : Chromatic Number
Generate Square Wave
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office