AI-assisted original teaching exercise. The number used in A is ABN Lookup’s published worked example, not MadRaven’s ABN or a customer identity. Other inputs are deliberate teaching variations. Do not copy an example number into a real footer.
Check the number without approving the entity
A website buyer receives a footer containing an eleven-digit business identifier. The supplier demonstrates a passing checksum and calls the corporate details verified. That calculation answers a narrow question about the supplied digits. It does not establish that the number belongs to the website owner, matches the approved entity name or reflects a current registry record.
Commission two distinct deliverables: a reproducible input check and an owner-approved identity evidence packet. Preserve the exact displayed number, the intended entity reference, the dated source used to confirm the match and who approved publication. A numerical pass cannot fill a missing owner decision.
Reproduce the documented calculation
ABN Lookup describes eleven digits with two leading check digits. Its modulus-89 method subtracts one from the first digit, applies positional weights and sums the products. The published example 51 824 753 556 produces a weighted total of 534 and remainder zero. Our finite helper implements that calculation, while reporting registry verification as false for every result.
weights: 10, 1, 3, 5, 7, 9, 11, 13, 15, 17, 19
example total: 534
534 % 89 = 0The helper accepts a string and removes ASCII spaces as an explicitly declared display-input policy. It does not remove arbitrary punctuation, translate digits, fetch registry data or infer an entity name. Those choices belong in a written adapter contract rather than an invisible “cleanup” step.
Use the eight filled inputs
A replays the official example and returns CHECKSUM_MATCH_REGISTRY_UNVERIFIED. B changes its final teaching digit and returns CHECKSUM_MISMATCH. Neither result identifies a real business. C supplies a JSON number instead of a string; the helper requests a string, preserving the distinction between an identifier and a quantity.
D uses fullwidth characters. The helper refuses silent normalization. E contains ASCII spacing around the official example, which the declared policy removes. F uses hyphens that this helper does not remove. G is missing input, and H adds a tab. These last cases describe the finite input contract; they are not claims that every other website or registry interface must reject the same presentation.
Hand over the actual identity decision
- Retain the owner-approved entity name and the exact identifier intended for the website.
- Save the supplied display string and the finite check result, including any normalization policy.
- Separately obtain current, permitted registry evidence and reconcile the identifier with the intended entity; keep unresolved details unknown.
- Approve the exact website fields and their implementation scope before changing a real footer or Organization markup.
A real discrepancy should return to its responsible owner. Do not choose a plausible number from an example, a similar trading name or a search snippet. Keep private supporting documents in the approved evidence store and publish only the business facts actually authorised for public display.
Run and interpret the local exercise
Save review.mjs and the filled JSON together, then run node review.mjs abn filled-review.json with Node 24. The retained actual output contains eight executed examples. A non-zero remainder is a calculation result; a zero remainder remains registry-unverified. The code makes no network request, ABN Lookup query, tax assessment or legal-status decision.
The result is useful for checking a supplier’s data handling before publication. It is not registry authentication, ownership proof, a business endorsement or evidence that search engines reconciled the entity. This teaching article uses Article metadata and leaves the existing website identity unchanged.
Filled evidence and downloads
Actual local replay: eight supplied records. These classifications are not live-system verification.
| Case | Output |
|---|---|
| A | CHECKSUM_MATCH_REGISTRY_UNVERIFIED |
| B | CHECKSUM_MISMATCH |
| C | STRING_INPUT_REQUIRED |
| D | ELEVEN_ASCII_DIGITS_REQUIRED |
| E | CHECKSUM_MATCH_REGISTRY_UNVERIFIED |
| F | ELEVEN_ASCII_DIGITS_REQUIRED |
| G | ELEVEN_ASCII_DIGITS_REQUIRED |
| H | ELEVEN_ASCII_DIGITS_REQUIRED |
Primary evidence
Supporting primary guidance · Supporting passages checked 7 November 2026. Worked inputs and handover steps are original teaching design.