FA-5590 / Number theory / Member archive
Integer cube root floor · case 05
Nearest root differs from a floor root between cubes.
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. n is any integer in the small bounded fixture domain; return greatest r with r**3<=n. The linear search is an illustrative algorithm, not a large-input performance claim. Exact operational definition: next(k-1 for k in range(abs(n)+2) if k**3>n) if n>=0 else -next(k for k in range(abs(n)+1) if k**3>=-n)
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.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| fixture 1: (26,) | 3 | 2 | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗