Zum Inhalt
HALOWERK

Datenvertragswerk

shortest bounded unit fraction family

From an original nonnegative rational numerator0..16/denominator1..32 and maximum denominator1..12, derive ALL minimum-cardinality subsets of distinct denominators from1..ceiling whose reciprocal sum equals the normalized target. Each family sorts denominators increasing; all optimal families sort numeric lexicographically. Return exact minimum term count, whole family/count and solvable flag. Zero has one empty representation with0terms; no bounded representation is a complete known result.

POST https://datenvertrag.halowerk.com/v1/shortest-bounded-unit-fraction-family

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
targetSiehe SchemaJa
max_denominatorSiehe SchemaJa
claimed_familiesSiehe SchemaJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "target",
    "max_denominator",
    "claimed_families"
  ],
  "properties": {
    "target": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "num",
            "den"
          ],
          "properties": {
            "num": {
              "type": "integer",
              "minimum": 0,
              "maximum": 16
            },
            "den": {
              "type": "integer",
              "minimum": 1,
              "maximum": 32
            }
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "max_denominator": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1,
          "maximum": 12
        },
        {
          "type": "null"
        }
      ]
    },
    "claimed_families": {
      "anyOf": [
        {
          "type": "array",
          "maxItems": 32,
          "items": {
            "type": "array",
            "maxItems": 12,
            "items": {
              "type": "integer",
              "minimum": 1,
              "maximum": 12
            }
          }
        },
        {
          "type": "null"
        }
      ]
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "target": {
    "num": 4,
    "den": 5
  },
  "max_denominator": 12,
  "claimed_families": [
    [
      2,
      5,
      10
    ]
  ]
}

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 →