
TL;DR
This paper explores solutions to the equation x^3 + y^3 + z^3 = k for small k, successfully finding the first known solution for k=33, inspired by a popular number theory video.
Contribution
It presents the first known solution for the specific case of k=33 in the sum of three cubes problem.
Findings
First known solution for k=33
Methodology for finding solutions to sum of three cubes
Insight into the difficulty of solving for specific k values
Abstract
Inspired by the Numberphile video "The uncracked problem with 33" by Tim Browning and Brady Haran, we investigate solutions to for a few small values of . We find the first known solution for .
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Cracking the problem with 33
Andrew R. Booker
School of Mathematics, University of Bristol, University Walk, Bristol, BS8 1TW, United Kingdom
Abstract.
Inspired by the Numberphile video “The uncracked problem with 33” by Tim Browning and Brady Haran [BH15], we investigate solutions to for a few small values of . We find the first known solution for .
This work was carried out using the computational facilities of the Advanced Computing Research Centre, University of Bristol, http://www.bris.ac.uk/acrc/. The author was partially supported by EPSRC Grant EP/K034383/1. No data were created in the course of this study.
1. Introduction
Let be a positive integer with . Then Heath-Brown [HB92] has conjectured that there are infinitely many triples such that
[TABLE]
Various numerical investigations of (1) have been carried out, beginning as early as 1954 [MW55]; see [BPTYJ07] for a thorough account of the history of these investigations up to 2000. The computations performed since that time have been dominated by an algorithm due to Elkies [Elk00]. The latest that we are aware of is the paper of Huisman [Hui16] (based on the implementation by Elsenhans and Jahnel [EJ09]), which determined all solutions to (1) with and . In particular, Huisman reports that solutions are known for all but 13 values of :
[TABLE]
Elkies’ algorithm works by finding rational points near the Fermat curve using lattice basis reduction; it is well suited to finding solutions for many values of simultaneously. In this paper we describe a different approach that is more efficient when is fixed. It has the advantage of provably finding all solutions with a bound on the smallest coordinate, rather than the largest as in Elkies’ algorithm. This always yields a nontrivial expansion of the search range since, apart from finitely many exceptions that can be accounted for separately, one has
[TABLE]
Moreover, empirically it is often the case that one of the variables is much smaller than the other two, so we expect the gain to be even greater in practice.
Our strategy is similar to some earlier approaches (see especially [HBLtR93], [Bre95], [KTS97] and [BPTYJ07]), and is based on the observation that in any solution, has as a factor. Our main contribution over the earlier investigations is to note that with some time-space tradeoffs, the running time is very nearly linear in the height bound, and it is quite practical when implemented on modern 64-bit computers.
In more detail, suppose that is a solution to (1), and assume without loss of generality that . Then we have
[TABLE]
If then , and every value of yields a solution. Otherwise, setting , we see that divides , and
[TABLE]
so that
[TABLE]
Thus, given a candidate value for , there is an effective procedure to find all corresponding values of and , by running through all divisors of . Already this basic algorithm finds all solutions with in time , assuming standard heuristics for the time complexity of integer factorization. In the next section we explain how to avoid factoring and achieve the same ends more efficiently.
Acknowledgements
I thank Roger Heath-Brown for helpful comments and suggestions.
2. Methodology
For ease of presentation, we will assume that ; note that this holds for all in (2). Since the basic algorithm described above is reasonable for finding small solutions, we will assume henceforth that . Also, if we specialize (1) to solutions with , then we get the Thue equation , which is efficiently solvable. Using the Thue solver in PARI/GP [The18], we verify that no such solutions exist for the in (2). Hence we may further assume that .
Since , we have
[TABLE]
Likewise, since and , we have . Multiplying both sides of (1) by , we thus obtain
[TABLE]
Set , and recall that . If then
[TABLE]
Since , this is incompatible with our assumptions that and . Thus we must have .
Next, reducing (4) modulo and recalling our assumption that , we see that
[TABLE]
Let be so that . Then, since every cube is congruent to [math] or , we must have , so that . In view of (3), we get a solution to (1) if and only if and is a square.
In summary, to find all solutions to (1) with , and , it suffices to solve the following system for each coprime to :
[TABLE]
Our approach to solving this is straightforward: we work through the values of recursively by their prime factorizations, and apply the Chinese remainder theorem to reduce the solution of to the case of prime power modulus, to which standard algorithms apply. Let denote the number of cube roots of modulo . By standard analytic estimates, since is not a cube, we have
[TABLE]
Heuristically, computing the solutions of for all primes can be done with arithmetic operations on integers in ; see e.g. the algorithm described in [NZM91, §2.9, Exercise 8]. Assuming this, one can see that with Montgomery’s batch inversion trick [Mon87, §10.3.1], the remaining effort to determine the roots of for all positive integers can again be carried out with arithmetic operations.
Thus, we can work out all satisfying the first line of (5), as a union of arithmetic progressions, in linear time. To detect solutions to the final line, it is crucial to have a quick method of determining whether is a square. We first note that for fixed this condition reduces to finding an integral point on an elliptic curve; specifically, writing and , from (3) we see that lies on the Mordell curve
[TABLE]
Thus, for fixed there are at most finitely many solutions, and they can be effectively bounded. For some small values of it is practical to find all the integral points on (6) and check whether any yield solutions to (1). For instance, using the integral point functionality in Magma [BCFS18, §128.2.8], we verified that there are no solutions for as in (2) and , except possibly for .
Next we note that some congruence and divisibility constraints come for free:
Lemma**.**
Let be a solution to (5), let be a prime number, and set , . Then:
- (i)
; 2. (ii)
if then ; 3. (iii)
if then ; 4. (iv)
if then .
Proof.
Let . Writing , we have . Observing that , modulo we have
[TABLE]
This vanishes modulo , so in order for to be a square, it must vanish mod as well. Hence
[TABLE]
Reducing (1) modulo we see that , and this yields (i).
Next set and , so that
[TABLE]
If then , but this is impossible when , since is not a square modulo . Hence we must have in that case.
Next suppose that . We consider the following cases, which cover all possibilities:
- •
If then , so .
- •
If and then , so .
- •
If then .
- •
If and then 2^{-4s}\Delta=3\bigl{(}2uv-u^{4}\bigr{)}\equiv 3\pmod{4}, which is impossible.
Thus, in any case we conclude that .
Finally, suppose that and . If then there is nothing to prove, so assume otherwise. Since , we must have , whence
[TABLE]
By part (iii) it follows that , and thus . ∎
Thus, once the residue class of is fixed, its residue modulo is determined. Note also that conditions (ii) and (iii) are efficient to test for .
However, even with these optimizations there are pairs satisfying the first line of (5) and conclusions (i) and (iv) of the lemma. To achieve better than running time therefore requires eliminating some values of from the start. We accomplish this with a standard time-space tradeoff. To be precise, set , and let be the product of primes in the interval . By the prime number theorem, we have . If is a square, then for any prime we have
[TABLE]
where . When , we first compute this function for every residue class , and select only those residues for which (7) holds for every . By Hasse’s bound, the number of permissible residues is at most
[TABLE]
and thus the total number of values to consider is at most
[TABLE]
For the that are not eliminated in this way, we follow a similar strategy with a few other auxiliary moduli composed of larger primes, in order to accelerate the square testing. We precompute tables of cubes modulo and Legendre symbols modulo , so that testing (7) is reduced to table lookups. Only when all of these tests pass do we compute in multi-precision arithmetic [Gt16] and apply a general square test, and this happens for a vanishingly small proportion of candidate values. In fact we expect the number of Legendre tests to be bounded on average, so in total, finding all solutions with should require no more than O_{k}\bigl{(}B(\log\log{B})(\log\log\log{B})\bigr{)} table lookups and arithmetic operations on integers in .
Thus, when fits within the machine word size, we expect the running time to be nearly linear, and this is what we observe in practice for .
3. Implementation
We implemented the above algorithm in C, with a few inline assembly routines for Montgomery arithmetic [Mon85] written by Ben Buhrow [Buh19], and Kim Walisch’s primesieve library [Wal19] for enumerating prime numbers.
The algorithm is naturally split between values of with a prime factor exceeding and those that are -smooth. The former set of consumes more than two-thirds of the running time, but is more easily parallelized. We ran this part on the massively parallel cluster Bluecrystal Phase 3 at the Advanced Computing Research Centre, University of Bristol. For the smooth we used a separate small cluster of 32- and 64-core nodes.
We searched for solutions to (1) for and , and found the following:
[TABLE]
We also searched for solutions for , addressing a question of Mordell [Mor53, §6]. In this case, Cassels [Cas85] observed that cubic reciprocity forces the additional constraint , and it follows that part (i) of the lemma can be upgraded to a congruence modulo :
[TABLE]
Despite this added efficiency, we found no solutions, beyond the known single-digit solutions, with .
The total computation used approximately 23 core-years over one month of real time.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[BCFS 18] Wieb Bosma, John Cannon, Claus Fieker, and Allan Steel, Handbook of Magma functions , Sydney, 2.24 ed., 2018.
- 2[BH 15] Tim Browning and Brady Haran, The uncracked problem with 33 , 2015, https://youtu.be/wymm Cd Ld Pv M .
- 3[BPTYJ 07] Michael Beck, Eric Pine, Wayne Tarrant, and Kim Yarbrough Jensen, New integer representations as the sum of three cubes , Math. Comp. 76 (2007), no. 259, 1683–1690. MR 2299795
- 4[Bre 95] Andrew Bremner, On sums of three cubes , Number theory (Halifax, NS, 1994), CMS Conf. Proc., vol. 15, Amer. Math. Soc., Providence, RI, 1995, pp. 87–91. MR 1353923
- 5[Buh 19] Ben Buhrow, YAFU , 2019, https://sourceforge.net/projects/yafu/ .
- 6[Cas 85] J. W. S. Cassels, A note on the Diophantine equation x 3 + y 3 + z 3 = 3 superscript 𝑥 3 superscript 𝑦 3 superscript 𝑧 3 3 x^{3}+y^{3}+z^{3}=3 , Math. Comp. 44 (1985), no. 169, 265–266. MR 771049
- 7[EJ 09] Andreas-Stephan Elsenhans and Jörg Jahnel, New sums of three cubes , Math. Comp. 78 (2009), no. 266, 1227–1230. MR 2476583
- 8[Elk 00] Noam D. Elkies, Rational points near curves and small nonzero | x 3 − y 2 | superscript 𝑥 3 superscript 𝑦 2 |x^{3}-y^{2}| via lattice reduction , Algorithmic number theory (Leiden, 2000), Lecture Notes in Comput. Sci., vol. 1838, Springer, Berlin, 2000, pp. 33–63. MR 1850598
