Taxicab Number Calculator

Cubes

ways to write 1,729 as a sum of two positive cubes2
the representations1^3 + 12^3 and 9^3 + 10^3
largest cube root that has to be tried13
is it a taxicab number (at least 2 ways)?Yes
How this was calculated
  1. Try every a from 1 up to the cube root of 1,729 and check whether 1,729 - a^3 is itself a perfect cube b^3 with b >= a.
  2. That search finds 2 representation(s): 1^3 + 12^3 and 9^3 + 10^3.
  3. A taxicab number Ta(k) is the smallest number with exactly k such representations; an ordinary number with two ways, like 1,729, shares the stage with it.
  4. The name comes from Hardy's taxi numbered 1729, which Ramanujan immediately described as the smallest number expressible as a sum of two cubes in two different ways.

The taxicab numbers are famous because of a hospital visit. Hardy came to see the ailing Ramanujan and mentioned that his taxi had borne the 'dull' number 1729 - to which Ramanujan replied that 1729 is anything but dull: it is the smallest number expressible as a sum of two cubes in two different ways, 1729 = 1^3 + 12^3 = 9^3 + 10^3. The taxicab number Ta(n) generalizes: the smallest number that is a sum of two positive cubes in n distinct ways.

This calculator reports the known taxicab numbers and, in test mode, enumerates the representations of your number. Ta(2) = 1729 with its two celebrated representations; Ta(3) = 87,539,319 with three: (167, 436), (228, 423) and (255, 414). The next case shows the cliff edge: Ta(4) = 6,963,472,309,248, and Ta(5) and Ta(6) are known only because of heroic searches - with Ta(6) confirmed only in 2008.

Test mode is the playful half of the page: enter a number and see every way it splits into two positive cubes. Most numbers have none; 4104 has two - (2, 16) and (9, 15) - which makes it the second-smallest 'two ways' number after 1729 itself.

Worked examples

Representations of 1729

(0 - representations of a number · 1729)

ways to write 1,729 as a sum of two positive cubes2
the representations1^3 + 12^3 and 9^3 + 10^3
largest cube root that has to be tried13
is it a taxicab number (at least 2 ways)?Yes

Representations of 4104

(0 - representations of a number · 4104)

ways to write 4,104 as a sum of two positive cubes2
the representations2^3 + 16^3 and 9^3 + 15^3
largest cube root that has to be tried17
is it a taxicab number (at least 2 ways)?Yes

The second taxicab number Ta(2)

(1 - the k-th taxicab number Ta(k) · 2)

taxicab number Ta(2)1,729
its representations1^3 + 12^3 and 9^3 + 10^3
representations found by direct search2
the previous taxicab number2

1729 and the two ways

Verify Ramanujan's claim by hand: 1^3 + 12^3 = 1 + 1728 = 1729, and 9^3 + 10^3 = 729 + 1000 = 1729. Two genuinely different pairs of positive cubes - (1, 12) and (9, 10) - land on the same sum, and no smaller number manages it. The calculator's test mode reproduces this instantly and shows the exhaustive search behind 'smallest': every candidate below 1729 has at most one representation.

The story is usually told as an anecdote about genius, but its mathematical content is the definition it created. 'Expressible as a sum of two cubes in n ways' turned out to be a fruitful notion - the representations correspond to rational points on elliptic curves, which is why the taxicab sequence connects to deep modern work and why the larger terms were so hard to pin down.

  • 1729 = 1^3 + 12^3 = 9^3 + 10^3
  • Ta(2) = 1729 - the smallest number with two representations
  • 4104 = 2^3 + 16^3 = 9^3 + 15^3 is the next two-way number
  • Representations use positive cubes, pairs unordered

Ta(3) = 87,539,319

Three ways costs a jump to 87,539,319. Its representations are (167, 436), (228, 423) and (255, 414) - check the first: 167^3 = 4,657,463 and 436^3 = 82,881,856, summing to 87,539,319. The number was found by Leech in 1957, and its size relative to 1729 - fifty thousand times larger - previews the sequence's explosive growth.

Ta(4) = 6,963,472,309,248 (about 7 x 10^12) was found by Rosenstiel, Dardis and Rosenstiel in 1991. Ta(5) = 48,988,659,276,962,496 (about 4.9 x 10^16) fell to Hollerbach in 1993. Each step multiplies the search space brutally, because representations must coincide exactly while the cubes themselves grow sparser.

nTa(n)Status
12trivial: 1^3 + 1^3
21729Hardy-Ramanujan
387,539,319Leech, 1957
46,963,472,309,2481991
548,988,659,276,962,4961993
624,153,319,590,254,312,065,344confirmed 2008

How representations are found

Test mode works the obvious way, made exact: for your number N, walk a from 1 upward while a^3 < N, compute N - a^3, and check whether it is a perfect cube by an integer cube-root test. Every hit is a representation. The walk is over cube roots, not over N, so it stays fast for the ranges that matter - numbers up to 10^12 need at most ten thousand cube checks.

Proving minimality for Ta(n) is the expensive direction: every integer below the candidate must be shown to have fewer than n representations, which is why the confirmed terms lagged decades behind the first candidates. Ta(6)'s value was proposed from a parametric family long before exhaustive verification confirmed nothing smaller works.

  • Test: for each a with a^3 < N, check whether N - a^3 is a perfect cube
  • Exact integer cube-root checks - no floating-point verdicts
  • Finding a candidate is easy; proving it smallest is the decades-long part

The taxi-cab geometry of cubes

A representation is a lattice point: (a, b) with a^3 + b^3 = N is an integer point on the curve x^3 + y^3 = N. Asking for n representations asks for n lattice points on one such curve, and the theory of elliptic curves - x^3 + y^3 = N transforms into one - explains both why solutions cluster in parametric families and why the taxicab numbers grow the way they do. The Euler-style parametric identities that generate multi-representation numbers are the practical engine behind the large known terms.

For the reader, the takeaway is simpler: this page's small cases are exact and hand-checkable, the famous ones are tabulated with their representations in full, and the frontier cases are labelled as what they are - confirmed results of large computations, with Ta(7) still unknown.

The search side has a modern postscript: distributed and GPU searches have pushed the verification frontier for multi-representation cube sums far beyond the classical terms, confirming Ta(6) and mapping the representation counts of individual large numbers, while Ta(7) - requiring a number with seven representations and an exclusion proof over everything smaller - remains out of reach. The sequence that Hardy dismissed as dull now marks a genuine computational frontier.

Ta(6) = 24,153,319,590,254,312,065,344 was confirmed only in 2008, and Ta(7) remains unknown - the sequence that starts with a taxi ride ends at a research frontier.

Parametric families: how big taxicab numbers are manufactured

Nobody finds Ta(5) or Ta(6) by brute-force scanning alone; the candidates come from identities. Euler found parametric families of numbers with multiple cube-sum representations - polynomial identities in a parameter that force two or three representations to coincide. Ramanujan knew infinite families for the two-way case. The modern confirmations then verify minimality computationally around a candidate the identities supplied.

A taste of the mechanism: the identity behind many two-way numbers is the factorization a^3 + b^3 = (a + b)(a^2 - ab + b^2) - two representations of N give two factorizations of N, and matching the factors produces Diophantine conditions that parameters can satisfy. The taxicab search is therefore equal parts number theory (generate candidates) and computation (exclude everything smaller).

  • Candidates come from parametric identities (Euler, Ramanujan)
  • a^3 + b^3 = (a + b)(a^2 - ab + b^2) drives the matching conditions
  • Computation's job is the minimality proof, not the discovery

Generalized taxicab numbers

The definition generalizes along three axes: the number of ways, the number of summands, and the power. For squares instead of cubes, the smallest number that is a sum of two positive squares in two ways is 50 = 1^2 + 7^2 = 5^2 + 5^2 - the exact analogue of 1729 one dimension down. Allowing more summands, or negative cubes (the Cabtaxi family), changes the small cases completely, because signed cubes can nearly cancel and produce small totals with several representations.

This page stays with the classical definition - positive cubes, two summands - the one attached to 1729. The generalizations are worth knowing about for one practical reason: a reader meeting 'taxicab' numbers with different values elsewhere can locate the difference, which is almost always the signature (negative cubes allowed) or the number of summands.

  • Squares analogue: 50 = 1^2 + 7^2 = 5^2 + 5^2 is the smallest two-way sum of two squares
  • Cabtaxi numbers allow negative cubes and start differently
  • This page: positive cubes, two summands - the 1729 definition

1729 beyond the taxi: a number with several lives

The taxicab fame is not 1729's only distinction. It factors as 1729 = 7 x 13 x 19, three primes in arithmetic-like spacing, and it is a Carmichael number - the third smallest (after 561 and 1105): composite, yet satisfying the Fermat congruence a^1728 = 1 (mod 1729) for every a coprime to it, which makes it a pseudoprime to every base. It is also a Harshad number, divisible by the sum of its digits: 1 + 7 + 2 + 9 = 19, and 1729 / 19 = 91 exactly.

None of this diminishes the taxi story - it explains its staying power. Ramanujan's 'uninteresting' rebuttal picked out a number that keeps intersecting famous families, and the taxicab definition it inspired remains the cleanest of them: smallest with two cube-sum representations, verified by the exhaustive test this page performs.

  • 1729 = 7 x 13 x 19, and the third Carmichael number (after 561 and 1105)
  • A Harshad number: divisible by its digit sum 19 (1729 = 19 x 91)
  • Its taxicab property is the one this page verifies exhaustively

FAQs

What is a taxicab number?

Ta(n) is the smallest number expressible as a sum of two positive cubes in n distinct ways. Ta(2) = 1729 = 1^3 + 12^3 = 9^3 + 10^3, the number from the Hardy-Ramanujan anecdote.

Why is 1729 famous?

Ramanujan identified it instantly as the smallest number that is a sum of two cubes in two ways: 1^3 + 12^3 and 9^3 + 10^3. Hardy had called it dull; the reply made it the most famous taxicab number.

What is Ta(3)?

87,539,319, with three representations: (167, 436), (228, 423) and (255, 414). It was found by Leech in 1957.

Is 4104 a taxicab-type number?

It has two representations - 4104 = 2^3 + 16^3 = 9^3 + 15^3 - making it the second-smallest two-way number after 1729, though by definition Ta(2) is the smallest, 1729.

How many taxicab numbers are known?

Six: Ta(1) through Ta(6). Ta(6) = 24,153,319,590,254,312,065,344 was confirmed in 2008; Ta(7) is unknown, because proving minimality requires exhausting every smaller candidate.

Are the cubes allowed to be equal or zero?

This page follows the standard definition: positive cubes, with pairs counted up to order. Equal cubes give the trivial Ta(1) = 2 = 1^3 + 1^3; allowing 0 would change the small cases, which is why references state the convention.

Sources

Related calculators

Statistical Power Calculator
Power of a two-sample z test from Cohen's d, the group size, alpha and the number of tails, with the noncentrality parameter and the sample size per group that 80 percent power would require.
Absolute Value Calculator
Absolute values and the distance between two numbers on the number line: |a|, |b| and |a - b|, with the sign-stripping logic spelled out.
Abundancy Index Calculator
Compute the abundancy index sigma(n)/n of a number, classify it as deficient, perfect or abundant, and test whether two numbers are friendly.