Update and Read a Low-Bit Ledger
Maintain nested block sums when one position changes, then reconstruct a prefix.
Adult planning suggestion: about 9–12 · Logic & rule checking
- Players
- 3; adult facilitator
- Time
- 15–25 minutes
- Materials
- Printed player sheet or copied paper, pencil and small counters.
Prepare
Write a[1..4]=[2,1,3,4]. Ledger slots store sums over [1], [1..2], [3], [1..4]. Label each slot before calculating.
Follow the rule
Add 2 to position 3. Update every ledger slot whose block contains position 3. Leave the other blocks untouched.
Check each step
For prefix ending at 3 take the block ending at 3, then the block ending at 2. Each step removes the lowest set bit of the current index.
Worked example
Write the two block values separately and verify their sum by listing a[1], a[2], a[3]. Avoid counting position 3 twice.
Finish and adapt
Rotate jobs and query prefix 4 using its one whole block. Finish when both prefix totals match the direct sum.
Purpose, observation and provenance
Within this activity: Maintain nested block sums when one position changes, then reconstruct a prefix.
Ask the checker to point to the move or calculation that decides the outcome.
Our rules, examples and printable diagrams are separately prepared. The earliest inventor of the broader mechanism is not established here.
Fenwick tree · one-based indexing — Rule or mathematical background for our original paper exercise. The small example and end condition are ours.
Secondary practice: Cooperation and explaining a check.
For a class of 30, use ten groups of three. Prepare one player-material set per group and keep the host key with the adult. Rotate operator, recorder and checker after each worked example; a reader or scribe may help without choosing answers. Avoid public ranking or diagnostic labels.
Age bands are planning suggestions. Background references may address older learners and do not validate suitability for this age band. Goals describe observable actions, not measured long-term gains or institutional endorsement.
Free alternative: Copy the supplied grids, labels and cards onto reused paper. No specialist product is needed. Adults may prepare pieces or act as a scribe.
Printable materials
Preview at 100% scale, with browser headers and footers off. Cut with suitable help. Keep host keys separate. This is a manual tabletop kit, not an online opponent, automatic judge or solver.
Update and Read a Low-Bit Ledger · Player materials
Write a[1..4]=[2,1,3,4]. Ledger slots store sums over [1], [1..2], [3], [1..4]. Label each slot before calculating.
Add 2 to position 3. Update every ledger slot whose block contains position 3. Leave the other blocks untouched.
For prefix ending at 3 take the block ending at 3, then the block ending at 2. Each step removes the lowest set bit of the current index.
| Index | 1 | 2 | 3 | 4 |
|---|---|---|---|---|
| Initial value | 2 | 1 | 3 | 4 |
| Ledger covers | 1 | 1–2 | 3 | 1–4 |
| Step / cell | Decision / value | Rule checked |
|---|---|---|
| ________ | ________ | ________ |
| ________ | ________ | ________ |
| ________ | ________ | ________ |
| ________ | ________ | ________ |
Update and Read a Low-Bit Ledger · Host key — keep separate
Ledger starts [2,3,3,10] then [2,3,5,12]. Prefix 3=5+3=8; prefix 4=12.
Lead and check
Write a[1..4]=[2,1,3,4]. Ledger slots store sums over [1], [1..2], [3], [1..4]. Label each slot before calculating.
Add 2 to position 3. Update every ledger slot whose block contains position 3. Leave the other blocks untouched.
For prefix ending at 3 take the block ending at 3, then the block ending at 2. Each step removes the lowest set bit of the current index.
Write the two block values separately and verify their sum by listing a[1], a[2], a[3]. Avoid counting position 3 twice.
Rotate jobs and query prefix 4 using its one whole block. Finish when both prefix totals match the direct sum.
Classroom: ten trios for 30 learners; one kit per trio. Rotate operator, recorder and checker. Age guidance is a planning suggestion; prerequisite support may be necessary.
Audit a negative point update · Player audit
Separate exercise: start [2,1,3,4]. Decrease position 2 by 4, allowing a signed value. Update only ledger blocks covering 2 and recover prefix 3.
| Input / step | Result | Reason |
|---|---|---|
| ________ | ________ | ________ |
| ________ | ________ | ________ |
| ________ | ________ | ________ |
| ________ | ________ | ________ |
| ________ | ________ | ________ |
| ________ | ________ | ________ |
Audit a negative point update · Host audit
New row [2,−3,3,4]; blocks [2,−1,3,6]. Prefix 3 is block 3 plus block 2 = 2. Blocks 1 and 3 did not change.
Related activities
Audit a negative point update
Separate exercise: start [2,1,3,4]. Decrease position 2 by 4, allowing a signed value. Update only ledger blocks covering 2 and recover prefix 3.