Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
4
Task/Taxicab-numbers/Mathematica/taxicab-numbers.math
Normal file
4
Task/Taxicab-numbers/Mathematica/taxicab-numbers.math
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
findTaxi[n_] := Sort[Keys[Select[Counts[Flatten[Table[x^3 + y^3, {x, 1, n}, {y, x, n}]]], GreaterThan[1]]]];
|
||||
Take[findTaxiNumbers[100], 25]
|
||||
found=findTaxiNumbers[1200][[2000 ;; 2005]]
|
||||
Map[Reduce[x^3 + y^3 == # && x >= y && x > 0 && y > 0, {x, y}, Integers] &, found]
|
||||
Loading…
Add table
Add a link
Reference in a new issue