{"uid":"cap_SeEEVg1j1qoNCPFmcmGyC","slug":"binomial-coefficient-calculator-ncr-02cc2f33","name":"Binomial Coefficient Calculator (nCr)","description":"Binomial coefficient nCr = n!/(r!(n-r)!), the number of unordered r-subsets of n. Requires r ≤ n and min(r, n-r) ≤ 10000.","url":"https://combinatorics.openverbs.com/v1/combinations","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","required":["n","r"],"properties":{"n":{"type":"string","pattern":"^\\d+$","description":"Non-negative integer ≤ 1000000."},"r":{"type":"string","pattern":"^\\d+$","description":"Non-negative integer, r ≤ n."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_oOtcxGIFWea1BtmBvMYnr","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the binomial coefficient nCr = n!/(r!(n-r)!), the number of ways to choose r unordered items from a set of n.","exampleAgentPrompt":"How many ways can I choose 5 items from a set of 52? Give me the exact binomial coefficient C(52, 5).","exampleUseCases":[{"title":"Lottery odds combination count","prompt":"How many different ways can 6 numbers be chosen from 49 in a lottery draw? I need the exact number of possible combinations, C(49,6)."},{"title":"Card hand probability setup","prompt":"I'm calculating poker probabilities — how many distinct 5-card hands are possible from a standard 52-card deck? Give me C(52,5)."},{"title":"Committee selection enumeration","prompt":"Our organization has 30 members and we need to form a committee of 8. How many different committees are possible? Calculate C(30,8) for me."}],"resultDescription":"Returns the exact integer value of the binomial coefficient nCr = n!/(r!(n-r)!), representing the number of unordered r-subsets of an n-element set. The result is a large exact integer (as a decimal string for large values), with constraints that r ≤ n and min(r, n-r) ≤ 10000.","failureModes":["r > n: invalid input since you cannot choose more items than exist in the set","min(r, n-r) > 10000: exceeds computation limit","n > 1000000: n exceeds maximum allowed value","non-integer or negative inputs: inputs must match pattern ^\\d+$","malformed request body: missing required fields n or r"],"whenToPreferThis":"Choose this endpoint when you need the exact count of unordered selections (combinations) of r items from n, e.g. for probability calculations, lottery odds, or combinatorial enumeration. Prefer this over the permutations endpoint (nPr) when order does not matter. Use instead of factorial endpoint when you specifically need the binomial coefficient rather than a raw factorial.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:30:23.761Z","isFirstParty":false}