combinatorics-calculator

Calculate combinatorial values with modular arithmetic

509 stars

Best use case

combinatorics-calculator is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Calculate combinatorial values with modular arithmetic

Teams using combinatorics-calculator should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/combinatorics-calculator/SKILL.md --create-dirs "https://raw.githubusercontent.com/a5c-ai/babysitter/main/library/specializations/algorithms-optimization/skills/combinatorics-calculator/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/combinatorics-calculator/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How combinatorics-calculator Compares

Feature / Agentcombinatorics-calculatorStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Calculate combinatorial values with modular arithmetic

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Combinatorics Calculator Skill

## Purpose

Calculate combinatorial values with modular arithmetic support for competitive programming applications.

## Capabilities

- Factorial and inverse factorial precomputation
- nCr, nPr with modular arithmetic
- Catalan, Stirling, Bell numbers
- Lucas theorem implementation
- Inclusion-exclusion principle application
- Generating functions

## Target Processes

- combinatorics-counting
- number-theory-algorithms
- dp-pattern-matching

## Combinatorial Functions

### Basic Counting
- Factorial: n!
- Permutations: P(n,r) = n!/(n-r)!
- Combinations: C(n,r) = n!/(r!(n-r)!)

### Special Numbers
- Catalan numbers
- Stirling numbers (first and second kind)
- Bell numbers
- Derangements

### Advanced Techniques
- Lucas theorem (for large n, small p)
- Inclusion-exclusion
- Burnside's lemma
- Generating functions

## Input Schema

```json
{
  "type": "object",
  "properties": {
    "operation": {
      "type": "string",
      "enum": ["nCr", "nPr", "factorial", "catalan", "stirling", "lucas", "precompute"]
    },
    "n": { "type": "integer" },
    "r": { "type": "integer" },
    "mod": { "type": "integer" },
    "precomputeLimit": { "type": "integer" }
  },
  "required": ["operation"]
}
```

## Output Schema

```json
{
  "type": "object",
  "properties": {
    "success": { "type": "boolean" },
    "result": { "type": "integer" },
    "code": { "type": "string" },
    "formula": { "type": "string" }
  },
  "required": ["success"]
}
```

Related Skills

typography-calculator

509
from a5c-ai/babysitter

Calculate typography scales, metrics, and responsive font sizing

prioritization-calculator

509
from a5c-ai/babysitter

Automated calculation and scoring for product prioritization frameworks including RICE, ICE, MoSCoW, and custom weighted scoring. Normalizes scores, validates inputs, and generates priority rankings with confidence intervals.

power-analysis-calculator

509
from a5c-ai/babysitter

Skill for statistical power analysis and sample size calculation

vasp-dft-calculator

509
from a5c-ai/babysitter

VASP DFT calculation skill for electronic structure, band structures, and materials property predictions

madgraph-amplitude-calculator

509
from a5c-ai/babysitter

MadGraph matrix element calculation skill for BSM physics, cross-section computation, and event generation

camb-cosmology-calculator

509
from a5c-ai/babysitter

CAMB cosmological perturbation skill for CMB power spectra, matter power spectra, and cosmological parameter estimation

power-sample-size-calculator

509
from a5c-ai/babysitter

Statistical power analysis and sample size determination

takt-time-calculator

509
from a5c-ai/babysitter

Takt time and cycle time analysis skill for production line balancing and capacity planning.

niosh-lifting-calculator

509
from a5c-ai/babysitter

NIOSH Lifting Equation calculator for manual material handling risk assessment.

asymptotic-notation-calculator

509
from a5c-ai/babysitter

Automated derivation and simplification of Big-O, Big-Omega, and Big-Theta expressions for algorithm analysis

approximation-ratio-calculator

509
from a5c-ai/babysitter

Analyze and prove approximation ratios for optimization algorithms

wind-load-calculator

509
from a5c-ai/babysitter

Wind load calculation skill per ASCE 7 for MWFRS and components and cladding