FAILURE MAP
← Case archive

FA-72537 / Check-digit algorithms / Member archive

CUSIP folds doubled values by subtracting nine · case 02

CUSIPs with letters in doubled positions get wrong check digits.

Member previewVariant 2 · 3 implementations · 8 checks per implementation

Case contract

CUSIP check: nine ASCII characters, the ninth a digit. Payload values: digits face value, A-Z 10-35, * 36, @ 37, # 38 (anything else "malformed"). Every second payload character (1-based even position) is doubled, and the decimal digits of each value are summed. Return [(10 - sum % 10) % 10, whether it equals the ninth digit].

Why this case matters

Clearing and custody systems validate North American security identifiers.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
regression ["161949AV8"][9, false][4, false]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 ↗