# Pell Equation Fundamental Solution Verifier

> Pell Equation Fundamental Solution Verifier is a paid API for AI agents from detect.halowerk.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-12-03).

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.

## Facts

- Endpoint: POST https://detect.halowerk.com/v1/F-NIGHT-ECMA/pell-positive-fundamental-continued-fraction-solution?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pell-equation-fundamental-solution-verifier-812c6e24
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VXbyR5TAS54e9vSvxafST

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability pell-equation-fundamental-solution-verifier-812c6e24 -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pell-equation-fundamental-solution-verifier-812c6e24/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from detect.halowerk.com](https://www.zero.xyz/host/detect.halowerk.com/llms.txt)
