{"id":"double-mod-deficit-formula","text":"The expression `(k - n % k) % k` is the standard formula for \"units to add to make n a multiple of k\" — the outer mod collapses the already-aligned case from k to 0.","truth_value":"IN","source":"entries/2026/06/06/divide-a-string-into-groups-of-size-k-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"double-mod-deficit-formula","truth_value":"IN","reason":"premise"}]}}