{"uid":"cap_TKU_KDcd7xTZGCXMfXzjY","slug":"numora-collatz-sequence-endpoint-8a04f229","name":"Numora Collatz Sequence Endpoint","description":"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.","url":"https://numomo.vercel.app/api/number/collatz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["n"],"properties":{"n":{"type":"integer"}}},"responseSchema":{"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"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_QHJr8uM7kDHnVEPrnbmtF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the Collatz sequence (3n+1 problem) for a given positive integer, returning the full sequence and stopping time","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Exploring Collatz stopping times","prompt":"What is the full Collatz sequence for 871 and how many steps does it take to reach 1?"},{"title":"Classroom number theory demo","prompt":"Generate the hailstone sequence for the number 6 so I can show my students how the Collatz conjecture works step by step."},{"title":"Finding longest Collatz path under 100","prompt":"Can you compute the Collatz sequence for 97 and tell me the total number of steps and the maximum value reached along the way?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:50:16.269Z","isFirstParty":false}