README.md
2.6 kB · markdown
shifted-sums
- Walks the shifted sums
T_s = sum_{w in B_s} mu(6w + 1)of the Franel note's repunit section,B_sthe2^sintegers below3^swhose base 3 digits lie in{0,1}, tos = 26. - The walk takes
win ascending order, soT_sis the prefix sumP_natn = 2^s; it records every sign change of the last nonzero sign ofP_nforn <= 2^26. - The control is the whole class:
M(x; 6, 1) = sum_{n <= x, n = 1 mod 6} mu(n)atx = 3^(s+1) - 2, the top of the image at levels, to3^16 - 2, beside the drift3/4 - Psi_(2,3)(x),Psi_(2,3)the count of 3-smooth numbers up tox: the term ats = 0of its Dirichlet series(1/2)(1/(zeta(s)(1 - 2^-s)(1 - 3^-s)) + 1/(L(s, chi_-3)(1 + 2^-s)))when eachM(x/(2^a 3^b))is read as its constant-2and1/(L(0, chi_-3)(1 + 2^0)) = 3/2.
METHOD
- PARI
moebius, batched from Python into 8gp -qprocesses; the walk is cut into chunks of2^16consecutive indices, chunkjholdingw = w(j) 3^16 + w(r)withw(i)the base 3 reading of the binary digits ofi. - Pass one returns each chunk's sum and the minimum and maximum of its local prefix; a chunk can hold a sign change only if its prefix range reaches the side opposite the last nonzero sign, and pass two rewalks exactly those chunks from their true offsets.
- Self-checks, each from an independent source:
T_1toT_16against the list printed on the note;T_(t-1) - T_(t-2) + mu(3^t + 1)against the note's endpoint readingsM_F(x_t; R_t)att = 2to24, which restricted-franel walks over a different set; a plain sequential walk to2^18repeatsT_18, the flip count and the last flip.
RUN
uv run python research/lab/py/shifted-sums/shifted_sums.pyfrom the repository root; appendwalkorcontrolfor one verb.walk83 s on 8 cores (449 s of CPU),control7.7 s on one;gpon the path.
WITNESSES
- The Franel note, the repunits:
T_sats = 17to26reading-88, 121, 665, 1523, 1857, 1450, 4479, 4939, 1417, 12641, negative ats = 2to4and6to17, zero ats = 1, 5, positive ats = 18to26,abs T_s / 2^(s/2)largest at1.8562ats = 13. - The prefix walk: 132 sign changes to
n = 2^26, the last atn = 238418, element6w + 1 = 1128943015, never negative from there to the cut and0atn = 238419. - The control:
M(x; 6, 1)negative ats = 2to13,8ats = 14,265ats = 15, 3996 sign changes below3^16; the drift reads-173.25ats = 13against-169and-223.25ats = 15against265.