Showing posts with label omega. Show all posts
Showing posts with label omega. Show all posts

Sunday, 4 December 2022

Natural Numbers associated with the Eisenstein Integers

 My number associated with my diurnal age today, 26908, is a member of OEIS A118886:


 A118886

Numbers expressible as \(x^2 + x \cdot y + y^2, 0 \leq x \leq y \), in two or more ways. 
 


In the case of 26908, there are three ways viz. 
  • \(x=4 \) and \(y=162\) so that \(4^2+4 \cdot 162+162^2=26908\)
  • \(x=62\) and \(y=124\) so that \(62^2+62 \cdot 124+124^2=26908\)
  • \(x=74\) and \(y=114\) so that \(74^2+74 \cdot 114+114^2=26908\)
As stated in the OEIS comments, the numbers in this sequence represent squares of distances between two points in the triangular lattice in two or more non-trivially different ways. The triangular lattice being referred here is that formed by the so-called Eisenstein integers. Such integers are complex numbers of the form:$$z=a+ b \omega\\ \text{ where } a \text{ and } b \text{ are integers and }\\ \omega=\frac{-1+i \sqrt{3}}{2}=e^{2\pi i/3}$$Thus we have:$$a^2+ab+b^2=(a-\omega)(b-\omega^2) \text{ because }1+\omega+\omega^2=0$$Numbers of the form \(a^2-ab+b^2 \) represent the squared modulus of an Eisenstein integer:

\(|a+b\omega|^2=(a-\frac{1}{2}b)^2+\frac{3}{4}b^2=a^2-ab+b^2\)


Figure 1: from Wikipedia

Thus both numbers of the form \(a^2+ab+b^2 \) and \(a^2-ab+b^2 \) are associated with Eisenstein integers. Looking at the latter type of number we can write:$$ \begin{align} a^2+ab+b^2 &= a^2-2ab+b^2+3ab\\&=(a-b)^2+(\sqrt{3ab})^2\\&=(a-b-i\sqrt{3ab})(a-b+\sqrt{3ab}) \\&=(a-b-i\sqrt{3} \sqrt{ab})(a-b+i\sqrt{3} \sqrt{ab}) \\ &=(a-b-(2\omega+1)\sqrt{ab})(a-b+(2\omega+1)\sqrt{ab}) \\&=(a-b-\sqrt{ab}-2\sqrt{ab} \cdot \omega)(a-b+\sqrt{ab}+2\sqrt{ab} \cdot \omega) \\&=(c_1-d\omega)(c_2+d\omega)\end{align}$$which represents the product of two Eisenstein integers which could be evaluated for 26908 since we know three different sets of values for \(a\) and \(b\). For example, for the case of 
\(a=4 \) and \(b=162\), we have \( \sqrt{ab}=18\sqrt{2}\). There's a lot more that could be said here of course but the important takeaway is the association with the Eisenstein integers.

Getting back to the original OEIS A118886, we find that there are numbers that are of the form \(x^2+xy+y^2\) in eight or more ways. Such numbers include 53599, 63973, 74347, 84721 and 105469. Let's take the last number as an example. The \(x,y\) values associated with this number are (15, 317), (33, 307), (53, 295), (100, 263), (108, 257), (145, 227), (153, 220) and (187, 188).

Using a Jupyter notebook, I was able to find these numbers, in the range up to a little beyond one million, that can be represented in nine or more ways:

157339, 229957, 256711, 306397, 356083, 375193, 427063, 447811, 472017, 505141, 520429, 548359, 554827, 593047, 604513, 612157, 629356, 654199, 654493, 689871, 696787, 730639, 738283, 760627, 770133, 803257, 810901, 831649, 849121, 852943, 872053, 883519, 894691, 902629, 919191, 919828, 956137, 966511, 967603, 1013467, 1018381, 1026844, 1067857, 1101373, 1125579, 1173991, 1204567

Here is a permalink to the code being used but it will time out if run in SageMathCell. Further investigation yielded the numbers shown below that can be represented in ten or more ways. However, now that the list was considerably shorter, it was possible to test each of these numbers to see how many representations are possible and these numbers are shown in brackets after each number. As can be seen, the maximum is twelve in the range up to a little over one million.

375193 (12), 447811 (12), 520429 (12), 593047 (10), 696787 (12), 730639 (12), 738283 (12), 810901 (12), 831649 (12), 849121 (12), 883519 (12), 956137 (12), 966511 (12), 967603 (10), 1013467 (12), 1018381 (12), 1067857 (12), 1101373 (12), 1125579 (12)

SageMathCell makes it easy to determine the number of possible pairs for each number. It's just necessary to tset up the equation. Let's use 1125579 as an example:$$x^2 + x \cdot y + y^2 =1125579$$Here is a permalink to the code that solves this Diophantine equation and the output is:


Figure 2 shows the graph of this elliptic function and there are exactly twenty four points on this graph with coordinates that are integers. Why 24 when we have only 12 above? Well, a restriction had been applied such that \(x \leq y\) but no such restriction need apply for this ellipse. The case of A = (422, 785) and B = (785, 422) is shown below.


Figure 2: using GeoGebra

Wednesday, 5 January 2022

Loeschian Numbers

Loeschian numbers are numbers of the form \(x^2+xy+y^2\) where \(x\) and \(y\) are integers. I came across these today when looking for interesting properties associated with my diurnal age of 26575 days. The Wikipedia article states that:
They are a set of whole numbers, including zero, and having prime factorisation in which all primes congruent to 2 mod 3 have even powers (there is no restriction of primes congruent to 0 or 1 mod 3).

Now \(26575 =5^2 \times 1063\) and we see that \(5 \equiv 2 \hspace{-4pt} \mod{3}\) is raised to an even power while \(1063 \equiv 1 \hspace{-4pt} \mod{3}\). These numbers are relatively frequent. For example of the first 1000 integers, 277 (or 27.7%) of them are Loeschian. Some have only one representation such as \(26575 = 15^2+15 \times 155+155^2\) while others have more than one. For example:$$ \begin{align} 637 &=4^2+4 \times 23+ 23^2\\ &=7^2+7 \times 21+21^2 \\ &=12^2+12 \times 17+ 17^2 \\931&=1^2+1 \times 30+ 30^2 \\&=14^2+14 \times 21+21^2\\ &=9^2+ 9 \times 25+25^2 \end{align}$$It was in this context that the famous taxi cab number 1729 popped up again. I've written about this number before in a post titled The Original Taxi Cab Number in a New Light on December 21st 2019. In that post, I listed several of its properties but not the fact that it is a member of OEIS A198775:


 A198775

Numbers having exactly four representations by the quadratic form \(x^2+xy+y^2\) with \(0 \leq x \leq y\).


We find that the first member of this sequence is 1729:
1729, 2821, 3367, 3913, 4123, 4459, 4921, 5187, 5551, 5719, 6097, 6517, 6643, 6916, 7189, 7657, 8029, 8113, 8463, 8827, 8911, 9139, 9331, 9373, 9709, 9919, 10101, 10507, 10621, 10633, 11137, 11284, 11557, 11739, 12369, 12649, 12691, 12901, 13237, 13377, ...

It has the following representations:$$ \begin{align} 1729 &= 23^2 +23 \times 25+25^2  \\&=3^2+3 \times 40+40^2  \\ &=15^2+15 \times 32+32^2 \\  &=8^2+ 8 \times 37+37^2 \end{align}$$

The Loeschian numbers are named after August Lösch whose Wikipedia entry remarks:

Overall, Lösch made a plenitude of significant findings in the world of economics, but his main contributions were to regional economics, specifically, pioneering the location theory, spatial equilibrium analysis and hierarchical spatial systems displaying a hexagonal pattern.

Figure 1 shows the triangular or, when combined into groups of six, the hexagonal lattice formed by the Eisenstein integers which Lösch must have used in his economic analysis. 


Figure 1

It turns out the Loeschian numbers are the norms of the Eisenstein integers. In mathematics, Eisenstein integers (named after Gotthold Eisenstein), occasionally also known as Eulerian integers (after Leonhard Euler), are complex numbers of the form:$$ \begin{align} z &= x + y\omega \text{ where }x \text{ and } y \text{ are integers }\\ \text{ and where }\omega &= \frac{-1 + i \hspace{2pt} \sqrt{3}}{2} = e^{i\frac{2\pi}{^3}} \end{align}$$ The 2-norm of an Eisenstein integer is just its squared modulus, and is given by:$$ \begin{align} \left|x + y\;\!\omega\right|^2 \,&= \, (x - \tfrac{1}{2} y)^2 + \tfrac{3}{4} y^2 \, \\ &= \, x^2 - xy + y^2 \end{align} $$It can be seen that we have a \(-xy\) instead of a \(+xy\) term but then again \(x\) and \(y\) are no longer restricted to being positive. For example, if we allow \(x\) and \(y\) to be negative as well as positive, then 26575 can be written as:$$ \begin{align} 26575 &=15^2+15 \times 155+155^2 \\ &=155^2-155 \times 170+170^2 \end{align}$$So that will do it for now but there is clearly much more that could be said about Loeschian numbers. More at a later date.