{"slug":"datenvertrag-halowerk-com-v1-calkin-wilf-rational-index-audi-d87427","title":"Reconstruct the exact Calkin-Wilf positive rational tree bijection","host":"datenvertrag.halowerk.com","method":"POST","resource":"https://datenvertrag.halowerk.com/v1/calkin-wilf-rational-index-audit","category":"code","description":"Reconstruct the exact Calkin-Wilf positive rational tree bijection. Root1/1; left child a/(a+b), right(a+b)/b. Own heap-index convention root1,left2n,right2n+1. Reduce supplied positive numerator/denominator1..128 by gcd; return exact decimal-string index, complete root-to-target ancestors and L/R p","price_listed":0.003,"price_asked":0.003,"state":"answering","state_label":"Answering","checks_7d":3,"answered_7d":3,"latency_ms_median":1199,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"claimed_value":{"fraction_index":{"ancestors":[[1,1],[2,1],[2,3]],"index_decimal":"6","path":"RL","reduced":[2,3]},"index_fraction":{"ancestors":[[1,1],[2,1],[2,3]],"index_decimal":"6","path":"RL","reduced":[2,3]},"same_node":true},"fraction":[2,3],"index":6},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"claimed_value":{"anyOf":[{"additionalProperties":false,"properties":{"fraction_index":{"anyOf":[{"additionalProperties":false,"properties":{"ancestors":{"items":{"items":{"maximum":65536,"minimum":1,"type":"integer"},"maxItems":2,"minItems":2,"type":"array"},"maxItems":128,"minItems":1,"type":"array"},"index_decimal":{"maxLength":39,"pattern":"^[1-9][0-9]*$","type":"string"},"path":{"maxLength":127,"pattern":"^[LR]*$","type":"string"},"reduced":{"items":{"maximum":65536,"minimum":1,"type":"integer"},"maxItems":2,"minItems":2,"type":"array"}},"required":["reduced","path","index_decimal","ancestors"],"type":"object"},{"type":"null"}]},"index_fraction":{"anyOf":[{"additionalProperties":false,"properties":{"ancestors":{"items":{"items":{"maximum":65536,"minimum":1,"type":"integer"},"maxItems":2,"minItems":2,"type":"array"},"maxItems":128,"minItems":1,"type":"array"},"index_decimal":{"maxLength":39,"pattern":"^[1-9][0-9]*$","type":"string"},"path":{"maxLength":127,"pattern":"^[LR]*$","type":"string"},"reduced":{"items":{"maximum":65536,"minimum":1,"type":"integer"},"maxItems":2,"minItems":2,"type":"array"}},"required":["reduced","path","index_decimal","ancestors"],"type":"object"},{"type":"null"}]},"same_node":{"type":["boolean","null"]}},"required":["fraction_index","index_fraction","same_node"],"type":"object"},{"type":"null"}]},"fraction":{"anyOf":[{"items":{"maximum":128,"minimum":1,"type":"integer"},"maxItems":2,"minItems":2,"type":"array"},{"type":"null"}]},"index":{"anyOf":[{"maximum":65535,"minimum":1,"type":"integer"},{"type":"null"}]}},"required":["fraction","index","claimed_value"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":1176,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":1227,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":1199,"error":null}],"description_full":"Reconstruct the exact Calkin-Wilf positive rational tree bijection. Root1/1; left child a/(a+b), right(a+b)/b. Own heap-index convention root1,left2n,right2n+1. Reduce supplied positive numerator/denominator1..128 by gcd; return exact decimal-string index, complete root-to-target ancestors and L/R path. Independently decode supplied index1..65535 and return its same complete artifact, plus equality of the two reduced rational nodes.","last_updated":"2026-11-24T10:19:36.297Z","schemes":["exact"]}