Schroder Number Calculator
Term
- Schroder numbers count the lattice paths from (0, 0) to (n, n) that use right, up and diagonal steps and never rise above the diagonal.
- The recurrence is S(n) = S(n - 1) + S(0) S(n - 1) + S(1) S(n - 2) + ... + S(n - 1) S(0), splitting on where the path first touches the diagonal again.
- Running the recurrence up to n = 3 gives the terms 1, 2, 6, 22, so S(3) = 22.
- Halving gives the little Schroder number s(3) = 11, and the growth ratio S(3) / S(2) = 3.67 is on its way toward the limit 3 + 2 x sqrt(2), about 5.83.
The Schroder Number Calculator gives you the large Schroder number for any index n you enter, and it also shows the corresponding little Schroder number. The large Schroder numbers begin 1, 2, 6, 22, 90, 394, so S(3) = 22, S(4) = 90 and S(5) = 394. These numbers count lattice paths from one corner of an n-by-n grid to (n, n) that use right, up and diagonal steps and never rise above the diagonal. The little Schroder numbers are half the large ones for n at least 1, giving 11, 45 and 197 for n = 3, 4 and 5. The calculator also reports the growth ratio S(n) / S(n - 1), which tends to 3 + 2 x sqrt(2), about 5.83.
The method behind the calculator is the standard recurrence for Schroder numbers, which splits paths by where they first return to the diagonal. That first-return breakdown is the accepted way to count these paths, because it accounts for every valid path exactly once. Each result on this page comes with the formula, step-by-step workings, worked examples and sources, so you can follow the arithmetic and check the answer yourself rather than taking a black-box total on trust. Whether you need a single value such as S(5) = 394 or a longer run of terms, the page shows how each number is built from the one before it.
Worked examples
S(3) = 22
(3)
| Schroder number S(n) | 22 |
| Previous term S(n - 1) | 6 |
| Little Schroder number s(n) | 11 |
| Growth ratio S(n) / S(n - 1) | 3.67 |
S(4) = 90
(4)
| Schroder number S(n) | 90 |
| Previous term S(n - 1) | 22 |
| Little Schroder number s(n) | 45 |
| Growth ratio S(n) / S(n - 1) | 4.09 |
S(5) = 394
(5)
| Schroder number S(n) | 394 |
| Previous term S(n - 1) | 90 |
| Little Schroder number s(n) | 197 |
| Growth ratio S(n) / S(n - 1) | 4.38 |
What do Schroder numbers count?
A Schroder number counts a specific family of lattice paths: routes from one corner of a square grid to the opposite corner, point (n, n), using three kinds of steps — one unit right, one unit up, and one diagonal step that moves one unit right and one unit up at the same time. The rule that makes the count interesting is the boundary condition: a path may touch the main diagonal but must never rise above it. Every step stays on or below that line, so the paths hug the diagonal from below rather than wandering freely across the grid. A Schroder number calculator applies this definition directly, tallying exactly those paths for a given n.
The opening terms of the large Schroder numbers are 1, 2, 6, 22, 90, 394. Reading them by index makes the growth concrete: S(3) = 22, S(4) = 90, and S(5) = 394. The jump from 22 to 90 to 394 shows how quickly the count expands as the square gets larger. Over the long run, the ratio S(n) / S(n - 1) tends to 3 + 2 x sqrt(2), which is about 5.83 — meaning each additional unit of n multiplies the count by a factor approaching roughly 5.83.
A related sequence, the little Schroder numbers, is exactly half the large ones for n at least 1. For n = 3, 4 and 5 the little Schroder numbers are 11, 45 and 197 — each precisely half of 22, 90 and 394. The two sequences therefore describe closely linked counting problems, and the halving relationship is a handy check when you compute values by hand or with the calculator.
The standard way to derive the numbers is a recurrence that splits paths by where they first return to the diagonal. Instead of counting all paths at once, you break each path into the segment up to its first touch of the diagonal and the remainder after it, then combine the smaller counts. This divide-at-first-return approach turns a single large counting problem into a sum of smaller ones, which is how the sequence is built up term by term.
The recurrence, step by step
A Schroder number calculator is easiest to trust when you can see where each value comes from. The large Schroder numbers begin 1, 2, 6, 22, 90, 394. Each term after the first is built from the terms before it, and the rule for building them splits paths by where they first return to the diagonal. That split is what turns a counting question into a step-by-step recurrence you can follow on paper.
The idea behind the split is simple. A Schroder number counts lattice paths to (n, n) that use right, up and diagonal steps and never rise above the diagonal. Take such a path and find the first point, after the start, where it touches the diagonal again. Everything before that point is a smaller path that stays strictly below the diagonal until it returns. Everything after that point is another Schroder path, counted at a smaller size. Summing over every possible place where the first return can happen gives the recurrence: S(n) equals S(n - 1) plus the convolution of earlier terms.
Running the recurrence by hand shows how quickly it builds. Start from the small values and add the convolution of the earlier terms at each step. At n = 3 the result is S(3) = 22. At n = 4 it is S(4) = 90. At n = 5 it is S(5) = 394. Each new term depends only on terms already computed, which is why a calculator can work upward from the base cases without any shortcuts.
The same family has a smaller sibling. The little Schroder numbers are half the large ones for n at least 1, giving 11, 45 and 197 for n = 3, 4 and 5. As n grows, the ratio S(n) / S(n - 1) tends to 3 + 2 x sqrt(2), about 5.83, so each term is roughly 5.83 times the one before it once n is large. That ratio is a useful sanity check when you read a long list of values.
The table below collects the facts used in this section so you can compare the large and little sequences side by side.
| n | Large Schroder S(n) | Little Schroder |
|---|---|---|
| 3 | 22 | 11 |
| 4 | 90 | 45 |
| 5 | 394 | 197 |
Large vs little Schroder numbers
The Schroder numbers come in two versions, and the difference between them is a single factor of 2. The large Schroder numbers run 1, 2, 6, 22, 90, 394, so S(3) = 22, S(4) = 90 and S(5) = 394. The little Schroder numbers are half the large ones for n at least 1: 11, 45 and 197 for n = 3, 4 and 5. A schroder number calculator can show either sequence, but it helps to know why the two families differ before you read the output.
Both families count lattice paths to (n, n) built from right, up and diagonal steps that never rise above the diagonal. The split comes from how the diagonal step is treated. In the large version, a diagonal step is allowed to land on the diagonal itself. In the little version, that particular move is forbidden: a diagonal step may not have both of its endpoints on the diagonal. Every other path is counted the same way in both families.
Forbidding the diagonal step on the diagonal itself halves the count, and the empty path is the one exception. Pairing explains the factor of 2. Take any large path that is not empty. Look at its first step. If that step is a diagonal step lying on the diagonal, remove it and you get a little path. If the first step is not such a diagonal step, the path already qualifies as a little path. This rule sorts the nonempty large paths into two equal groups, one of which is exactly the little paths. The empty path has no first step to remove, so it sits alone, which is why the halving holds only for n at least 1.
The recurrence behind these counts splits paths by where they first return to the diagonal. That first-return point cuts a path into a leading piece and a remaining piece, and each piece is counted by the same kind of path. The large and little versions use this same decomposition; the diagonal-step rule is what separates their totals. The growth ratio S(n) / S(n - 1) tends to 3 + 2 x sqrt(2), about 5.83, so consecutive values grow by a little less than a factor of 6.
- Large Schroder numbers: 1, 2, 6, 22, 90, 394, with S(3) = 22, S(4) = 90 and S(5) = 394.
- Little Schroder numbers: half the large ones for n at least 1, giving 11, 45 and 197 for n = 3, 4 and 5.
- The only difference in the paths: the little version forbids a diagonal step whose endpoints both lie on the diagonal.
- The empty path is the exception, so the factor of 2 applies from n = 1 onward.
Where else they appear
Schroder numbers turn up in more places than their definition suggests. The standard definition counts lattice paths from one corner of an n-by-n grid to the opposite corner, using right, up and diagonal steps, with the rule that the path never rises above the diagonal. That single rule — stay on or below the line — is what links the sequence to a whole family of counting problems that look unrelated at first glance.
The best-known alternative reading is polygon dissections. Take a convex polygon with n + 2 sides and count the ways to cut it into smaller polygons by drawing non-crossing diagonals. The large Schroder numbers run 1, 2, 6, 22, 90, 394, so S(3) = 22, S(4) = 90 and S(5) = 394. Those are the dissection counts for the corresponding polygons, which makes the sequence a natural companion to the Catalan numbers in geometry problems. If you have used a Schroder number calculator to get a value, the dissection interpretation is often the quickest way to explain to someone what that value actually counts.
A second reading involves bracketing and grouping. Catalan numbers count the ways to fully parenthesize a string of items, where every pair of brackets encloses exactly two groups. Schroder numbers relax that: brackets may enclose two or more groups, so the count includes groupings the Catalan numbers leave out. This is why the sequence appears in parsing and in problems about combining items under an operation that can take several inputs at once.
The little Schroder numbers are half the large ones for n at least 1 — 11, 45 and 197 for n = 3, 4 and 5 — and they carry their own versions of these interpretations, typically with a symmetry or orientation condition removed. The two sequences grow at the same rate: the ratio S(n) / S(n - 1) tends to 3 + 2 x sqrt(2), about 5.83, so each step multiplies the count by roughly that factor. The recurrence behind the sequence works by splitting paths at the point where they first return to the diagonal, which is also why the same numbers reappear across structures that share that first-return idea.
- Polygon dissections: ways to cut a convex polygon into smaller pieces with non-crossing diagonals.
- Bracketed groupings: parenthesizations where a bracket may enclose more than two groups, unlike the Catalan case.
- Lattice paths: right, up and diagonal steps to (n, n) that never rise above the diagonal.
FAQs
What are the first Schroder numbers?
The first large Schroder numbers are 1, 2, 6, 22, 90, 394. They count diagonal-respecting lattice paths: routes from one corner of a grid to the opposite corner that stay on one side of the diagonal and may take diagonal steps. The calculator uses this sequence to check your results.
What is S(4)?
S(4) is 90, the large Schroder number for n = 4. The matching little Schroder number s(4) is half of it, 45. The large count includes paths that use diagonal steps anywhere, while the little count excludes diagonal steps taken on the diagonal itself.
How do Schroder numbers differ from Catalan numbers?
Schroder paths add a diagonal step to the Catalan step set, so the counts grow faster. In the limit, each Schroder term is about 5.83 times the previous one, while Catalan numbers grow by a factor of about 4. Starting from the same small cases, the Schroder sequence pulls ahead quickly.
What is a little Schroder number?
A little Schroder number is half the large one, for n at least 1. It counts the same paths, but with no diagonal step allowed on the diagonal itself. So s(4) is 45 while S(4) is 90. The two sequences stay linked by that factor of two.
How fast do Schroder numbers grow?
In the limit, each term is a little under 5.83 times the previous one. The growth is close to that ratio early on: S(5) divided by S(4) is already 4.38 and climbing. So the numbers rise quickly, but the ratio approaches its limit gradually rather than at once.
Who were they named for?
The Schroder numbers are named for Ernst Schroder, the German mathematician who studied these path and bracketing counts in the 19th century. His work on counting lattice paths and bracketings underlies the sequences the calculator produces.