Datenvertragswerk
kaprekar four digit basin census
For base2..10 enumerate the ENTIRE fixed4digit integer state space0..base^4-1, always retaining leadingzeros in digit extraction. Kaprekar transition sorts allfourdigits descending minus ascending, evaluated in that base. Return every attractorcycle in actual transition order rotated to minimum integer first, rows sorted by thatfirstmember; exact basin_size and counts by minimum steps until entering its cycle, with cyclemembers atdepth0. Allstates including repeated-digit zero basin.
POST https://datenvertrag.halowerk.com/v1/kaprekar-four-digit-basin-censusEingaben
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
| base | Siehe Schema | Ja | |
| claimed_basins | Siehe Schema | Ja |
Vollständiges Eingabeschema anzeigen
{
"type": "object",
"additionalProperties": false,
"required": [
"base",
"claimed_basins"
],
"properties": {
"base": {
"anyOf": [
{
"type": "integer",
"minimum": 2,
"maximum": 10
},
{
"type": "null"
}
]
},
"claimed_basins": {
"anyOf": [
{
"type": "array",
"maxItems": 32,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"cycle",
"basin_size",
"depth_counts"
],
"properties": {
"cycle": {
"type": "array",
"maxItems": 32,
"items": {
"type": "integer",
"minimum": 0,
"maximum": 9999
},
"minItems": 1
},
"basin_size": {
"type": "integer",
"minimum": 1,
"maximum": 10000
},
"depth_counts": {
"type": "array",
"maxItems": 64,
"items": {
"type": "integer",
"minimum": 0,
"maximum": 10000
},
"minItems": 1
}
}
}
},
{
"type": "null"
}
]
}
}
}Veröffentlichtes Eingabebeispiel
{
"base": 10,
"claimed_basins": [
{
"cycle": [
0
],
"basin_size": 10,
"depth_counts": [
1,
9
]
},
{
"cycle": [
6174
],
"basin_size": 9990,
"depth_counts": [
1,
383,
576,
2400,
1272,
1518,
1656,
2184
]
}
]
}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
- Datenvertragswerk0,003 USDC
adjacency cospectral graph family
POSThttps://datenvertrag.halowerk.com/v1/adjacency-cospectral-graph-familyGiven n1..5 and a monic degree-n integer polynomial det(xI-A), return EVERY labelled simple undirected graph on vertices0..n-1 having exactly that adjacency characteristic polynomial over integers. Coefficients are descending degree order,
- Datenvertragswerk0,003 USDC
adjacent swap permutation tour
POSThttps://datenvertrag.halowerk.com/v1/adjacent-swap-permutation-tourFor 0 to 5 labels starting at zero, construct the whole Steinhaus-Johnson-Trotter permutation tour from identity. Each transition swaps the largest mobile value with its adjacent smaller neighbor, then reverses directions of greater values.
- Datenvertragswerk0,003 USDC
aligned record cut audit
POSThttps://datenvertrag.halowerk.com/v1/aligned-record-cut-auditA stream-runtime fixture maintainer checks which record IDs belong to a supplied aligned checkpoint cut and which same-channel post-barrier records must stay buffered until all input barriers arrive. One aligned local checkpoint;record iden