Zum Inhalt
HALOWERK

Datenvertragswerk

farey neighbor inventory

For an order from 1 to 24, return every reduced rational in the closed interval [0,1] whose denominator is at most the order, in increasing numeric order. Return all consecutive index pairs, their determinant and their exact reduced gap. Compare the entire ordered canonical numerator-denominator claim. No floating-point approximation or modular-residue reconstruction. Missing order or claim stays unknown, retaining any computable inventory. Malformed input returns native400 before.

POST https://datenvertrag.halowerk.com/v1/farey-neighbor-inventory

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
orderSiehe SchemaJa
claimed_termsSiehe SchemaJa
Vollständiges Eingabeschema anzeigen
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "order",
    "claimed_terms"
  ],
  "properties": {
    "order": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1,
          "maximum": 24
        },
        {
          "type": "null"
        }
      ]
    },
    "claimed_terms": {
      "anyOf": [
        {
          "type": "array",
          "maxItems": 181,
          "items": {
            "type": "array",
            "minItems": 2,
            "maxItems": 2,
            "items": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 24
              },
              {
                "type": "integer",
                "minimum": 1,
                "maximum": 24
              }
            ],
            "additionalItems": false
          }
        },
        {
          "type": "null"
        }
      ]
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "order": 5,
  "claimed_terms": [
    [
      0,
      1
    ],
    [
      1,
      5
    ],
    [
      1,
      4
    ],
    [
      1,
      3
    ],
    [
      2,
      5
    ],
    [
      1,
      2
    ],
    [
      3,
      5
    ],
    [
      2,
      3
    ],
    [
      3,
      4
    ],
    [
      4,
      5
    ],
    [
      1,
      1
    ]
  ]
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-07, 02:42 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →