README.md
5.2 kB · markdown
sides-holding-a-number
- The numbers of Object E on Two bases: the even-digit design
E_Nat odd sideN, its integersZ_N = 2 K_N, and which sides hold one number. - Exact arithmetic throughout: integers,
Fraction, and numpy integer arrays; the only floats are the printed ratios, rounded outward where they are bounds. - Membership of
p/qis the orbit ruleN^j p mod 2q in {0, ..., q}; its control is an independent walk on the digits ofp/qbyFraction.
VERBS
period Q: for everyp/qin(0, 1)withq <= Q, the residuesR(p/q)of the odd sides holding it mod2q; checks the orbit rule against the digit walk at everyp/qin[0, 1]withq <= Q, over odd sides3..6q+1atq <= 40and one period3..2q+1above, then the symmetryp -> q - p, the least period2q, the bounds2/qand(q+1)/(2q)or1/2, the rule modqat oddq, the cyclic-subgroup count of the unit residues, the prime formula, and the invariancer -> q - rat evenq; prints the largest shares and the odd primes withshare(1/q) > 2/q. Runtime19.6s atQ = 200.eisenstein Q: at every odd primeq <= Qand everyp, the parity of the number of odd sides3 <= N < qwhose first digit ofp/qis odd, against the Legendre symbol of the odd one ofp, q - pby Euler's criterion; also the exact sum offloor(pN/q)over the oddN < 2qagainst(2p - 1)(q - 1)/2 + p, and how often its parity matches the symbol. Runtime0.03s atQ = 200.count K:c(k) = card{odd N : 3 <= N <= 2k, 2k in Z_N}at everyk <= K, the small sides by enumeratingK_Nand the sides abovesqrt(2K)by the parity offloor(2k/N)on a difference array; checks everyk <= 3000by the direct digit test; prints the extremes of(c(k) - (1 - log 2) k)/sqrt(k)and the largest error against the boundsqrt(2k) + 1. Runtime2.1s atK = 10^6.second E:c(k)by anO(sqrt k)block count, checked against the direct test at everyk <= 3000, at60randomkin each[10^e, 2 10^e),e = 6..E, seed376; prints the mean and spread of the error oversqrt(k)and of the small-side part againstkappaandbeta. Runtime7.6s atE = 11.family: the integers below3000held by every odd side; the rejection of everyp/q,q <= 60, at side2q - 1;E_NinsideE_(N^e)on integers and on fractions, and its strictness ate >= 2byN + 1and(N + 1)/N^e; Kummer's reading ofK_pat odd primesp <= 23bymath.comb; the carry reading ofK_(p^a); and the least witnesses at sides9and15. Runtime1.2s.inter X [FILE]: the integers belowXheld by each of nine side sets, by a walk overK_3from the top digit that cuts a branch when the least member of anotherK_Nat or above the branch's least value lies past its largest; checks the walk against the direct digit test belowk = 10^6at four side sets, and, whenFILEis a copy of the A030979 record fromhttps://raw.githubusercontent.com/oeis/oeisdata/main/seq/A030/A030979.seq, the sides{3, 5, 7}against its terms; withoutFILEthat comparison is skipped and the URL printed. Runtime1.2s atX = 10^12.deep D: the same walk for the sides{3, 5, 7, 11}below10^D. Runtime14.6s atD = 1000.weyl M L: for five irrationals from90-digit truncations, the share of the odd sides3 <= N <= 2M + 1holding each to levelL, times2^L. Runtime0.2s atM = 10^5,L = 6.
RUN
uv run python mrlyprod/research/lab/py/sides-holding-a-number/sides.py period 200
uv run python mrlyprod/research/lab/py/sides-holding-a-number/sides.py eisenstein 200
uv run python mrlyprod/research/lab/py/sides-holding-a-number/sides.py count 1000000
uv run python mrlyprod/research/lab/py/sides-holding-a-number/sides.py second 11
uv run python mrlyprod/research/lab/py/sides-holding-a-number/sides.py family
uv run python mrlyprod/research/lab/py/sides-holding-a-number/sides.py inter 1e12 A030979.seq
uv run python mrlyprod/research/lab/py/sides-holding-a-number/sides.py deep 1000
uv run python mrlyprod/research/lab/py/sides-holding-a-number/sides.py weyl 100000 6
WITNESSES
cobham.md, Object E: the orbit rule against the digit walk,1661996checks, the least period2q, the bounds and the maximum2/3, the rule modq, the coset count and the prime formula at all12231fractions withq <= 200, and the shares printed there (period 200).- The half-period parity law and the full-period identity at all
4180pairs withqan odd prime<= 200(eisenstein 200). - The readings
0.9821to1.0496of the share to levelLtimes2^L(weyl 100000 6). - The error extremes
0.547191,0.357533,[-0.348228, -0.082525]andc(10^6) = 306665(count 1000000). - The means
-0.220703to-0.215000againstkappa = 0.213864and the small-side readings againstbeta = 0.139689(second 11). - The family checks, the strictness at
e >= 2, and the witnesses20, 6, 10, 2, 3, 15(family). - The counts
10072and50, the17integers equal to twice the A030979 terms, and the lists at sides adding9, 11, 13, 15(inter 1e12);0, 2, 6320alone below10^1000(deep 1000).