{"uid":"cap_T-Pes7k3VALqHMVTthcg2","slug":"sequence-sum-solver-arithmetic-geometric-fibonacci-lucas-3a29a149","name":"Sequence Sum Solver (Arithmetic, Geometric, Fibonacci, Lucas)","description":"Arithmetic and geometric sequences: n-th term and sum (and infinite sum when it converges), plus Fibonacci and Lucas numbers.","url":"https://math-geometry.x402tookit.com/sequence-sum?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["type","n"],"properties":{"n":{"type":"integer","description":"Number of terms, or the index for fibonacci and lucas (up to 5000)"},"step":{"type":"number","description":"Common difference (arithmetic) or common ratio (geometric)"},"type":{"type":"string","description":"arithmetic, geometric, fibonacci or lucas"},"first":{"type":"number","description":"First term (arithmetic, geometric)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"n":{"type":["null","number"]},"sum":{"type":["null","number"]},"asOf":{"type":["null","string"]},"source":{"type":["null","string"]},"average":{"type":["null","number"]},"nthTerm":{"type":["null","number"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"firstTerm":{"type":["null","number"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"commonDifference":{"type":["null","number"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9wOYyiItvsc1uEUTh-kvv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the n-th term, partial sum, and infinite sum (when convergent) for arithmetic and geometric sequences, plus Fibonacci and Lucas numbers up to index 5000.","exampleAgentPrompt":"What is the 75th term and the total sum of an arithmetic sequence that starts at 5 with a common difference of 3, over 75 terms?","exampleUseCases":[{"title":"Geometric series convergence check","prompt":"I have a geometric sequence starting at 10 with a common ratio of 0.4 — what does the infinite sum converge to, and what's the sum of the first 30 terms?"},{"title":"Large Fibonacci index lookup","prompt":"What is the 1000th Fibonacci number?"},{"title":"Arithmetic progression total for budget planning","prompt":"I'm making equal monthly savings increases: I start saving $200 in month 1 and increase by $50 each month. What will my total savings be after 24 months, and what will I be saving in month 24?"}],"resultDescription":"Returns a JSON object containing the n-th term, partial sum, infinite sum (for convergent geometric series), average, first term, and common difference/ratio. May also include a summary string, degraded flag, and disclaimer notes.","failureModes":["Missing required 'type' or 'n' query parameters returns an error","Invalid sequence type string (not arithmetic/geometric/fibonacci/lucas) causes failure","n exceeding 5000 is out of range for Fibonacci/Lucas lookups","Geometric series with |ratio| >= 1 will not return an infinite sum (non-convergent)","Non-numeric values for first, step, or n cause validation errors"],"whenToPreferThis":"Use this endpoint when you need precise mathematical computation of sequence terms or sums — especially for Fibonacci and Lucas numbers up to index 5000, or for arithmetic/geometric progressions including convergent infinite sums. Prefer this over general-purpose math APIs when you need structured numeric output (n-th term, sum, average) in a single call without writing code.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:08:24.825Z","isFirstParty":false,"canonicalSlug":"sequence-sum-solver-arithmetic-geometric-fibonacci-lucas-3a29a149"}