{"slug":"datenvertrag-halowerk-com-v1-quadratic-surd-periodic-continu-6c0057","title":"For the POSITIVE square-root branch value x=(sqrt(d)+p)/q with nonsquare integer","host":"datenvertrag.halowerk.com","method":"POST","resource":"https://datenvertrag.halowerk.com/v1/quadratic-surd-periodic-continued-fraction","category":"other","description":"For the POSITIVE square-root branch value x=(sqrt(d)+p)/q with nonsquare integer d2..31, integer p−2..2 and positive q1..3, reconstruct its canonical regular continued fraction by floor then reciprocal fractionalpart. Return the shortest preperiod, primitive repeating period, period_length, and EVER","price_listed":0.003,"price_asked":0.003,"state":"answering","state_label":"Answering","checks_7d":4,"answered_7d":4,"latency_ms_median":906,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"claim":{"convergents":[["1","1"],["3","2"]],"period":[2],"period_length":1,"preperiod":[1]},"d":2,"p":0,"q":1},"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":{"claim":{"anyOf":[{"additionalProperties":false,"properties":{"convergents":{"items":{"items":{"maxLength":64,"minLength":1,"pattern":"^-?[0-9]+$","type":"string"},"maxItems":2,"minItems":2,"type":"array"},"maxItems":128,"minItems":1,"type":"array"},"period":{"items":{"maximum":64,"minimum":1,"type":"integer"},"maxItems":64,"minItems":1,"type":"array"},"period_length":{"maximum":64,"minimum":0,"type":"integer"},"preperiod":{"items":{"maximum":64,"minimum":-2,"type":"integer"},"maxItems":64,"minItems":0,"type":"array"}},"required":["preperiod","period","period_length","convergents"],"type":"object"},{"type":"null"}]},"d":{"anyOf":[{"maximum":31,"minimum":2,"type":"integer"},{"type":"null"}]},"p":{"anyOf":[{"maximum":2,"minimum":-2,"type":"integer"},{"type":"null"}]},"q":{"anyOf":[{"maximum":3,"minimum":1,"type":"integer"},{"type":"null"}]}},"required":["d","p","q","claim"],"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"},"output":{"properties":{"example":{},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-27","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":878,"error":null},{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":909,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":904,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":912,"error":null}],"description_full":"For the POSITIVE square-root branch value x=(sqrt(d)+p)/q with nonsquare integer d2..31, integer p−2..2 and positive q1..3, reconstruct its canonical regular continued fraction by floor then reciprocal fractionalpart. Return the shortest preperiod, primitive repeating period, period_length, and EVERY rational convergent for the finite digit list preperiod followed by exactly one period.","last_updated":"2026-11-24T10:34:34.413Z","schemes":["exact"]}