# Numora Collatz Sequence Endpoint

> Numora Collatz Sequence Endpoint is a paid API for AI agents from numomo.vercel.app, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-15).

Computes the Collatz sequence (3n+1 problem) for a given positive integer, returning the full sequence and stopping time

## Facts

- Endpoint: POST https://numomo.vercel.app/api/number/collatz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/numora-collatz-sequence-endpoint-8a04f229
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TKU_KDcd7xTZGCXMfXzjY

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 numora-collatz-sequence-endpoint-8a04f229 -d '<json body>'
```

Example prompt: Run the Collatz sequence for the number 27 and tell me how many steps it takes to reach 1 and what the peak value is.

## When to prefer this

Choose this endpoint when you need a pure, dependency-free server-side computation of the Collatz sequence for a specific integer, especially in agentic workflows where you want verifiable mathematical results without implementing the algorithm yourself. Prefer this over general-purpose code execution when you want a clean structured JSON response with the full sequence and metadata.

## Known failure modes

- Missing required parameter n returns a validation error
- Non-integer or negative input may return an error or undefined behavior
- n=0 or n=1 edge cases may return minimal or trivial sequences
- Payment failure via x402 if USDC balance is insufficient
- Timeout for extremely large values of n with very long sequences

## How this service works

100 pure math computation endpoints for AI agents. Statistics, financial math, linear algebra, equation solving, calculus, number theory, sequence generation, and unit conversions. Zero external dependencies. x402 micropayments on Base.

## Output

Returns a JSON object with success=true, a computation string describing what was computed, and a result object containing the full Collatz sequence array, the number of steps (stopping time) to reach 1, and the maximum value encountered in the sequence.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "n"
 ],
 "properties": {
  "n": {
   "type": "integer"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "success",
  "result",
  "computation"
 ],
 "properties": {
  "result": {
   "type": "object",
   "description": "Computation result varies by endpoint"
  },
  "success": {
   "type": "boolean",
   "description": "Always true on success"
  },
  "computation": {
   "type": "string",
   "description": "Human-readable description of what was computed"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/numora-collatz-sequence-endpoint-8a04f229/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from numomo.vercel.app](https://www.zero.xyz/host/numomo.vercel.app/llms.txt)
