Repository navigation
Lab: a prime-power ladder, and a modulus of your own - #58
Merged
Merged
Conversation
The residue ladder was 1, 2, 6, 30, 210, 2310, 30030: squarefree, so it kept l mod 2 but never mod 4 or 8. A047429 (n = 4, 5, 6 mod 8) showed the flaw: its whole departure from the control is l mod 8, and the gap stayed near -5.9 points at every step (the -2.96 at 30030 was frozen records, not structure). - The ladder is now lcm(1..n): 1, 2, 6, 12, 60, 420, 840, 2520, 27720, 360360. Each step adds exactly one prime power (2, 3, 4, 5, 7, 8, 9, 11, 13), named in the table, so a change of the gap belongs to it. A047429: -7.58, -5.84, -5.99, -3.14 (+4), -3.14, -3.22, -0.03 (+8, z -0.2), ... - "your own M" (1 to 10^7): computed on demand, shown after the ladder, kept in the link (#a047429.M8, or .own8 next to a ladder M). - Steps with more than half the records frozen are drawn hollow, left off the line, and greyed in the table: there the control is close to the sequence itself and the gap is pushed toward 0. - Plates: a small equal margin on both axes, so the L = 1 line and the k-axis column are no longer cut by the frame. Axis labels never overlap (phone width). No more "-0.00" or "-0.0". - tests/lab.mjs: ten steps; A047429 open at 420, closed at 840 and at its own M = 8; own M from the form and from a link; out-of-range refused. - README and the screenshot follow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FpoQj8VF38pkAsogJ8BchK
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #57, which was already merged.
The problem. The residue ladder used M = 1, 2, 6, 30, 210, 2310, 30030. Every one of those is squarefree, so the control kept ℓ mod 2 but never ℓ mod 4 or mod 8. A047429 (n ≡ 4, 5, 6 mod 8) shows why that matters: the whole of its departure from the control comes from ℓ mod 8, yet the gap stayed near −5.9 points at every step. The −2.96 shown at 30030 came from frozen records (100 % frozen there), not from structure.
The fix
#a047429.M8, or.own8alongside a ladder M). On A047429, M = 8 gives z = 0.8.Tests.
tests/lab.mjsnow checks the ten-step ladder. On A047429 it checks that the gap is still open at 420 and closed at 840 and at the user's own M = 8. It also checks your own M from the form and from a link, and that out-of-range values are refused. Passed locally;check_site.pypasses.Generated by Claude Code