Skip to content
HALOWERK

Datenvertragswerk

glaisher distinct to odd partition ledger

For one integer partition into distinct positive parts (distinct_parts strictly descending, each part 1..20, total weight 0..20), reconstructs its Glaisher image partition into odd positive parts: each original part 2^a*m with m odd contributes 2^a copies of m. Returns the entire ordered odd_parts array, the preserved weight, source_length and target_length; [6,3,1] maps to [3,3,3,1]. This is the distinct-to-odd direction of the Glaisher bijection (Pak Section 9).

POST https://datenvertrag.halowerk.com/v1/glaisher-distinct-to-odd-partition-ledger

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
distinct_partsSee schemaYes
claimSee schemaYes
Show full input schema
{
  "type": "object",
  "properties": {
    "distinct_parts": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "integer",
            "minimum": 1,
            "maximum": 20
          },
          "minItems": 0,
          "maxItems": 5
        },
        {
          "type": "null"
        }
      ]
    },
    "claim": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "integer",
            "minimum": 1,
            "maximum": 20
          },
          "minItems": 0,
          "maxItems": 20
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "distinct_parts",
    "claim"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "distinct_parts": [],
  "claim": []
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’