An open API service indexing awesome lists of open source software.

https://github.com/semibran/schroeder

:chart_with_upwards_trend: Calculate Schröder numbers
https://github.com/semibran/schroeder

combinatorics numbers schroeder

Last synced: about 1 year ago
JSON representation

:chart_with_upwards_trend: Calculate Schröder numbers

Awesome Lists containing this project

README

          

# schroeder
![6 Schröder paths through a 2x2 grid](https://upload.wikimedia.org/wikipedia/commons/thumb/e/e6/Schroeder_number_2x2.svg/600px-Schroeder_number_2x2.svg.png "umlauts amirite")

A small function for calculating [Schröder numbers](https://en.wikipedia.org/wiki/Schröder_number).

## usage
[![NPM](https://nodei.co/npm/schroeder.png?mini)](https://www.npmjs.com/package/schroeder)
```js
> const schroeder = require('schroeder')
> schroeder(2)
6

> schroeder(-1)
NaN
```

## see also
- [`semibran/delannoy`](https://github.com/semibran/delannoy) - calculate Delannoy numbers
- [`semibran/motzkin`](https://github.com/semibran/motzkin) - calculate Motzkin numbers
- [`semibran/narayana`](https://github.com/semibran/narayana) - calculate Narayana numbers

## license
[MIT](https://opensource.org/licenses/MIT) © [Brandon Semilla](https://git.io/semibran)