Wiki
Wiki

Research notes on every problem, and a library of the papers behind them. Built from the open erdos repository.

Updated


We prove L3 for its displayed set AA. Throughout, a power qq means 3k3^k with integer k≥0k\ge0. Membership in RMR_M means positive-integer membership in one of the residue classes 0,1,20,1,2 modulo MM, with repetitions removed. Counting functions use the closed real cutoff convention A(X)=∣A∩[1,X]∣A(X)=|A\cap[1,X]|.

Bounded square roots

Fix an integer u≡1(mod3)u\equiv1\pmod3. For each power qq, there is a root mqm_q with

0≤mq≤q,mq2≡u(mod2q).(6)0\le m_q\le q,\qquad m_q^2\equiv u\pmod{2q}. \tag{6}

At adjacent powers qq and Q=3qQ=3q, the bounded roots satisfy

mQ∈{mq, 2q−mq, 2q+mq}.(7)m_Q\in\{m_q,\ 2q-m_q,\ 2q+m_q\}. \tag{7}

Here are complete elementary justifications. Modulo 33, the roots of uu are exactly 11 and −1-1. Suppose q=3kq=3^k with k≥1k\ge1, and zz is a root modulo qq. Write z2−u=dqz^2-u=dq. The three possible lifts of its residue class modulo 3q3q are z+hqz+hq for h=0,1,2h=0,1,2. Their square congruence is equivalent to

d+2zh≡0(mod3),d+2zh\equiv0\pmod3,

because 3∣q3\mid q. Since z2≡1(mod3)z^2\equiv1\pmod3, the coefficient 2z2z is nonzero modulo 33. Exactly one hh solves the displayed congruence. Every root modulo 3q3q reduces to a root modulo qq. Induction therefore gives exactly two roots modulo every q≥3q\ge3. They are distinct sign classes: a root is not divisible by 33, so it cannot equal its negative modulo qq.

For any root class modulo the odd integer qq, the two classes above it modulo 2q2q have opposite parity. Choose the one with parity uu. Its square is then congruent to uu modulo both qq and 22, hence modulo 2q2q: if an integer is divisible by qq and by 22, it is divisible by 2q2q because qq is odd. Conversely every root modulo 2q2q arises this way. Thus for q≥3q\ge3 there are exactly two sign classes modulo 2q2q. Neither is represented by 00 or qq, since those integers are divisible by 33. For either root representative z∈[0,2q)z\in[0,2q), the smaller of zz and 2q−z2q-z is the unique root mqm_q with 0<mq<q0<m_q<q.

A root mQ∈[0,3q]m_Q\in[0,3q] reduces modulo 2q2q to mqm_q or −mq-m_q. For 0<mq<q0<m_q<q, all representatives of these classes in [0,3q][0,3q] are exactly mq,2q−mq,2q+mqm_q,2q-m_q,2q+m_q. This proves (7) when q≥3q\ge3.

For q=1q=1, put m1=0m_1=0 if uu is even and m1=1m_1=1 if uu is odd. These are precisely the bounded roots modulo 22. An even $u\equiv1 \pmod3$ is 44 modulo 66 and has bounded root m3=2m_3=2; an odd such uu is 11 modulo 66 and has bounded root m3=1m_3=1. Each belongs to the set on the right of (7). This supplies the first transition as well as the starting case of (6).

Catching a positive residual

If aa is an integer, r∈{0,1,2}r\in\{0,1,2\}, and

0<a≤4q2,a≡r(mod2q),(8)0<a\le4q^2,\qquad a\equiv r\pmod{2q}, \tag{8}

then a∈Aa\in A. To see this, list the closed outer intervals at scales 1,3,…,q1,3,\ldots,q. The upper endpoint 4s24s^2 at scale ss equals the lower endpoint 4(3s)2/94(3s)^2/9 at scale 3s3s. Their union is [4/9,4q2][4/9,4q^2], which contains every positive integer at most 4q24q^2. Choose a scale s≤qs\le q whose interval contains aa. Since 2s2s divides 2q2q, congruence (8) implies a≡r(mod2s)a\equiv r\pmod{2s}. The outer annulus at ss contains aa. This argument includes shared endpoints and s=1s=1.

Coverage of every positive target

At scale q=1q=1, R2R_2 contains every positive integer and the outer interval contains 1,2,3,41,2,3,4. Thus these four targets have the form 02+a0^2+a, and 5=12+45=1^2+4.

Fix an integer t≥6t\ge6. Choose the unique r∈{0,1,2}r\in\{0,1,2\} with r≡t−1(mod3)r\equiv t-1\pmod3, and put u=t−ru=t-r. Apply (6) and (7) to this uu, and write

aq=t−mq2.(9)a_q=t-m_q^2. \tag{9}

Each aqa_q is an integer congruent to rr modulo 2q2q. If any aqa_q lies in [4q2/9,4q2][4q^2/9,4q^2], it belongs to the outer annulus at qq and represents tt. We may therefore assume that no aqa_q lies in that closed interval, and produce another representation.

Since m1∈{0,1}m_1\in\{0,1\}, we have a1≥5>4a_1\ge5>4. Also as≤ta_s\le t for every scale ss. There is consequently a least power Q>1Q>1 such that aQ≤4Q2a_Q\le4Q^2. Put Q=3qQ=3q. Minimality gives aq>4q2a_q>4q^2. At scale QQ the residual is at most the outer upper endpoint, and by assumption it is outside the closed outer interval. Hence it lies strictly below the lower endpoint:

aq>4q2,aQ<4Q29=4q2.(10)a_q>4q^2,\qquad a_Q<\frac{4Q^2}{9}=4q^2. \tag{10}

If aQ>0a_Q>0, it satisfies (8) at scale qq, because its congruence modulo 2Q2Q descends modulo 2q2q. It then belongs to AA and represents tt. We may thus assume aQ≤0a_Q\le0, including the possibility aQ=0a_Q=0.

Write m=mqm=m_q and M=mQM=m_Q. Formula (7) lists all possibilities for MM. The choice M=mM=m contradicts (10). The choice M=2q−mM=2q-m would imply

aQ=aq−4q2+4qm>0,a_Q=a_q-4q^2+4qm>0,

contrary to aQ≤0a_Q\le0. Therefore M=2q+mM=2q+m. Define the alternative residual

e=t−(2q−m)2=aq−4q2+4qm>0.(11)e=t-(2q-m)^2=a_q-4q^2+4qm>0. \tag{11}

The integer 2q−m2q-m is a root of uu modulo 2q2q, so e≡r(mod2q)e\equiv r\pmod{2q}. If e≤4q2e\le4q^2, (8) gives e∈Ae\in A and t=(2q−m)2+et=(2q-m)^2+e. It remains to treat e>4q2e>4q^2.

Set

b=t−(q−m)2=aq+2qm−q2.(12)b=t-(q-m)^2=a_q+2qm-q^2. \tag{12}

Because q−m=Q−Mq-m=Q-M and M2≡u(modQ)M^2\equiv u\pmod Q, we have b≡r(modQ)b\equiv r\pmod Q. Moreover (10) and (11) give

b=aq+e2+q2>5q2.(13)b=\frac{a_q+e}{2}+q^2>5q^2. \tag{13}

The inequality aQ=aq−4q2−4qm≤0a_Q=a_q-4q^2-4qm\le0 gives the upper bound

b≤3q2+6qm≤9q2,(14)b\le3q^2+6qm\le9q^2, \tag{14}

where the last step uses m≤qm\le q. Thus

b∈RQ∩[5Q29,Q2]⊆A.b\in R_Q\cap\left[\frac{5Q^2}{9},Q^2\right]\subseteq A.

Finally q−m≥0q-m\ge0, so (12) is a representation by a nonnegative square and an element of AA. The argument allowed equality in (14), and allowed aQ=0a_Q=0 throughout its final branch. Together with the five initial targets, it proves positive-target coverage.

Exact cycles and their endpoint conventions

For each power qq, let

Cq=(Lq,Uq]∩Z>0,Lq=4q29,Uq=4q2.(15)C_q=(L_q,U_q]\cap\mathbb Z_{>0},\qquad L_q=\frac{4q^2}{9},\qquad U_q=4q^2. \tag{15}

The cycles are pairwise disjoint and partition the positive integers: Uq=L3qU_q=L_{3q}, their union as real intervals is (4/9,∞)(4/9,\infty), and every positive integer exceeds 4/94/9. The first cycle is C1={1,2,3,4}C_1=\{1,2,3,4\}, all of which belong to AA.

Fix q≥3q\ge3. An outer annulus from a smaller scale has upper endpoint at most LqL_q and cannot meet CqC_q. An outer annulus from a larger scale has lower endpoint at least UqU_q; only the next scale can meet CqC_q, and only at UqU_q. That endpoint already lies in the outer annulus at qq, because Uq=4q2≡0(mod2q)U_q=4q^2\equiv0\pmod{2q}. It introduces no extra member. Every inner annulus from a smaller scale ends at most at q2/9<Lqq^2/9<L_q. Every inner annulus from a larger scale starts at least at 5q2>Uq5q^2>U_q. Thus on CqC_q the literal union defining AA has exactly the membership given by its two annuli at scale qq.

Put Bq=5q2/9B_q=5q^2/9 and Dq=q2D_q=q^2. These are integers for q≥3q\ge3. Since R2q⊆RqR_{2q}\subseteq R_q, we obtain the following disjoint description, including all internal endpoints:

A∩Cq=(R2q∩(Lq,Bq))∪˙(Rq∩[Bq,Dq])∪˙(R2q∩(Dq,Uq]).(16)\begin{aligned} A\cap C_q={}& \bigl(R_{2q}\cap(L_q,B_q)\bigr)\\ &\mathbin{\dot\cup} \bigl(R_q\cap[B_q,D_q]\bigr)\\ &\mathbin{\dot\cup} \bigl(R_{2q}\cap(D_q,U_q]\bigr). \end{aligned} \tag{16}

The point LqL_q belongs to the preceding cycle and is deliberately excluded from (16). For instance, at q=3q=3 it is 4∈A4\in A, although 4∉R64\notin R_6. Its contribution is retained in the prefix count below. For integer endpoints L<UL<U, the corresponding half-open prefix identity would be

A∩[0,U)=(A∩[0,L))∪˙(A∩{L})∪˙(A∩(L,U−1]).A\cap[0,U) =(A\cap[0,L))\mathbin{\dot\cup}(A\cap\{L\}) \mathbin{\dot\cup}(A\cap(L,U-1]).

Replacing its final piece by A∩(L,U]A\cap(L,U] changes the right endpoint. Below we use closed prefixes throughout, so the exact new piece is A∩(Lq,X]A\cap(L_q,X], and it is the full cycle only when X=UqX=U_q.

Periodic counts with a uniform error

For a residue rr modulo an integer M≥1M\ge1 and real a≤ba\le b, the number of integers congruent to rr in (a,b](a,b] is exactly

⌊b−rM⌋−⌊a−rM⌋.(17)\left\lfloor\frac{b-r}{M}\right\rfloor -\left\lfloor\frac{a-r}{M}\right\rfloor. \tag{17}

It differs from (b−a)/M(b-a)/M by at most 11. When M≥3M\ge3, the three residues defining RMR_M are distinct. Summing (17) shows that their count in a positive interval (a,b](a,b] differs from 3(b−a)/M3(b-a)/M by at most 33. Changing either endpoint's inclusion alters the count by at most one. Consequently, for any choices of open or closed endpoints in a positive interval of length ℓ\ell, the count from RMR_M differs from 3ℓ/M3\ell/M by at most 66. This also covers a singleton interval, an empty interval, and an interval whose endpoints coincide. This bound does not depend on MM, the endpoint values, or the translation of the interval.

For q≥3q\ge3, both moduli in (16) are at least 33. Apply this estimate to the three intervals there. Their lengths are q2/9q^2/9, 4q2/94q^2/9, and 3q23q^2, respectively. Therefore

∣A∩Cq∣=6q+εq,∣εq∣≤18,(18)|A\cap C_q|=6q+\varepsilon_q,\qquad |\varepsilon_q|\le18, \tag{18}

since

32qq29+3q4q29+32q(3q2)=6q.\frac{3}{2q}\frac{q^2}{9} +\frac3q\frac{4q^2}{9} +\frac{3}{2q}(3q^2)=6q.

Now let q=3kq=3^k with k≥1k\ge1. The cycles preceding CqC_q are C1,C3,…,Cq/3C_1,C_3,\ldots,C_{q/3} and partition all positive integers at most LqL_q. The exact first-cycle count is four. Summing (18) for the remaining k−1k-1 preceding cycles gives

A(Lq)=4+∑j=1k−1(6⋅3j+ε3j)=3q−5+∑j=1k−1ε3j.(19)\begin{aligned} A(L_q) &=4+\sum_{j=1}^{k-1}(6\cdot3^j+\varepsilon_{3^j})\\ &=3q-5+\sum_{j=1}^{k-1}\varepsilon_{3^j}. \end{aligned} \tag{19}

The sum is empty when k=1k=1. In particular,

∣A(Lq)−3q∣≤5+18(k−1).(20)|A(L_q)-3q|\le5+18(k-1). \tag{20}

For an arbitrary real X∈[Lq,Uq]X\in[L_q,U_q], intersect each interval in (16) with (−∞,X](-\infty,X]. The resulting lengths are

ℓ1(X)=max⁡{0,min⁡{X,Bq}−Lq},ℓ2(X)=max⁡{0,min⁡{X,Dq}−Bq},ℓ3(X)=max⁡{0,X−Dq}.\begin{aligned} \ell_1(X)&=\max\{0,\min\{X,B_q\}-L_q\},\\ \ell_2(X)&=\max\{0,\min\{X,D_q\}-B_q\},\\ \ell_3(X)&=\max\{0,X-D_q\}. \end{aligned}

Each nonempty intersection is an interval with its actual endpoint conventions. Applying the same bound, including degenerate cases at the breakpoints, proves

∣∣A∩(Lq,X]∣−Tq(X)∣≤18,Tq(X)=3ℓ1(X)2q+3ℓ2(X)q+3ℓ3(X)2q.(21)\left| |A\cap(L_q,X]|-T_q(X) \right|\le18, \qquad T_q(X)=\frac{3\ell_1(X)}{2q} +\frac{3\ell_2(X)}q+\frac{3\ell_3(X)}{2q}. \tag{21}

The equality A(X)=A(Lq)+∣A∩(Lq,X]∣A(X)=A(L_q)+|A\cap(L_q,X]| is exact. Combining (20) and (21) yields

∣A(X)−(3q+Tq(X))∣≤18k+5.(22)|A(X)-(3q+T_q(X))|\le18k+5. \tag{22}

On putting x=X/q2x=X/q^2, direct substitution of the three lengths gives 3q+Tq(X)=qF(x)3q+T_q(X)=qF(x), with FF as in the statement. For example, its three normalized expressions are

3+32(x−49),3+16+3(x−59),3+16+43+32(x−1).3+\frac32\left(x-\frac49\right),\qquad 3+\frac16+3\left(x-\frac59\right),\qquad 3+\frac16+\frac43+\frac32(x-1).

They simplify to the three formulas for FF. This proves the asserted uniform estimate, including both ends of every cycle. It also explains why using a count only at the cycle endpoints would be insufficient.

Both exact extremal limits

Set H(x)=F(x)/xH(x)=F(x)/\sqrt x for 4/9≤x≤44/9\le x\le4. For every real cutoff in (22), X=qx≥2q/3\sqrt X=q\sqrt x\ge2q/3, so

∣A(X)X−H(X/q2)∣≤3(18k+5)2⋅3k.(23)\left|\frac{A(X)}{\sqrt X}-H(X/q^2)\right| \le\frac{3(18k+5)}{2\cdot3^k}. \tag{23}

The right-hand side tends to zero as k→∞k\to\infty. For example, k≤2kk\le2^k for k≥1k\ge1, by induction, and hence k/3k≤(2/3)k→0k/3^k\le(2/3)^k\to0. Every real X≥4X\ge4 lies in one of the intervals [4q2/9,4q2)[4q^2/9,4q^2) with q=3kq=3^k, k≥1k\ge1, and the selected kk tends to infinity with XX. Thus (23) is an error tending to zero uniformly over all sufficiently large real cutoffs, including seams.

To locate the extrema, for positive constants a,ba,b differentiate

ax+bx:ddx(ax+bx)=bx−a2x3/2.\frac{a}{\sqrt x}+b\sqrt x: \qquad \frac{d}{dx}\left(\frac{a}{\sqrt x}+b\sqrt x\right) =\frac{bx-a}{2x^{3/2}}.

On the first interval [4/9,5/9][4/9,5/9], the values a=7/3a=7/3, b=3/2b=3/2 make this derivative negative. The profile decreases from 9/29/2 to 19/(25)19/(2\sqrt5). On [5/9,1][5/9,1], the values a=3/2a=3/2, b=3b=3 make the derivative positive, so the profile increases from 19/(25)19/(2\sqrt5) to 9/29/2. The common minimum of these two pieces exceeds 323\sqrt2, because both are positive and

(1925)2=36120>18=(32)2.\left(\frac{19}{2\sqrt5}\right)^2 =\frac{361}{20}>18=(3\sqrt2)^2.

On [1,4][1,4], the profile is 3/x+(3/2)x3/\sqrt x+(3/2)\sqrt x. Its derivative is negative for x<2x<2, zero at 22, and positive for x>2x>2. It has value 9/29/2 at both endpoints and minimum 323\sqrt2 at x=2x=2. Consequently

32≤H(x)≤92(49≤x≤4).(24)3\sqrt2\le H(x)\le\frac92 \quad\left(\frac49\le x\le4\right). \tag{24}

The uniform error (23) and (24) give

lim inf⁡X→∞A(X)X≥32,lim sup⁡X→∞A(X)X≤92.\liminf_{X\to\infty}\frac{A(X)}{\sqrt X}\ge3\sqrt2, \qquad \limsup_{X\to\infty}\frac{A(X)}{\sqrt X}\le\frac92.

For Xk=q2=32kX_k=q^2=3^{2k} the normalized argument is 11 and H(1)=9/2H(1)=9/2. Equation (23) therefore shows A(Xk)/Xk→9/2A(X_k)/\sqrt{X_k}\to9/2. For Yk=2q2=2⋅32kY_k=2q^2=2\cdot3^{2k} it shows A(Yk)/Yk→32A(Y_k)/\sqrt{Y_k}\to3\sqrt2, because H(2)=32H(2)=3\sqrt2. Both sequences tend to infinity. They supply the reverse inequalities for the upper and lower limits, proving both equalities in the statement.

Dependencies

All essential deductions are given above using elementary integer and real arithmetic. The argument uses no external theorem, no native L-claim, and no computational premise. Its current verification standing is recorded on the claim page.