Catalan Number Calculator

Find the nth Catalan number exactly and the first terms of the sequence.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Step 1: Open Catalan Number Calculator and add your input

    Type your numbers or text, add your file, or pick the options you need. Nothing is uploaded: everything stays in your browser.

  2. 2
    Step 2: What Catalan Number Calculator does

    Find the nth Catalan number exactly and the first terms of the sequence.

  3. 3
    Step 3: Read the result and compare

    The result appears at once. Change one value to see how the answer moves, then keep the figure that fits your case.

  4. 4
    Step 4: Copy or save it

    Copy the result or download it. For an important decision, confirm it with the official source or an adviser.

About this tool

Enter n. The calculator gives C(n) = C(2n, n) ÷ (n + 1) exactly, the first terms of the sequence and what the number counts.

What it counts

Catalan numbers count balanced bracket sequences with n pairs, binary trees with n nodes, ways to triangulate a convex (n + 2)-gon, and monotone lattice paths that stay below the diagonal.

Values

1, 1, 2, 5, 14, 42, 132, 429, 1430, 4862, 16796… The numbers grow like 4ⁿ ÷ (n^1.5 √π).

Worked example

C(10) = 16,796: there are 16,796 ways to arrange 10 pairs of brackets correctly.

Tips for best results

Check every box before you rely on a result, because one wrong digit changes the whole answer. Use the exact figures from your payslip, bill, certificate or contract, and keep a note of the date you calculated. Rates, thresholds and rules change from time to time, so for tax, fees and legal matters treat the output as an estimate and confirm with the official source named on this page. You can run as many scenarios as you like; nothing is saved or sent, and refreshing the page clears the boxes.

Quick facts

Embed this calculator on your site

Copy this code to show the calculator on your own page. A link back to shobfree.com is included.

Frequently asked questions

What is C(0)?

1.

What does C(3) = 5 mean?

Five valid bracket strings with 3 pairs: ((())), (()()), (())(), ()(()), ()()().

How large can n be?

Up to 1000.

Is the result exact?

Yes, big integers are used.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages