While looking through some of my older programming projects, I found my old Egyptian Form project, which implements a greedy algorithm described by Solomon W. Golomb [1] for turning any fraction of positive integers into a sum of reciprocals of positive integers in C++. Since I want to stretch out my programming legs some more in preparation for (hopefully) entering Georgia Tech’s OMSCS program, I decided to see if there’s anything related to this that I could do some mathematics on while also programming a basic demonstration. That’s when I found the following conjecture:
Erdős–Straus Conjecture. For every integer $N\geq 2,$ there exist integers $0 \lt x\leq y \leq z$ such that $\frac{4}{N} = \frac{1}{x} + \frac{1}{y} + \frac{1}{z}.$
This conjecture is still open, but it does lend itself nicely to computational verification. And it also features some interesting optimizations that allow for huge performance gains, like taking something that originally didn’t finish after several minutes (I ended the process before it could finish) to taking just about 1 ms!
Note that this is a journey I went on on my own, so there may be better and more correct ways of computing these than what I’ll look at in this blog post. I haven’t spent much time looking at the literature for this problem, except for the identities in Mordell [2] mentioned on the Wikipedia page for the conjecture. This is just the result of a couple of days of experimentation, discovery, and programming.
Continue reading →