FA-5496 / Number theory / Open access
Proper divisor sum · case 01
The number itself is included among proper divisors.
ROOT CAUSE
The number itself is included among proper divisors.
VERIFIED REPAIR
Apply the specified mathematical contract directly, preserving all terms and boundary cases: return sum(d for d in range(1,n) if n%d==0)
Unsuccessful approach: Removing the unit divisor undercounts every nonunit input.
Case contract
Integer inputs; n is positive unless a zero or negative fixture explicitly extends that operation. A modulus is greater than one; p is prime; exponent k may be signed when an inverse exists. Proper divisor sum. Exact operational definition: sum(d for d in range(1,n) if n%d==0)
Why this case matters
Small exact fixtures expose this error without platform timing, external services, or probabilistic observations. Number theory results depend on the stated convention.
1 / The failure
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
import math
import calendar
import statistics
import itertools
from fractions import Fraction
from datetime import date, datetime, timedelta, timezone
from decimal import Decimal, ROUND_HALF_UP, ROUND_DOWN, ROUND_CEILING, ROUND_FLOOR
N = 1
observations = []
def solve(n):
return sum(d for d in range(1,n+1) if n%d==0)
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1: (1,)', solve(*(1,)), 0)
check('fixture 2: (6,)', solve(*(6,)), 6)
check('fixture 3: (12,)', solve(*(12,)), 16)
check('fixture 4: (7,)', solve(*(7,)), 1)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| fixture 1: (1,) | 1 | 0 | Failed |
| fixture 2: (6,) | 12 | 6 | Failed |
| fixture 3: (12,) | 28 | 16 | Failed |
| fixture 4: (7,) | 8 | 1 | Failed |
SHA-256 / 058c48f19220dabc470be6174ca53f14623109b451a75dc53a5afa85003207db
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
import math
import calendar
import statistics
import itertools
from fractions import Fraction
from datetime import date, datetime, timedelta, timezone
from decimal import Decimal, ROUND_HALF_UP, ROUND_DOWN, ROUND_CEILING, ROUND_FLOOR
N = 1
observations = []
def solve(n):
return sum(d for d in range(2,n) if n%d==0)
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1: (1,)', solve(*(1,)), 0)
check('fixture 2: (6,)', solve(*(6,)), 6)
check('fixture 3: (12,)', solve(*(12,)), 16)
check('fixture 4: (7,)', solve(*(7,)), 1)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| fixture 1: (1,) | 0 | 0 | Passed |
| fixture 2: (6,) | 5 | 6 | Failed |
| fixture 3: (12,) | 15 | 16 | Failed |
| fixture 4: (7,) | 0 | 1 | Failed |
SHA-256 / 30bafc181fee112e0e745f5b3e74e47e2f0ecabf6d5c01badbb1a4e12d92ce4d
3 / The verified repair
Exit 0"""Failure Map reference implementation. Python standard library only."""
import json
import math
import calendar
import statistics
import itertools
from fractions import Fraction
from datetime import date, datetime, timedelta, timezone
from decimal import Decimal, ROUND_HALF_UP, ROUND_DOWN, ROUND_CEILING, ROUND_FLOOR
N = 1
observations = []
def solve(n):
return sum(d for d in range(1,n) if n%d==0)
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1: (1,)', solve(*(1,)), 0)
check('fixture 2: (6,)', solve(*(6,)), 6)
check('fixture 3: (12,)', solve(*(12,)), 16)
check('fixture 4: (7,)', solve(*(7,)), 1)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| fixture 1: (1,) | 0 | 0 | Passed |
| fixture 2: (6,) | 6 | 6 | Passed |
| fixture 3: (12,) | 16 | 16 | Passed |
| fixture 4: (7,) | 1 | 1 | Passed |
SHA-256 / fc3c20db99de3b60cb600bcd9b421b3a539e6afa78f9d696e41c75e53d36ba72
Verification & scope
This reproducer isolates one failure mechanism. Results cover the supplied fixtures. Variants within a family share a test contract and should remain grouped when constructing evaluation splits. Related mechanisms with a shared evaluation_group must also remain together; these controlled models are not independent production incidents.
Observations recorded using Python 3.12.14 at 2026-09-29T14:37:50.165373+00:00.
Case digest / c432bc4e90dcd8965e12c513c15df48bc99e79e220118def54600352d1c78fbc