Five points, four jumps
HTML for this example
Select the code and use your copy shortcut. Changes in this preview are temporary.
<!doctype html>
<html lang="en-US"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Five points, four jumps</title><style>
:root{color-scheme:light;--accent:#21646b;--wash:#e3f3f1;--ink:#202d3b;--paper:#fffdf9}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:#eeeae2;font:17px/1.65 system-ui,-apple-system,"Segoe UI",sans-serif}main{max-width:980px;margin:auto;padding:28px 24px 40px}header{border-top:6px solid var(--accent);padding:20px 0 24px}.kicker{color:var(--accent);font-weight:750;letter-spacing:.06em;margin:0 0 8px}h1{font:700 clamp(30px,5vw,46px)/1.15 Georgia,serif;margin:0 0 14px;max-width:780px}h2{font-size:23px;line-height:1.3;margin:0 0 14px}h3{font-size:19px;margin:12px 0 8px}p{margin:0 0 16px}button,input,textarea,select{font:inherit}button{background:white;border:1px solid #87949b;color:var(--ink);border-radius:8px;padding:11px 16px;min-height:48px;cursor:pointer;font-weight:650}button:hover{background:var(--wash)}button[aria-pressed=true],button.primary{background:var(--accent);color:white;border-color:var(--accent)}:focus-visible{outline:3px solid #b45a1e;outline-offset:3px}label{display:block;font-weight:650;margin:14px 0 6px}input:not([type=checkbox]):not([type=radio]),textarea,select{display:block;width:100%;min-width:0;max-width:100%;border:1px solid #80909b;border-radius:7px;padding:11px;background:white;color:var(--ink)}input[type=checkbox],input[type=radio]{width:21px;height:21px;accent-color:var(--accent)}textarea{resize:vertical}.panel{background:var(--paper);border:1px solid #ccd2d1;border-radius:12px;padding:24px;margin-bottom:20px}.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.two>.panel{margin:0}.two{margin-bottom:20px}.actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.result{padding:18px;background:var(--wash);border-left:5px solid var(--accent);margin-top:18px;white-space:pre-line;overflow-wrap:anywhere}.note{color:#465565;font-size:16px}.strip{padding:18px;background:var(--wash);border-radius:8px;margin-bottom:18px}table{border-collapse:collapse;width:100%;font-size:16px;table-layout:fixed}th,td{text-align:left;padding:10px 8px;border-bottom:1px solid #cbd0d1;overflow-wrap:anywhere;vertical-align:top}th{background:var(--wash)}ol,ul{padding-left:24px}li+li{margin-top:8px}pre{font-size:16px;white-space:pre-wrap;overflow-wrap:anywhere}code{font-size:16px}.grid{display:grid;gap:5px;max-width:440px}.grid button{padding:5px;min-width:0}.grid input{padding:5px!important;text-align:center;font-weight:750}blockquote{font:500 26px/1.5 Georgia,serif;margin:16px 0}footer{font-size:16px;color:#465565;margin-top:22px}[hidden]{display:none!important}svg{display:block;max-width:100%;height:auto}mark{background:#e0efad;color:var(--ink)}@media(max-width:560px){main{padding:18px 12px 28px}.panel{padding:20px 16px}.two{grid-template-columns:minmax(0,1fr)}h1{font-size:32px}.actions button{flex:1 1 135px}th,td{padding:8px 5px}.grid button{min-height:40px}blockquote{font-size:24px}}
#diagnosis p,.strip{overflow-wrap:anywhere}</style></head><body><main><header><p class="kicker">NUMBER PATHS · START + STEP × JUMPS</p><h1>Five points, four jumps</h1><p>Read the supplied rule. Index0 is the start; index4 follows four jumps. Explain the gap as well as the answer.</p></header><div class="actions"><button type="button" id="rule1">SC1</button><button type="button" id="rule2">SC2</button><button type="button" id="rule3">SC3</button></div><section class="panel"><h2>Stated rule</h2><div id="rule" class="result" role="status" aria-live="polite"></div><div id="path" class="strip"></div><p>Indexes0 → 1 → 2 → 3 → 4. Equal gaps represent the stated equal increments.</p></section><section class="panel"><h2>Complete and explain</h2><label for="missing">Missing value at index2</label><input id="missing" type="text" value=""><label for="finalValue">Final value after4 jumps</label><input id="finalValue" type="text" value=""><div id="diagnosis"><p>SC1 wrong path:46 → 56 → 67 → 77 → 87. Gaps: 1 = 46→56; 2 = 56→67; 3 = 67→77; 4 = 77→87.</p><label for="gap">First violating gap number1–4</label><input id="gap" type="text" value=""></div><label for="reason">Why does your answer fit the stated rule?</label><textarea id="reason" rows="4"></textarea><div class="actions"><button type="button" id="check">Check fixed answers</button><button type="button" id="reveal">Reveal explanation key</button><button type="button" id="reset">Clear this rule</button></div><div id="feedback" class="result" role="status" aria-live="polite">Answers begin blank.</div><div id="key" class="strip" hidden></div></section><footer>Five points contain four jumps. Repair the first wrong gap, then recompute the points after it.</footer><noscript>JavaScript is required for the local controls. The accompanying article contains worked examples.</noscript></main><script>
(()=>{'use strict';const $=id=>document.getElementById(id);
const rules=[[46,10],[60,10],[26,5]];let i=0;function clear(){['missing','finalValue','gap','reason'].forEach(id=>$(id).value='');$('feedback').textContent='Complete the fields for this rule.';$('key').hidden=true;}function show(n){i=n;const [s,d]=rules[i];$('rule').textContent='SC'+(i+1)+': Start '+s+'; add '+d+'; exactly4 jumps.';$('path').textContent=[s,s+d,'?',s+3*d,s+4*d].join(' → ');$('diagnosis').hidden=i!==0;clear();}rules.forEach((_,n)=>$('rule'+(n+1)).addEventListener('click',()=>show(n)));['missing','finalValue','gap','reason'].forEach(id=>$(id).addEventListener('input',()=>{$('feedback').textContent='Answers changed. Check again.';}));$('check').addEventListener('click',()=>{const ids=i===0?['missing','finalValue','gap']:['missing','finalValue'];const a=ids.map(id=>$(id).value.trim());if(i===0&&(!/^\d+$/.test(a[2])||Number(a[2])<1||Number(a[2])>4)){$('feedback').textContent='First violating gap must be a whole number from 1 through 4.';return;}if(a.some(v=>!/^\d+$/.test(v)||Number(v)>200)||!$('reason').value.trim()){$('feedback').textContent='Supply whole integers0–200 and a reason; blank is unanswered.';return;}const [s,d]=rules[i],expected=i===0?[s+2*d,s+4*d,2]:[s+2*d,s+4*d];const n=a.filter((v,j)=>Number(v)===expected[j]).length;$('feedback').textContent=n+' of '+ids.length+' fixed answers correct. Teacher reviews the reason.';});$('reveal').addEventListener('click',()=>{const [s,d]=rules[i];$('key').hidden=!$('key').hidden;$('key').textContent='SC'+(i+1)+': '+Array.from({length:5},(_,j)=>s+j*d).join(' → ')+'. Four jumps.'+(i===0?' Gap2:56→67 adds11. Correct downstream values66,76,86.':'');});$('reset').addEventListener('click',clear);show(0);
})();
</script></body></html>