3.1 Intersection of Unit Integer Circles

Recall that the density of a unit integer circle 6/π2>1/26/\pi^{2}>1/2 and therefore the intersection of two or fewer integer circles is non-zero. In fact, for three circles this is also true. In this section, we show that this intersection is dense in 2\mathbb{Z}^{2} with respect to our choice of exhaustive filtrations, and compute that density.

3.1.1 Density of Two Integer Circles with respect to \mathcal{I}

Definition 3.1.1.

Let mm be a positive integer. Denote by D(m)D(m) the relative density of the intersection of two integer unit circles with centres (0,0)(0,0) and (m,0)(m,0) with respect to the intersection of integer unit circles with centres (0,0)(0,0) and (1,0)(1,0). Namely,

D(m)=#(S1(0,0)S1(m,0))#(S1(0,0)S1(1,0)).D(m)=\frac{\#_{\mathcal{I}}\big{(}S_{1}(0,0)\cap S_{1}(m,0)\big{)}}{\#_{% \mathcal{I}}\big{(}S_{1}(0,0)\cap S_{1}(1,0)\big{)}}.
Proposition 3.1.2.

The relative density function DD is multiplicative. Furthermore, for pp\in{\mathbb{P}} and kk\in\mathbb{N} we have:

D(pk)=p21p22.D(p^{k})=\frac{p^{2}-1}{p^{2}-2}.
Theorem 3.1.3.

The density of the intersection of two integer unit circles is given by

#(S1(0,0)S1(m,0))=D(m)x(12x2).\#_{\mathcal{I}}\big{(}S_{1}(0,0)\cap S_{1}(m,0)\big{)}=D(m)\prod_{x\in{% \mathbb{P}}}\left(1-\frac{2}{x^{2}}\right).
Example 3.1.4.

In this example, we use Python to approximate the density

#(S1(0,0)S1(1,0)).\#_{\mathcal{I}}(S_{1}(0,0)\cap S_{1}(1,0)).

To see the program used for this numerical experiment, see Appendix A.

From our experiments, we see that the density is approximately 0.3219936906250593. A regular continued fraction for this number is:

0.3219936906250593=[0;3,9,2,6,1,2,31,2,1,3,2,3883].0.3219936906250593=[0;3,9,2,6,1,2,31,2,1,3,2,3883].

As 31 is a large term, this means that this term (and any following terms) contribute very little to the value of the continued fraction. Hence

0.3219936906250593[0;3,9,2,6,1,2]=4071264.0.3219936906250593\approx[0;3,9,2,6,1,2]=\frac{407}{1264}.

From Theorem 3.1.3, we have this ntersection should be

x(12x2).\prod_{x\in{\mathbb{P}}}\left(1-\frac{2}{x^{2}}\right).

From experimentation, we have

x(12x2)0.32264229458178695.\prod_{x\in{\mathbb{P}}}\left(1-\frac{2}{x^{2}}\right)\approx 0.32264229458178% 695.

Using the continued fraction, we find

0.32264229458178695=[0;3,10,16,1,3,1,1,2,5,23,1,1,8,7]0.32264229458178695=[0;3,10,16,1,3,1,1,2,5,23,1,1,8,7]
[0;3,10,16,1,3,1,1,2,5]=2093464883.\approx[0;3,10,16,1,3,1,1,2,5]=\frac{20934}{64883}.

The ratio of these values is 1.00201433747185731.0020143374718573, which is close to 11 This provides basis for a guess that the two are equal, which we will now prove.

Remark 3.1.5.

The constant p=x(12/x2)p=\prod\limits_{x\in{\mathbb{P}}}(1-2/x^{2}) is found elsewhere in mathematics.

In number theory, this constant relates to the Feller–Tornier constant . Particularly, letting CFTC_{FT}, be the Feller-Tornier constant, we have the equality:

p=2CFT1.p=2C_{FT}-1.

This equality lets us express pp in terms of the prime zeta function PP, where

P(s)=p1ps.P(s)=\sum_{p\in{\mathbb{P}}}\frac{1}{p^{s}}.

We write that

p=x(12/x2)=exp(n=12nP(2n)n).p=\prod\limits_{x\in{\mathbb{P}}}(1-2/x^{2})=\exp\left({\frac{-\sum_{n=1}^{% \infty}2^{n}P(2n)}{n}}\right).

This constant, along with 12/π2=2(6/pi2)12/\pi^{2}=2(6/pi^{2}), appears in the formula for finding the density of Petersen graphs . That is

2ζ(2)p.\frac{2}{\zeta(2)}-p.

Also, we have that the density of integers nn such that the Möbius function μ(n)=μ(n+1)=0\mu(n)=\mu(n+1)=0 is given

12ζ(2)+p.1-\frac{2}{\zeta(2)}+p.

This is interesting to notice in comparison with this research, as this formula is the difference between twice the density of one integer circle and the density of the intersection of two integer circles.

The constant pp is also known to be the density of integers nn such that both nn and n+1n+1 are not divisible by a prime number raised to the power of 2 (i.e. both nn and n+1n+1 are square-free).

Example 3.1.6.

Now, we consider a few numerical examples used to approximate DD. We used a brute-force algorithm to find and count points of intersection. For reference of the program used, see Appendix B. We compare the count of points in the intersection of unit circles with centres (0,0)(0,0) and (a,0)(a,0) with the count of points in the intersection of unit circles with centres (0,0)(0,0) and (1,0)(1,0). Then, we computed the continued fractions using an online tool to see if a simpler rational form would be a good approximatino of this ratio.

a Ratio Continued Fraction Approximation
2 0.6665676494129102 0; 1, 1, 1, 1121, 2, 8, 2, 341108 2/3
3 0.8756286853971558 0; 1, 7, 24, 1, 2, 1, 2, 6, 1, 2, 1811397 7/8
4 0.6667877277116986 0; 1, 2, 917, 2, 10, 2, 181214 2/3
5 0.9581771599373725 0; 1, 22, 1, 10, 6, 3, 7, 1, 1106357 23/24
6 0.5833309263163976 0; 1, 1, 2, 1, 1, 2884, 1, 1, 476384 7/12

The rational approximations with smaller pp and qq agree with the formula in Proposition 3.1.2.

Remark 3.1.7.

Notice that the density of intersection of two integer unit circles is a rational coefficient of the density of the intersection of two unit circles unit distance apart.

Proof of Theorem 3.1.3

To construct a proof, we use the following lemmas:

Lemma 3.1.8.

Let n>0n\in\mathbb{Z}_{>0}. Then the following expressions are equal

d|nμ(n)=[n=1].\sum_{d|n}\mu(n)=[n=1].
\comment

prove this in the presentation

Proof.

First, let n=1n=1. Then the set of divisors of nn is {1}\{1\}. Then

d|nμ(n)=μ(1)=1=[1=1].\sum_{d|n}\mu(n)=\mu(1)=1=[1=1].

Now suppose n1n\neq 1. Then n=p1r1p2r2pkrkn=p_{1}^{r_{1}}\cdot p_{2}^{r_{2}}\cdots p_{k}^{r_{k}}. Then nn has set of divisors:

{p1l1p2l2pklk:liri}.\{p_{1}^{l_{1}}\cdot p_{2}^{l_{2}}\cdots p_{k}^{l_{k}}:l_{i}\leq r_{i}\}.

Summing the Möbius function over these divisors gives

d|nμ(n)=\displaystyle\sum\limits_{d|n}\mu(n)=\, μ(1)+μ(p1)++μ(pk)\displaystyle\mu(1)+\mu(p_{1})+\ldots+\mu(p_{k})
+μ(p1p2)++μ(p1pk)++μ(pk1pk)\displaystyle+\mu(p_{1}\cdot p_{2})+\ldots+\mu(p_{1}\cdot p_{k})+\ldots+\mu(p_% {k-1}\cdot p_{k})
++μ(p1pk)\displaystyle+\ldots+\mu(p_{1}\cdots p_{k})
=\displaystyle=\, (k1)(k2)+(k3)++(1)k(kk)\displaystyle{k\choose 1}-{k\choose 2}+{k\choose 3}+\ldots+(-1)^{k}{k\choose k}
=\displaystyle=\, j=0k(1)j(kj).\displaystyle\sum\limits_{j=0}^{k}(-1)^{j}{k\choose j}.

Now we show that the above sum is equal to zero by induction for integers k2k\geq 2.

Base of induction. Let k=1k=1. Then we have

j=0k(1)j(kj)=n=01(1)n(1n)=(10)(11)=11=0.\sum_{j=0}^{k}(-1)^{j}{k\choose j}=\sum_{n=0}^{1}(-1)^{n}{1\choose n}={1% \choose 0}-{1\choose 1}=1-1=0.

Step of induction. Now suppose that this holds for some kk that

j=0k(1)j(kj)=0.\sum_{j=0}^{k}(-1)^{j}{k\choose j}=0.

Now recall the following recursive formula for binomial coefficients:

(ab)=(a1b)+(a1b1).{a\choose b}={a-1\choose b}+{a-1\choose b-1}.

To prepare for substituting this formula in our sums, we rewrite the formula for d|nμ(n)\sum_{d|n}\mu(n) as:

j=0k+1(1)j(k+1j)=(j=1k(1)j(k+1j))+(1)0(k+10)+(1)k+1(k+1k+1)\sum_{j=0}^{k+1}(-1)^{j}{k+1\choose j}=\left(\sum_{j=1}^{k}(-1)^{j}{k+1\choose j% }\right)+(-1)^{0}{k+1\choose 0}+(-1)^{k+1}{k+1\choose k+1}
=(j=1k(1)j(k+1j))+(1)0+(1)k+1=(j=1k(1)j(k+1j))+1+(1)k+1.=\left(\sum_{j=1}^{k}(-1)^{j}{k+1\choose j}\right)+(-1)^{0}+(-1)^{k+1}=\left(% \sum_{j=1}^{k}(-1)^{j}{k+1\choose j}\right)+1+(-1)^{k+1}.
j=1k(1)j(k+1j)+1+(1)k+1=\sum_{j=1}^{k}(-1)^{j}{k+1\choose j}+1+(-1)^{k+1}=
(j=1k(1)j(kj)+(1)j(kj1))+1+(1)k+1\left(\sum_{j=1}^{k}(-1)^{j}{k\choose j}+(-1)^{j}{k\choose j-1}\right)+1+(-1)^% {k+1}
=(j=1k(1)j(kj)+1)+j=1k(1)j(kj1)(1)k=\left(\sum_{j=1}^{k}(-1)^{j}{k\choose j}+1\right)+\sum_{j=1}^{k}(-1)^{j}{k% \choose j-1}-(-1)^{k}
=j=0k(kj)+j=0k1(1)j+1(kj)(1)k=j=0k(kj)j=0k1(1)j(kj)(1)k.=\sum_{j=0}^{k}{k\choose j}+\sum_{j=0}^{k-1}(-1)^{j+1}{k\choose j}-(-1)^{k}=% \sum_{j=0}^{k}{k\choose j}-\sum_{j=0}^{k-1}(-1)^{j}{k\choose j}-(-1)^{k}.

Notice that

j=0k1(1)j(kj)=j=0k(1)j(kj)(1)k(kk)=j=0k(1)j(kj)(1)k.\sum_{j=0}^{k-1}(-1)^{j}{k\choose j}=\sum_{j=0}^{k}(-1)^{j}{k\choose j}-(-1)^{% k}{k\choose k}=\sum_{j=0}^{k}(-1)^{j}{k\choose j}-(-1)^{k}.

Substituting this gives

j=0k+1(1)j(kj)=j=0k(kj)j=0k1(1)j(kj)(1)k\sum_{j=0}^{k+1}(-1)^{j}{k\choose j}=\sum_{j=0}^{k}{k\choose j}-\sum_{j=0}^{k-% 1}(-1)^{j}{k\choose j}-(-1)^{k}
=j=0k(kj)j=0k(1)j(kj)+(1)k(1)k=2j=0k(1)j(kj)=2(0)=0.=\sum_{j=0}^{k}{k\choose j}-\sum_{j=0}^{k}(-1)^{j}{k\choose j}+(-1)^{k}-(-1)^{% k}=2\sum_{j=0}^{k}(-1)^{j}{k\choose j}=2(0)=0.

Hence for n1n\neq 1, d|nμ(n)=0\sum_{d|n}\mu(n)=0, so we have

d|nμ(n)=[n=1].\sum_{d|n}\mu(n)=[n=1].

Lemma 3.1.9.

The following holds:

#(S1(0,0)S1(1,0))=x(12x).{\#_{\mathcal{I}}\big{(}S_{1}(0,0)\cap S_{1}(1,0)\big{)}}=\prod_{x\in{\mathbb{% P}}}\left(1-\frac{2}{x}\right).
Remark 3.1.10.

The expression in Lemma 3.1.9 is the constant denominator of the function DD.

Proof.

We count the points in the intersection of unit integer circles with centers (0,0),(1,0)(0,0),(1,0) within [1,R]2[1,R]^{2} for some integer RR. This is given by the sum

x,y[1,R][gcd(x,y)=1][gcd(x1,y)=1].\sum_{x,y\in[1,R]\cap\mathbb{Z}}[\gcd(x,y)=1]\cdot[\gcd(x-1,y)=1].

From Lemma 3.1.8, this is equal to

x,y[1,R]((d1|gcd(x,y)μ(d1))(d2|gcd(x1,y)μ(d2))).\sum_{x,y\in[1,R]\cap\mathbb{Z}}\left(\bigg{(}\sum_{d_{1}|\gcd(x,y)}\mu(d_{1})% \bigg{)}\cdot\bigg{(}\sum_{d_{2}|\gcd(x-1,y)}\mu(d_{2})\bigg{)}\right).

Expanding brackets:

x,y[1,R](d1|gcd(x,y)d2|gcd(x1,y)μ(d1)μ(d2)).\sum_{x,y\in[1,R]\cap\mathbb{Z}}\left(\sum_{d_{1}|\gcd(x,y)\atop{d_{2}|\gcd(x-% 1,y)}}\mu(d_{1})\mu(d_{2})\right).

We rewrite this as:

1d1,d2R(μ(d1)μ(d2)x,yR[d1|x,d2|x1,d1|y,d2|y]).\sum_{1\leq d_{1},d_{2}\leq R}\left(\mu(d_{1})\mu(d_{2})\sum_{x,y\leq R}[d_{1}% |x,d_{2}|x-1,d_{1}|y,d_{2}|y]\right).

Since d1|xd_{1}|x (ie x0modd1x\equiv 0\mod d_{1}) and d2|x1d_{2}|x-1 (ie x1modd2x\equiv 1\mod d_{2}), we have gcd(d1,d2)=1\gcd(d_{1},d_{2})=1. Hence, the statements d1|yd_{1}|y and d2|yd_{2}|y mean that the product d1d2d_{1}d_{2} is also a divisor of yy. Hence we have

d1,d2R(μ(d1)μ(d2)x,yR[x0modd1,x1modd2,y0modd1d2]).\sum_{d_{1},d_{2}\leq R}\left(\mu(d_{1})\mu(d_{2})\sum_{x,y\leq R}[x\equiv 0% \mod d_{1},x\equiv 1\mod d_{2},y\equiv 0\mod d_{1}d_{2}]\right).

From the Chinese Remainder Theorem, we have one solution for xx modulo d1d2d_{1}d_{2} and one solution for yy modulo d1d2d_{1}d_{2}.

d1,d2Rgcd(d1,d2)=1μ(d1)μ(d2)(Rd1d2+O(1))(Rd1d2+O(1)).\sum_{d_{1},d_{2}\leq R\atop\gcd(d_{1},d_{2})=1}\mu(d_{1})\mu(d_{2})\left(% \frac{R}{d_{1}d_{2}}+O(1)\right)\left(\frac{R}{d_{1}d_{2}}+O(1)\right).

Hence the number of intersection points is given \commentI get that this shoild be O(R). Ask Alexey maybe? O(Rlog2R)O(R)O(R\log^{2}R)\geq O(R) so it shouldn’t impact the proof

R2μ(d1)μ(d2)d12d22+O(Rlog2R).R^{2}\frac{\mu(d_{1})\mu(d_{2})}{d_{1}^{2}d_{2}^{2}}+O(R\log^{2}R).

Since μ\mu is multiplicative and gcd(d1,d2)=1\gcd(d_{1},d_{2})=1, this simplifies to

R2μ(d1d2)d12d22+O(Rlog2R).R^{2}\frac{\mu(d_{1}d_{2})}{d_{1}^{2}d_{2}^{2}}+O(R\log^{2}R).

To find the density, we take the limit of this as RR\to\infty and divide by R2R^{2}. Hence

#(S1(0,0)S1(1,0))=limRR2μ(d1d2)d12d22R2=d1,d2:gcd(d1,d2)=1μ(d1d2)d12d22.\#_{\mathcal{I}}(S_{1}(0,0)\cap S_{1}(1,0))=\lim_{R\to\infty}\frac{R^{2}\frac{% \mu(d_{1}d_{2})}{d_{1}^{2}d_{2}^{2}}}{R^{2}}=\sum_{d_{1},d_{2}:\gcd(d_{1},d_{2% })=1}^{\infty}\frac{\mu(d_{1}d_{2})}{d_{1}^{2}d_{2}^{2}}.

Let d=d1d2d=d_{1}d_{2}. Then we have the density is

d=1d1d2=dgcd(d1,d2)=1μ(d)d2\sum_{d=1}^{\infty}\sum_{d_{1}d_{2}=d\atop\gcd(d_{1},d_{2})=1}\frac{\mu(d)}{d^% {2}}
=d=1μ(d)d2d1d2=dgcd(d1,d2)=11.=\sum_{d=1}^{\infty}\frac{\mu(d)}{d^{2}}\sum_{d_{1}d_{2}=d\atop\gcd(d_{1},d_{2% })=1}1.

The number of divisors of dd (ie - the number of possible d1d_{1}) is given by τ\tau. However, we only count d1d_{1} such that gcd(d1,d/d1)=1\gcd(d_{1},d/d_{1})=1. If gcd(d1,d/d1)1\gcd(d_{1},d/d_{1})\neq 1 then there exists prime number pp such that p|d1p|d_{1} and p|d/d1p|d/d_{1}, so p2|dp^{2}|d. So μ(d)=0\mu(d)=0 makes no contribution to the sum. We write

d=1μ(d)τ(d)d2=p(1+μ(p)τ(p)p2+μ(p2)τ(p2)p4+μ(p3)τ(p3)p9+)\sum_{d=1}^{\infty}\frac{\mu(d)\tau(d)}{d^{2}}=\prod_{p}\left(1+\frac{\mu(p)% \tau(p)}{p^{2}}+\frac{\mu(p^{2})\tau(p^{2})}{p^{4}}+\frac{\mu(p^{3})\tau(p^{3}% )}{p^{9}}+\ldots\right)
=p(1+μ(p)τ(p)p2)=p(12p2).=\prod_{p}\left(1+\frac{\mu(p)\tau(p)}{p^{2}}\right)=\prod_{p}\left(1-\frac{2}% {p^{2}}\right).

The statement of Theorem 3.1.3 follows from Definition 3.1.1 and Lemma 3.1.9.∎

Proof of Proposition 3.1.2

The proof for Proposition 3.1.2 will be seperated into three lemmas.

Lemma 3.1.11.

Let pp be a prime number. Then

D(p)=p21p21.D(p)=\frac{p^{2}-1}{p^{2}-1}.
Proof.

First, we will prove the given formula holds for D(p)D(p), where pp is a prime number.

We count the points in the intersection of unit integer circles with centers (0,0),(1,0)(0,0),(1,0) within [1,R]2[1,R]^{2} for some integer RR. This is given by the sum

x,y[1,R][gcd(x,y)=1][gcd(xp,y)=1].\sum_{x,y\in[1,R]\cap\mathbb{Z}}[\gcd(x,y)=1]\cdot[\gcd(x-p,y)=1].

From Lemma 3.1.8, this is equal to

x,y[1,R](d1|gcd(x,y)μ(d1)d2|gcd(xp,y)μ(d2)).\sum_{x,y\in[1,R]\cap\mathbb{Z}}\left(\sum_{d_{1}|\gcd(x,y)}\mu(d_{1})\cdot% \sum_{d_{2}|\gcd(x-p,y)}\mu(d_{2})\right).

Expanding brackets, we get:

x,y[1,R](d1|gcd(x,y)(d2|gcd(xp,y)μ(d1)μ(d2))).\sum_{x,y\in[1,R]\cap\mathbb{Z}}\left(\sum_{d_{1}|\gcd(x,y)}\bigg{(}\sum_{d_{2% }|\gcd(x-p,y)}\mu(d_{1})\mu(d_{2})\bigg{)}\right).

We rewrite this as:

1d1,d2R(μ(d1)μ(d2)(x,yR[d1|x,d2|xp,d1|y,d2|y])).\sum_{1\leq d_{1},d_{2}\leq R}\left(\mu(d_{1})\mu(d_{2})\cdot\bigg{(}\sum_{x,y% \leq R}[d_{1}|x,d_{2}|x-p,d_{1}|y,d_{2}|y]\bigg{)}\right).

Since d1|xd_{1}|x (i.e. there exists integer k1k_{1} such that x=k1d1x=k_{1}d_{1}) and d2|xpd_{2}|x-p (i.e. there exists integer k2k_{2} such that x=k2d2+px=k_{2}d_{2}+p). Then we have p=k1d1k2d2p=k_{1}d_{1}-k_{2}d_{2}, so gcd(d1,d2)\gcd(d_{1},d_{2}) is a divisor of pp. Note that since pp is prime, we have that gcd(d1,d2)=1\gcd(d_{1},d_{2})=1 or gcd(d1,d2)=p\gcd(d_{1},d_{2})=p.

Note that d1|yd_{1}|y and d2|yd_{2}|y gives lcm(d1d2)|y\operatorname{lcm}(d_{1}d_{2})|y.

d1,d2R(μ(d1)μ(d2)(x,yR[x0modd1,xpmodd2,y0modlcm(d1d2)])).\sum_{d_{1},d_{2}\leq R}\left(\mu(d_{1})\mu(d_{2})\cdot\bigg{(}\sum_{x,y\leq R% }[x\equiv 0\mod d_{1},x\equiv p\mod d_{2},y\equiv 0\mod\operatorname{lcm}(d_{1% }d_{2})]\bigg{)}\right).

Evidently, there is one solution for yy modulo lcm(d1d2)\operatorname{lcm}(d_{1}d_{2}). If d1d_{1} and d2d_{2} are co-prime, then by the Chinese Remainder Theorem there is one solution for xx modulo d1d2=lcm(d1d2)d_{1}d_{2}=\operatorname{lcm}(d_{1}d_{2}). If gcd(d1,d2)=p\gcd(d_{1},d_{2})=p, let d1=a1pd_{1}=a_{1}p and d2=a2pd_{2}=a_{2}p. Then there exist integers k1,k2k_{1},k_{2} such that

k1a1p=x=k2a2p+p.k_{1}a_{1}p=x=k_{2}a_{2}p+p.

Thus

k1a1=xp=k2a2+1.k_{1}a_{1}=\frac{x}{p}=k_{2}a_{2}+1.

Since gcd(d1,d2)=p\gcd(d_{1},d_{2})=p, gcd(a1,a2)=1\gcd(a_{1},a_{2})=1, so by the Chinese Remainder Theorem we have one solution for x/px/p modulo a1a2a_{1}a_{2}. Hence there is one solution for xx modulo a1a2p=d1d2/p=lcm(d1d2)a_{1}a_{2}p=d_{1}d_{2}/p=\operatorname{lcm}(d_{1}d_{2}).

We have the number of intersection to be points:

d1,d2R,gcd(d1,d2)|pμ(d1)μ(d2)(Rlcm(d1,d2)+O(1))(Rlcm(d1,d2)+O(1)).\sum_{d_{1},d_{2}\leq R,\gcd(d_{1},d_{2})|p}\mu(d_{1})\mu(d_{2})\left(\frac{R}% {\operatorname{lcm}(d_{1},d_{2})}+O(1)\right)\left(\frac{R}{\operatorname{lcm}% (d_{1},d_{2})}+O(1)\right).

Seperating this into the two cases for gcd(d1,d2)\gcd(d_{1},d_{2}) we get

d1,d2R,gcd(d1,d2)=1μ(d1)μ(d2)(Rd1d2+O(1))(Rd1d2+O(1))+\sum_{d_{1},d_{2}\leq R,\gcd(d_{1},d_{2})=1}\mu(d_{1})\mu(d_{2})\left(\frac{R}% {d_{1}d_{2}}+O(1)\right)\left(\frac{R}{d_{1}d_{2}}+O(1)\right)+
d1,d2R,gcd(d1,d2)=pμ(d1)μ(d2)(Rpd1d2+O(1))(Rpd1d2+O(1)).\sum_{d_{1},d_{2}\leq R,\gcd(d_{1},d_{2})=p}\mu(d_{1})\mu(d_{2})\left(\frac{Rp% }{d_{1}d_{2}}+O(1)\right)\left(\frac{Rp}{d_{1}d_{2}}+O(1)\right).

In the second term, let d1=aipid_{1}=a_{i}p_{i}. Then

d1,d2R,gcd(d1,d2)=1μ(d1)μ(d2)(Rd1d2+O(1))(Rd1d2+O(1))+\sum_{d_{1},d_{2}\leq R,\gcd(d_{1},d_{2})=1}\mu(d_{1})\mu(d_{2})\left(\frac{R}% {d_{1}d_{2}}+O(1)\right)\left(\frac{R}{d_{1}d_{2}}+O(1)\right)+
a1,a2R/p,gcd(a1,a2)=1μ(pa1)μ(pa2)(Ra1a2p+O(1))(Rpa1a2p+O(1)).\sum_{a_{1},a_{2}\leq R/p,\gcd(a_{1},a_{2})=1}\mu(pa_{1})\mu(pa_{2})\left(% \frac{R}{a_{1}a_{2}p}+O(1)\right)\left(\frac{Rp}{a_{1}a_{2}p}+O(1)\right).

Since μ(pa1)=μ(a1)\mu(pa_{1})=-\mu(a_{1}) if gcd(a1,p)=1\gcd(a_{1},p)=1 and 0 otherwise. Hence

a1,a2R/p,gcd(a1,a2)=1μ(pa1)μ(pa2)(Ra1a2p+O(1))2\sum_{a_{1},a_{2}\leq R/p,\gcd(a_{1},a_{2})=1}\mu(pa_{1})\mu(pa_{2})\left(% \frac{R}{a_{1}a_{2}p}+O(1)\right)^{2}
=a1,a2R/p,gcd(a1,a2)=1,gcd(ai,p)=1μ(a1)μ(a2)(Ra1a2p+O(1))2.=\sum_{a_{1},a_{2}\leq R/p,\gcd(a_{1},a_{2})=1,\gcd(a_{i},p)=1}\mu(a_{1})\mu(a% _{2})\left(\frac{R}{a_{1}a_{2}p}+O(1)\right)^{2}.

Rather than only counting aia_{i} coprime with pp, we count all terms and subtract the non-comprime ones afterwards:

a1,a2R/p,gcd(a1,a2)=1\displaystyle\sum_{a_{1},a_{2}\leq R/p,\gcd(a_{1},a_{2})=1} μ(pa1)μ(pa2)(Ra1a2p+O(1))2\displaystyle\mu(pa_{1})\mu(pa_{2})\left(\frac{R}{a_{1}a_{2}p}+O(1)\right)^{2}
\displaystyle- b1R/p2,a2R/pgcd(b1,a2)=1\displaystyle\sum_{b_{1}\leq R/p^{2},a_{2}\leq R/p\gcd(b_{1},a_{2})=1} μ(pb1)μ(a2)(Rb1a2p2+O(1))2\displaystyle\mu(pb_{1})\mu(a_{2})\left(\frac{R}{b_{1}a_{2}p^{2}}+O(1)\right)^% {2}
\displaystyle- a1R/p,b2R/p2gcd(a1,b2)=1\displaystyle\sum_{a_{1}\leq R/p,b_{2}\leq R/p^{2}\gcd(a_{1},b_{2})=1} μ(a1)μ(pb2)(Ra1b2p2+O(1))2.\displaystyle\mu(a_{1})\mu(pb_{2})\left(\frac{R}{a_{1}b_{2}p^{2}}+O(1)\right)^% {2}.

Let

A\displaystyle A =\displaystyle= a1,a2R/p,gcd(a1,a2)=1μ(pa1)μ(pa2)(Ra1a2p+O(1))2;\displaystyle\sum_{a_{1},a_{2}\leq R/p,\gcd(a_{1},a_{2})=1}\mu(pa_{1})\mu(pa_{% 2})\left(\frac{R}{a_{1}a_{2}p}+O(1)\right)^{2};
B\displaystyle B =\displaystyle= b1R/p2,a2R/pgcd(b1,a2)=1μ(pb1)μ(a2)(Rb1a2p2+O(1))2.\displaystyle\sum_{b_{1}\leq R/p^{2},a_{2}\leq R/p\gcd(b_{1},a_{2})=1}\mu(pb_{% 1})\mu(a_{2})\left(\frac{R}{b_{1}a_{2}p^{2}}+O(1)\right)^{2}.

Then we the number of points in the intersection while gcd(d1,d2)=p\gcd(d_{1},d_{2})=p is A2BA-2B, as the two subtracted terms are the same up to a change of iterative variable.

Using the same method as before, notice that

B\displaystyle B =\displaystyle= b1R/p2,a2R/pgcd(b1,a2)=1μ(p)μ(b1)μ(a2)(Rb1a2p2+O(1))2\displaystyle\sum_{b_{1}\leq R/p^{2},a_{2}\leq R/p\gcd(b_{1},a_{2})=1}\mu(p)% \mu(b_{1})\mu(a_{2})\left(\frac{R}{b_{1}a_{2}p^{2}}+O(1)\right)^{2}
\displaystyle- c1R/p3,a2R/pgcd(c1,a2)=1μ(p)μ(pc1)μ(a2)(Rc1a2p3+O(1))2\displaystyle\sum_{c_{1}\leq R/p^{3},a_{2}\leq R/p\gcd(c_{1},a_{2})=1}\mu(p)% \mu(pc_{1})\mu(a_{2})\left(\frac{R}{c_{1}a_{2}p^{3}}+O(1)\right)^{2}
\displaystyle- a^1R/p2,b2R/p2gcd(c1,a2)=1μ(p)μ(b1)μ(pb2)(Rb1b2p3+O(1))2.\displaystyle\sum_{\hat{a}_{1}\leq R/p^{2},b_{2}\leq R/p^{2}\gcd(c_{1},a_{2})=% 1}\mu(p)\mu(b_{1})\mu(pb_{2})\left(\frac{R}{b_{1}b_{2}p^{3}}+O(1)\right)^{2}.

Here, μ(p)=1\mu(p)=-1. Up to a change in variable between bb and cc, the last two subtracted terms are identical. Hence,

B=\displaystyle B= \displaystyle- b1R/p2,a2R/pgcd(b1,a2)=1μ(b1)μ(a2)(Rb1a2p2+O(1))2\displaystyle\sum_{b_{1}\leq R/p^{2},a_{2}\leq R/p\gcd(b_{1},a_{2})=1}\mu(b_{1% })\mu(a_{2})\left(\frac{R}{b_{1}a_{2}p^{2}}+O(1)\right)^{2}
+\displaystyle+ 2c1R/p3,a2R/pgcd(c1,a2)=1μ(pc1)μ(a2)(Rc1a2p3+O(1))2.\displaystyle 2\sum_{c_{1}\leq R/p^{3},a_{2}\leq R/p\gcd(c_{1},a_{2})=1}\mu(pc% _{1})\mu(a_{2})\left(\frac{R}{c_{1}a_{2}p^{3}}+O(1)\right)^{2}.

To find density, we take the limit as RR goes to infinity of the number of points divided by R2R^{2}.

limRAR2=limRgcd(d1,d2)=1,d1,d2Rμ(d1)μ(d2)d12d22p2+O(Rlog2R)=1p2x(12x).\lim_{R\to\infty}\frac{A}{R^{2}}=\lim_{R\to\infty}\sum_{\gcd(d_{1},d_{2})=1,d_% {1},d_{2}\leq R}\frac{\mu(d_{1})\mu(d_{2})}{d_{1}^{2}d_{2}^{2}p^{2}}+O(R\log^{% 2}R)=\frac{1}{p^{2}}\prod_{x\in{\mathbb{P}}}\left(1-\frac{2}{x}\right).
limRBR2=1p2(A2B)R2.\lim_{R\to\infty}\frac{B}{R^{2}}=-\frac{1}{p^{2}}\frac{(A-2B)}{R^{2}}.

Substituting the expression for BB into itself repeatedly, we find the density while gcd(d1,d2)=p\gcd(d_{1},d_{2})=p is:

n=12n1p2nx(12x)\sum_{n=1}^{\infty}\frac{2^{n-1}}{p^{2n}}\cdot\prod_{x\in{\mathbb{P}}}\left(1-% \frac{2}{x}\right)

Thus, the density of the intersection of the circles is:

(1+n=12n1p2n)x(12x)=p21p22x(12x).\left(1+\sum_{n=1}^{\infty}\frac{2^{n-1}}{p^{2n}}\right)\prod_{x\in{\mathbb{P}% }}\left(1-\frac{2}{x}\right)=\frac{p^{2}-1}{p^{2}-2}\prod_{x\in{\mathbb{P}}}% \left(1-\frac{2}{x}\right).

Lemma 3.1.12.

Let pp be a prime number and kk a positive integer. Then

D(pk)=D(p)=p21p22.D(p^{k})=D(p)=\frac{p^{2}-1}{p^{2}-2}.
Proof.

Consider plp^{l} with l>1l>1. Then μ(pl)=0\mu(p^{l})=0, so when gcd(d1,d2)=pl\gcd(d_{1},d_{2})=p^{l} we get μ(d1)=μ(d2)=0\mu(d_{1})=\mu(d_{2})=0. Hence D(pk)D(p)=0D(p^{k})-D(p)=0, so D(pk)=D(p).D(p^{k})=D(p).

Now we show that DD is a multiplicative function.

Lemma 3.1.13.

The relative density function DD is multiplicative. That is, for integers m,nm,n with no shared prime factors, we have that

D(mn)=D(m)D(n).D(mn)=D(m)\cdot D(n).
Proof.

Consider the integer circles with centres at (0,0)(0,0) and (0,mn)(0,mn) with gcd(m,n)=1\gcd(m,n)=1. We have

D(mn)/#(S1(0,0)S1(1,0))=d1,d2:gcd(d1,d2)|mnμ(d1)μ(d2)lcm(d1d2)2.D(mn)/\#_{\mathcal{I}}(S_{1}(0,0)\cap S_{1}(1,0))=\sum_{d_{1},d_{2}:\gcd(d_{1}% ,d_{2})|mn}^{\infty}\frac{\mu(d_{1})\mu(d_{2})}{\operatorname{lcm}(d_{1}d_{2})% ^{2}}.

Since gcd(d1,d2)\gcd(d_{1},d_{2}) divides mnmn and hence both d1d_{1} an d2d_{2} divide mnmn. We write

D(mn)/#(S1(0,0)S1(1,0))=d1|mn,d2|mnμ(d1)μ(d2)lcm(d1,d2)2.D(mn)/\#_{\mathcal{I}}(S_{1}(0,0)\cap S_{1}(1,0))=\sum_{d_{1}|mn,d_{2}|mn}% \frac{\mu(d_{1})\mu(d_{2})}{\operatorname{lcm}(d_{1},d_{2})^{2}}.

Let d1=r1s1,d2=r2s2d_{1}=r_{1}s_{1},d_{2}=r_{2}s_{2} with ri|mr_{i}|m and si|ns_{i}|n. Notice that gcd(ri,si)=1\gcd(r_{i},s_{i})=1. Then

D(mn)/#(S1(0,0)S1(1,0))=ri|m,si|nμ(r1s1)μ(r2s2)lcm(r1s1,r2s2)2.D(mn)/\#_{\mathcal{I}}(S_{1}(0,0)\cap S_{1}(1,0))=\sum_{r_{i}|m,s_{i}|n}\frac{% \mu(r_{1}s_{1})\mu(r_{2}s_{2})}{\operatorname{lcm}(r_{1}s_{1},r_{2}s_{2})^{2}}.

Notice that lcm(r1s1,r2s2)=lcm(r1,r2)lcm(s1,s2)\operatorname{lcm}(r_{1}s_{1},r_{2}s_{2})=\operatorname{lcm}(r_{1},r_{2})\cdot% \operatorname{lcm}(s_{1},s_{2}) and μ(risi)=μ(ri)μ(si)\mu(r_{i}s_{i})=\mu(r_{i})\mu(s_{i}) since rir_{i} and sis_{i} are relatively prime. Then we have

ri|m,si|nμ(r1)μ(r2)μ(s1)μ(s2)lcm(r1,r2)2lcm(s1,s2)2=ri|m,μ(r1)μ(r2)lcm(r1,r2)2si|nμ(s1)μ(s2)lcm(s1,s2)2=.\sum_{r_{i}|m,s_{i}|n}\frac{\mu(r_{1})\mu(r_{2})\mu(s_{1})\mu(s_{2})}{% \operatorname{lcm}(r_{1},r_{2})^{2}\operatorname{lcm}(s_{1},s_{2})^{2}}=\sum_{% r_{i}|m,}\frac{\mu(r_{1})\mu(r_{2})}{\operatorname{lcm}(r_{1},r_{2})^{2}}\cdot% \sum_{s_{i}|n}\frac{\mu(s_{1})\mu(s_{2})}{\operatorname{lcm}(s_{1},s_{2})^{2}}=.

Hence

D(mn)=D(m)D(n).D(mn)=D(m)\cdot D(n).

Combined, the statements of Lemmas 3.1.11, 3.1.12 and 3.1.13 give the statement of the proposition. ∎

Example 3.1.14.

The frequency of points in the intersection at a given y value, for x values 0x<y0\leq x<y is given as

f(y)=f(piri)=piri1(pi2).f(y)=f\left(\prod p_{i}^{r_{i}}\right)=\prod p_{i}^{r_{i}-1}(p_{i}-2).

3.1.2 Density of Intersection of Three Integer Circles

A natural extension of the previous subsection is to ask about the intersection of three integer circles. We consider a numerical example. Our methods are more clearly outlined in Appendix C.

Example 3.1.15.

In this example, we consider the density of integer unit circles with centres (0,0)(0,0), (1,0)(-1,0) and (1,0)(1,0). From our Python approximation, we find

#(S1(1,0)S1(0,0)S1(1,0))0.2510066561587017.\#_{\mathcal{I}}\big{(}S_{1}(-1,0)\cap S_{1}(0,0)\cap S_{1}(1,0)\big{)}\approx 0% .2510066561587017.

By considering continued fractions, observe

0.2510066561587017=[0;3,1,61,2,1,31,1,16,12,23,1][0;3,1]=14.0.2510066561587017=[0;3,1,61,2,1,31,1,16,12,23,1]\approx[0;3,1]=\frac{1}{4}.

We compared this number to some formulae derived from the one we found in Theorem 3.1.3. Only one such experiment produced a result of potential interest. In particular we found:

p(13p2)0.1254917624198063.\prod_{p\in{\mathbb{P}}}\left(1-\frac{3}{p^{2}}\right)\approx 0.12549176241980% 63.

Using continued fractions, notice:

0.1254917624198063=[0;7,1,30,1,8,1,5,1,1,1,5,1,1,1,4,1,4,2][0;7,1]=18.0.1254917624198063=[0;7,1,30,1,8,1,5,1,1,1,5,1,1,1,4,1,4,2]\approx[0;7,1]=% \frac{1}{8}.

The experiment provides the following guess:

#(S1(1,0)S1(0,0)S1(1,0))=2p(13p2).\#_{\mathcal{I}}\big{(}S_{1}(-1,0)\cap S_{1}(0,0)\cap S_{1}(1,0)\big{)}=2\prod% _{p\in{\mathbb{P}}}\left(1-\frac{3}{p^{2}}\right).

This could lead to a potential generic formula for intersection of unit integer circles on a line, with distance 1 between their centres.

Example 3.1.16.

Now, consider the density

#(S1(0,0)S1(1,0)S1(0,1)).\#_{\mathcal{I}}\big{(}S_{1}(0,0)\cap S_{1}(1,0)\cap S_{1}(0,1)\big{)}.

From Python experimentation (for more details, see Appendix D), we find that

#(S1(0,0)S1(1,0)S1(0,1))0.12548190236470805.\#_{\mathcal{I}}\big{(}S_{1}(0,0)\cap S_{1}(1,0)\cap S_{1}(0,1)\big{)}\approx 0% .12548190236470805.

Using the same numerical approximation as in Example 3.1.15, observe that

0.12548190236470805p(13p2)0.999921428666646=[0;1,12726,3,2,7,1,17,1,5].\frac{0.12548190236470805}{\prod\limits_{p\in{\mathbb{P}}}\left(1-\frac{3}{p^{% 2}}\right)}\approx 0.999921428666646=[0;1,12726,3,2,7,1,17,1,5].

This number is very close to 1, so we guess that

#(S1(0,0)S1(1,0)S1(0,1))=p(13p2).\#_{\mathcal{I}}\big{(}S_{1}(0,0)\cap S_{1}(1,0)\cap S_{1}(0,1)\big{)}=\prod% \limits_{p\in{\mathbb{P}}}\left(1-\frac{3}{p^{2}}\right).

3.1.3 Density of Intersection with respect to \mathcal{B}

In this subsection, we investigate the density of the same sets as studied before with respect to a different exhaustive filtration. Specifically, we study with respect to the butterfly filtration generated by (1,1)(1,1).

Counting the intersection of integer circles at a given horizontal slice

This method for counting the intersection of circles, we will consider the points (x,y)(x,y) on the intersection of unit integer circles for a given value yy.

Definition 3.1.17.

A horizontal-slice counting function CsC_{s} is a multiplicative function belonging to the family defined by the following rule:

Ck(pm)=pm1(pk).C_{k}(p^{m})=p^{m-1}(p-k).
Theorem 3.1.18.

Consider integer unit circles with centres (a1,0)(a_{1},0), (a2,0)(an,0)(a_{2},0)\ldots(a_{n},0). Then the number of intersection points of these integer circles on a horizontal slice y=consty=const with 0x<y0\leq x<y is given by CkC_{k} where kk is the size of the set {[a1]p,,[an]p}\{[a_{1}]_{p},\ldots,[a_{n}]_{p}\}.

Proof.

First we will consider the case where m=1m=1.

For a prime pp, if gcd(a,p)1\gcd(a,p)\not=1 then a0modpa\equiv 0\mod p.

If a point (x,p)(x,p) is in the intersection of the circles then

gcd(xa1,p)=gcd(xa2,p)=gcd(xan,p)=1.\gcd(x-a_{1},p)=\gcd(x-a_{2},p)\ldots=\gcd(x-a_{n},p)=1.

To find the excluded points, we look for points when at least one of xaj0modp.x-a_{j}\equiv 0\mod p.
As we are dealing with remainders modulo pp, we can reduce every element modulo pp, so instead of having nn different cases, we only deal with kk different cases, since we only have kk distinct values for aja_{j} modulo pp.
Hence, for values 0x<p0\leq x<p we have kk excluded points, so the number of elements in the intersection for this range of xx is given as

f(p)=pk.f(p)=p-k.

For m1m\neq 1, the exclusion is still going to be given when xaj0modpx-a_{j}\equiv 0\mod p, but we are interested in the number of unique solutions modulo pmp^{m}.
Since pm=(pm1)pp^{m}=(p^{m-1})p, we see that we have pm1p^{m-1} as many solutions the slice at (which slice). Hence, we see that f(pm)=Ck(pm)f(p^{m})=C_{k}(p^{m}).

Now let us show that ff is a multiplicative, which will then show that f(y)=Ck(y)f(y)=C_{k}(y) for ypmy\neq p^{m}. We will use the Chinese Remainder Theorem to do this.

Let m,nm,n be two coprime positive integers. Now let us consider the intersection of integer circles and the line y=mny=mn. Recall that if gcd(x,mn)=1\gcd(x,mn)=1, then gcd(x,m)=1\gcd(x,m)=1 and gcd(x,n)=1\gcd(x,n)=1.

When we count the intersection of circles on row mnmn, we have that gcd(xai,mn)=1\gcd(x-a_{i},mn)=1. This means that gcd(xai,m)=gcd(xai,n)=1.\gcd(x-a_{i},m)=\gcd(x-a_{i},n)=1.

Considering remainders modulo mnmn, we have nf(m)nf(m) solutions for gcd(xai,m)=1\gcd(x-a_{i},m)=1 and mf(n)mf(n) solutions for gcd(xai,n)=1\gcd(x-a_{i},n)=1. Using the Chinese Remainder Theorem, we get the number of solutions to these taken simultaneously is given

F(mn)=f(m)f(n).F(mn)=f(m)f(n).

Hence ff is multiplicative, so f(mn)=Ck(mn)f(mn)=C_{k}(mn). ∎

Notice that for y>any>a_{n}, the number of residues modulo yy is constant. Particuarly, we have k=nk=n.

Corollary 3.1.19.

In case of convergency, the density of the intersection of unit integer circles with centres on the line y=0y=0 is given by the following

#(1,1)(S1(0,0)S1(0,a1)S1(0,ak))=limj(2j2+jy=1jCn(y)).\#_{\mathcal{B}(1,1)}\big{(}S_{1}(0,0)\cap S_{1}(0,a_{1})\cap\ldots\cap S_{1}(% 0,a_{k})\big{)}=\lim_{j\to\infty}\left(\frac{2}{j^{2}+j}\sum_{y=1}^{j}C_{n}(y)% \right).
Proof.

Consider the filtration (1,1)=(Bn)\mathcal{B}(1,1)=(B_{n}). Due do integer congruence, the proportion of points in the intersection of integer circles in BnB_{n} is equal to the proportion of points in the triangle between the line y=xy=x, y=ny=n and x=0x=0.

The number of intersection points for (x,y)(x,y) with 0x<y0\leq x<y for constant yy is given as Ck(y)C_{k}(y).

Clearly, the number of intersection points for (x,y)(x,y) with 0x<y0\leq x<y and 0y<k0\leq y<k is the sum of ff from 11 to kk, and considering the origin, which is not included in our circle. So we have the frequency given as

y=1kCn(y).\sum_{y=1}^{k}C_{n}(y).

To find the density, we divide the frequency by the size of the larger subset \mathcal{B}.

The number of lattice points for (x,y)(x,y) with 0x<y0\leq x<y for constant yy is clearly equal to yy. So, the number of lattice points for 1y<k1\leq y<k is given as

y=1ky=k2+k2.\sum_{y=1}^{k}y=\frac{k^{2}+k}{2}.

Dividing the number of intersection points by the number of lattice points gives that the density is

limk2y=1kCn(y)k2+k.\lim_{k\to\infty}\frac{2\sum_{y=1}^{k}C_{n}(y)}{k^{2}+k}.

3.1.4 Comparison between #\#_{\mathcal{I}} and #(1,1)\#_{\mathcal{B}(1,1)}

Example 3.1.20.

In this example, let SS be the intersection of unit integer circles with centres (0,0)(0,0) and (1,0)(1,0).
Using numerical approximations, we compared the density of the intersection of integer circles centred at (0,0)(0,0) and (1,0)(1,0) with respect to the exhaustive filtrations \mathcal{I} and (1,1)\mathcal{B}(1,1). We found that

#S#(1,1)S0.9977758007117438=[0;1,448,1,1,1,1,868827846].\frac{\#_{\mathcal{I}}S}{\#_{\mathcal{B}(1,1)S}}\approx 0.9977758007117438=[0;% 1,448,1,1,1,1,868827846].

The third rerm, 448. is quite large, so we can remove it from the continued fraction as a guess that it comes from approximation error. Then

#S#(1,1)S[0;1]=1;\frac{\#_{\mathcal{I}}S}{\#_{\mathcal{B}(1,1)S}}\approx[0;1]=1;