{"uid":"cap_DvHBikKPA9_0JdQKJyqt1","slug":"collatz-sequence-generator-cf43b842","name":"Collatz Sequence Generator","description":"Generate the Collatz sequence for a given number up to a specified limit.","url":"https://sovereign-x402-zeta.vercel.app/api/v1/sequence/collatz_conjecture?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{},"additionalProperties":true},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_mbZmKlyZ0eMBAutjTGgz5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates the Collatz sequence (3n+1 sequence) for a given starting number up to a specified limit.","exampleAgentPrompt":"Can you generate the Collatz sequence starting from 27, up to a limit of 200 steps?","exampleUseCases":[{"title":"Visualizing Collatz stopping time","prompt":"Generate the Collatz sequence for the number 6171 and show me all the steps until it reaches 1, with a limit of 500 steps."},{"title":"Math education sequence demo","prompt":"I'm teaching number theory — can you generate the Collatz hailstone sequence for 12, limiting it to 50 steps, so I can walk students through each iteration?"},{"title":"Checking convergence for large number","prompt":"Run the Collatz sequence for the number 837799 up to 1000 steps and tell me how many steps it takes to reach 1."}],"resultDescription":"Returns the Collatz sequence as an ordered list of integers starting from the given number, following the rule: if even divide by 2, if odd multiply by 3 and add 1, continuing until reaching 1 or hitting the specified limit.","failureModes":["Invalid or missing starting number returns an error","Non-positive or non-integer input may be rejected","Limit set too low may truncate sequence before reaching 1","Payment failure (402) if USDC funds are insufficient","Malformed request body returns 400 error"],"whenToPreferThis":"Use this endpoint when you need the full enumerated Collatz sequence for a specific starting number, especially when you want step-by-step tracing or need to apply a limit on iterations. Prefer over manual computation for large starting values where the sequence can be hundreds of steps long.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T12:37:04.722Z","isFirstParty":false,"canonicalSlug":"collatz-sequence-generator-cf43b842"}