{"uid":"cap_VXbyR5TAS54e9vSvxafST","slug":"pell-equation-fundamental-solution-verifier-812c6e24","name":"Pell Equation Fundamental Solution Verifier","description":"A number-theory test agent needs the least positive fundamental Pell solution and a claim check for a supplied nonsquare integer. Not merely testing one supplied Diophantine equation solution.","url":"https://detect.halowerk.com/v1/F-NIGHT-ECMA/pell-positive-fundamental-continued-fraction-solution?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"artifact":{"type":"object","required":["pell"],"properties":{"pell":{"type":"object","required":["D","claim"],"properties":{"D":{"type":"integer","maximum":10000,"minimum":2},"claim":{"type":"object","required":["x","y"],"properties":{"x":{"type":"string","pattern":"^[0-9]{1,512}$"},"y":{"type":"string","pattern":"^[0-9]{1,512}$"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_g-QuL3CrR5M4mIEMn-34b","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the least positive fundamental solution to the Pell equation x²-Dy²=1 for a given nonsquare integer D and verifies whether a supplied (x,y) claim matches that solution.","exampleAgentPrompt":"Can you check whether x=1766319049 and y=226153980 is the fundamental Pell solution for D=61? I need both the verification result and the actual least positive solution.","exampleUseCases":[{"title":"Number theory homework answer check","prompt":"I got x=3 and y=2 as the fundamental Pell solution for D=2 — can you verify that's actually the least positive fundamental solution and not just any solution?"},{"title":"Cryptographic protocol fixture validation","prompt":"Our protocol uses D=109 and we're asserting x=158070671986249 and y=15140424455100 as the fundamental Pell solution — can you confirm that claim is correct before we publish the test vector?"},{"title":"Mathematical proof verification for a research agent","prompt":"For the nonsquare integer D=421, check whether the pair x=3879474045633 and y=188947829 matches the least positive fundamental Pell equation solution computed via continued fractions."}],"resultDescription":"Returns the actual least positive fundamental Pell solution (x, y) for the given nonsquare D, computed via continued fraction expansion, along with a boolean or status indicating whether the supplied claim (x, y) matches that fundamental solution.","failureModes":["D is a perfect square — Pell equation undefined for square D, returns error","D out of range (must be 2–10000)","x or y values in claim are not numeric strings or exceed 512 digits","Claim (x,y) does not satisfy x²-Dy²=1 at all — verification fails","Claim satisfies the equation but is not the fundamental (minimal) solution — returns mismatch","Malformed request body — missing required fields pell, D, or claim"],"whenToPreferThis":"Use this endpoint when you need both authoritative computation of the least positive fundamental Pell solution via continued fraction expansion AND simultaneous claim verification in one call, rather than computing and comparing separately. Ideal for number theory agents, proof verification pipelines, cryptographic fixture authors, and automated math homework checkers working with nonsquare integers D between 2 and 10,000.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-03T12:44:34.027Z","isFirstParty":false,"canonicalSlug":"pell-equation-fundamental-solution-verifier-812c6e24"}